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

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

Issue 2299533002: WIP: Construct SPV2's scroll paint property tree (Closed)
Patch Set: Add more paint property builder tests, update comments/documentation" Created 4 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
Index: third_party/WebKit/Source/core/paint/FramePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/FramePainter.cpp b/third_party/WebKit/Source/core/paint/FramePainter.cpp
index 7010f0987fb215576200376d3ca098f2e7d3457f..436dd0fb75d1da83426222ef76a93a4de1d2c16c 100644
--- a/third_party/WebKit/Source/core/paint/FramePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/FramePainter.cpp
@@ -48,10 +48,13 @@ void FramePainter::paint(GraphicsContext& context, const GlobalPaintFlags global
if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
TransformPaintPropertyNode* transform = m_frameView->scrollTranslation() ? m_frameView->scrollTranslation() : m_frameView->preTranslation();
ClipPaintPropertyNode* clip = m_frameView->contentClip();
- if (transform || clip) {
+ ScrollPaintPropertyNode* scroll = m_frameView->scroll();
+ if (transform || clip || scroll) {
PaintChunkProperties properties(context.getPaintController().currentPaintChunkProperties());
if (transform)
properties.transform = transform;
+ if (scroll)
+ properties.scroll = scroll;
if (clip)
properties.clip = clip;
scopedPaintChunkProperties.emplace(context.getPaintController(), *frameView().layoutView(), properties);
« no previous file with comments | « third_party/WebKit/Source/core/paint/BlockPainter.cpp ('k') | third_party/WebKit/Source/core/paint/ObjectPaintProperties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698