diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2016-04-06 17:53:11 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2016-04-06 17:58:47 -0700 |
commit | 1e884ddc6969989fd2837d5262ff8cceb0ca2f9f (patch) | |
tree | 59701ac0ecabe53be54bca1a180e2c96288a559a /components/gfx_traits | |
parent | 0b951f65b969ccc3445079a70686cf2146e365d7 (diff) | |
download | servo-1e884ddc6969989fd2837d5262ff8cceb0ca2f9f.tar.gz servo-1e884ddc6969989fd2837d5262ff8cceb0ca2f9f.zip |
layout: Allow non-absolutely-positioned elements with `overflow: scroll`
set to be scrolled.
This makes them establish stacking contexts, which is a CSS 2.1 spec
violation. However, we were already violating the spec here for
absolutely-positioned elements with `overflow: scroll`. It will probably
be easier to fix this spec violation once we either switch entirely to
WebRender or we have multiple layers per stacking context.
Closes #2742.
Diffstat (limited to 'components/gfx_traits')
-rw-r--r-- | components/gfx_traits/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs index 5833e847a91..6f5abcb1963 100644 --- a/components/gfx_traits/lib.rs +++ b/components/gfx_traits/lib.rs @@ -105,6 +105,10 @@ impl LayerId { let LayerId(layer_type, id, _) = *self; LayerId(layer_type, id, 0) } + + pub fn kind(&self) -> LayerType { + self.0 + } } /// All layer-specific information that the painting task sends to the compositor other than the |