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

Unified Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1346103003: DeprecatedPaintLayerStackingNode should walk DPL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switched to a full revert. Created 5 years, 3 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
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayer.h ('k') | Source/core/paint/DeprecatedPaintLayerStackingNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/DeprecatedPaintLayer.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
index ea5ca4adb958b53c529104ad7a03b529d764bc0b..12ca19260f7bfecb3a1c0267df1132d2d9e2bae4 100644
--- a/Source/core/paint/DeprecatedPaintLayer.cpp
+++ b/Source/core/paint/DeprecatedPaintLayer.cpp
@@ -1366,7 +1366,9 @@ void DeprecatedPaintLayer::updateStackingNode()
{
ASSERT(!m_stackingNode);
if (requiresStackingNode())
- m_stackingNode = adoptPtr(new DeprecatedPaintLayerStackingNode(*layoutObject()));
+ m_stackingNode = adoptPtr(new DeprecatedPaintLayerStackingNode(this));
+ else
+ m_stackingNode = nullptr;
}
void DeprecatedPaintLayer::updateScrollableArea()
@@ -1549,6 +1551,12 @@ Node* DeprecatedPaintLayer::enclosingElement() const
return 0;
}
+bool DeprecatedPaintLayer::isInTopLayer() const
+{
+ Node* node = layoutObject()->node();
+ return node && node->isElementNode() && toElement(node)->isInTopLayer();
+}
+
// Compute the z-offset of the point in the transformState.
// This is effectively projecting a ray normal to the plane of ancestor, finding where that
// ray intersects target, and computing the z delta between those two points.
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayer.h ('k') | Source/core/paint/DeprecatedPaintLayerStackingNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698