aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/webidls/CSSStyleDeclaration.webidl6
-rw-r--r--components/script/dom/window.rs14
2 files changed, 14 insertions, 6 deletions
diff --git a/components/script/dom/webidls/CSSStyleDeclaration.webidl b/components/script/dom/webidls/CSSStyleDeclaration.webidl
index 3be5abe1099..1da7946338b 100644
--- a/components/script/dom/webidls/CSSStyleDeclaration.webidl
+++ b/components/script/dom/webidls/CSSStyleDeclaration.webidl
@@ -186,4 +186,10 @@ partial interface CSSStyleDeclaration {
[TreatNullAs=EmptyString] attribute DOMString zIndex;
[TreatNullAs=EmptyString] attribute DOMString imageRendering;
+
+ [TreatNullAs=EmptyString] attribute DOMString transition;
+ [TreatNullAs=EmptyString] attribute DOMString transitionDuration;
+ [TreatNullAs=EmptyString] attribute DOMString transitionTimingFunction;
+ [TreatNullAs=EmptyString] attribute DOMString transitionProperty;
+ [TreatNullAs=EmptyString] attribute DOMString transitionDelay;
};
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 675af64d5cb..08e526df282 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -27,7 +27,7 @@ use dom::performance::Performance;
use dom::screen::Screen;
use dom::storage::Storage;
use layout_interface::{ReflowGoal, ReflowQueryType, LayoutRPC, LayoutChan, Reflow, Msg};
-use layout_interface::{ContentBoxResponse, ContentBoxesResponse};
+use layout_interface::{ContentBoxResponse, ContentBoxesResponse, ScriptReflow};
use page::Page;
use script_task::{TimerSource, ScriptChan};
use script_task::ScriptMsg;
@@ -564,17 +564,19 @@ impl<'a> WindowHelpers for JSRef<'a, Window> {
}
// Send new document and relevant styles to layout.
- let reflow = box Reflow {
+ let reflow = box ScriptReflow {
+ reflow_info: Reflow {
+ goal: goal,
+ url: self.get_url(),
+ iframe: self.parent_info.is_some(),
+ page_clip_rect: self.page_clip_rect.get(),
+ },
document_root: root.to_trusted_node_address(),
- url: self.get_url(),
- iframe: self.parent_info.is_some(),
- goal: goal,
window_size: window_size,
script_chan: self.control_chan.clone(),
script_join_chan: join_chan,
id: last_reflow_id.get(),
query_type: query_type,
- page_clip_rect: self.page_clip_rect.get(),
};
let LayoutChan(ref chan) = self.layout_chan;