Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1586)

Unified Diff: Source/core/rendering/RenderBox.h

Issue 784453003: Initial scroll-blocks-on compositor integration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Eliminate scrollbars from iframe test for cross-platform output consistency Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/RenderBox.h
diff --git a/Source/core/rendering/RenderBox.h b/Source/core/rendering/RenderBox.h
index 365afde44f203d28c04afc1d37e95cf5afb3097b..c9c41e9142c24e1214ba00ccd0e52e36a28116e3 100644
--- a/Source/core/rendering/RenderBox.h
+++ b/Source/core/rendering/RenderBox.h
@@ -76,17 +76,7 @@ class RenderBox : public RenderBoxModelObject {
public:
explicit RenderBox(ContainerNode*);
- // hasAutoZIndex only returns true if the element is positioned or a flex-item since
- // position:static elements that are not flex-items get their z-index coerced to auto.
- virtual LayerType layerTypeRequired() const override
- {
- if (isPositioned() || createsGroup() || hasClipPath() || hasTransformRelatedProperty() || hasHiddenBackface() || hasReflection() || style()->specifiesColumns() || !style()->hasAutoZIndex() || style()->shouldCompositeForCurrentAnimations())
- return NormalLayer;
- if (hasOverflowClip())
- return OverflowClipLayer;
-
- return NoLayer;
- }
+ virtual LayerType layerTypeRequired() const override;
virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const override;

Powered by Google App Engine
This is Rietveld 408576698