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

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: Remove unneeded TODO Created 6 years 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 1b6ad9db06222269a7a77e1647ef28e2a1b8830e..e75a018b042c0609eef9ec69c162954621f15209 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