diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2015-05-01 11:04:52 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-05-01 12:40:37 +1000 |
commit | a5a52147836bafa7fa865300d03d19d2d4004dd4 (patch) | |
tree | 43b85f834fb2e1b8243d4d98341d597733b2fd06 /components/script/layout_interface.rs | |
parent | 826b7222027b7b8b5df417998a1e4826aecb019a (diff) | |
download | servo-a5a52147836bafa7fa865300d03d19d2d4004dd4.tar.gz servo-a5a52147836bafa7fa865300d03d19d2d4004dd4.zip |
Various fixes to getClientBoundingRect()
* Fix queries involving stacking contexts
* The code was double accumulating stacking context origins.
* Handle queries of inline elements.
* The node addresses being compared were incorrect (CharacterData vs. Span)
* Handle ScriptQuery reflows correctly.
* The layout task was skipping the compute absolute positions traversal, so failed before window.onload.
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r-- | components/script/layout_interface.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs index 4859c075058..f94fb29c18d 100644 --- a/components/script/layout_interface.rs +++ b/components/script/layout_interface.rs @@ -88,7 +88,7 @@ pub struct HitTestResponse(pub UntrustedNodeAddress); pub struct MouseOverResponse(pub Vec<UntrustedNodeAddress>); /// Why we're doing reflow. -#[derive(PartialEq, Debug)] +#[derive(PartialEq, Copy, Debug)] pub enum ReflowGoal { /// We're reflowing in order to send a display list to the screen. ForDisplay, |