aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2015-11-04 06:28:46 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2015-11-04 06:28:46 +0530
commit36c5dd4c8c543ed6767fe9dd367281b292d68dba (patch)
treea0c21cec5f47107562be0546c9b98a8bd6610ed3 /components/layout/context.rs
parente91169c0e2cfe37b1a2d0feb3aab50b72c816ffc (diff)
parent6633773a589d87e81d2cf539983004d6ba957c68 (diff)
downloadservo-36c5dd4c8c543ed6767fe9dd367281b292d68dba.tar.gz
servo-36c5dd4c8c543ed6767fe9dd367281b292d68dba.zip
Auto merge of #8299 - pcwalton:dont-reflow-on-hover, r=mbrubeck
Fix several bugs causing the page to reflow on every mouse move event After all these changes are applied, Hacker News and GitHub only repaint and reflow nodes that actually have hover styles applied when the mouse moves over them. r? @mbrubeck cc @bholley <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8299) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r--components/layout/context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index 4f2cf89de2e..f3db3d80a01 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -82,8 +82,8 @@ pub struct SharedLayoutContext {
/// A channel for the image cache to send responses to.
pub image_cache_sender: ImageCacheChan,
- /// The current screen size.
- pub screen_size: Size2D<Au>,
+ /// The current viewport size.
+ pub viewport_size: Size2D<Au>,
/// Screen sized changed?
pub screen_size_changed: bool,