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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2655383002: Use GeometryMapper in PaintLayerClipper. (Closed)
Patch Set: Created 3 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: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 168383e4077bc5da12b3a5d8b84841d30bb4efcc..73233c4b672ff8585df3b1aaf54e73a5856f8733 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2989,6 +2989,15 @@ void PaintLayer::styleDidChange(StyleDifference diff,
layoutObject()->setNeedsPaintPropertyUpdate();
}
+PaintLayerClipper PaintLayer::clipper() const {
+ GeometryMapper* geometryMapper = nullptr;
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
+ if (FrameView* frameView = m_layoutObject->document().view())
+ geometryMapper = frameView->geometryMapper();
+ }
+ return PaintLayerClipper(*this, geometryMapper);
+}
+
bool PaintLayer::scrollsOverflow() const {
if (PaintLayerScrollableArea* scrollableArea = this->getScrollableArea())
return scrollableArea->scrollsOverflow();
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerClipper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698