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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2140173004: [SPv2] FrameView::synchronizedPaint should apply root property nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revised Created 4 years, 5 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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index e00f51476cdb872eb478c6c3c7e89273fa6f09c9..d0af7a85aac58829f00dc42a9fb85c671a651205 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2634,8 +2634,21 @@ void FrameView::synchronizedPaint()
void FrameView::synchronizedPaintRecursively(GraphicsLayer* graphicsLayer)
{
- if (graphicsLayer->drawsContent())
+ if (graphicsLayer->drawsContent()) {
+ // Usually this is not needed because the PaintLayer will setup the chunk properties
pdr. 2016/07/13 02:26:51 Can you wrap this in: #ifndef NDEBUG ... #endif
trchen 2016/07/13 02:50:39 I'm thinking non-RLS scrollbars will need this too
+ // altogether. However in debug builds the GraphicsLayer could paint debug background before
+ // we ever reach the PaintLayer.
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
pdr. 2016/07/13 02:26:51 Instead of special-casing this, is it possible to
trchen 2016/07/13 02:50:39 We always have up-to-date property tree at this po
+ PaintChunkProperties properties;
+ properties.transform = m_rootTransform;
+ properties.clip = m_rootClip;
+ properties.effect = m_rootEffect;
+ graphicsLayer->getPaintController().updateCurrentPaintChunkProperties(properties);
+ }
graphicsLayer->paint(nullptr);
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ graphicsLayer->getPaintController().updateCurrentPaintChunkProperties(PaintChunkProperties());
+ }
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
if (GraphicsLayer* maskLayer = graphicsLayer->maskLayer())

Powered by Google App Engine
This is Rietveld 408576698