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

Side by Side Diff: third_party/WebKit/Source/core/paint/BlockPainter.cpp

Issue 2430813002: Switch to shorter names for property tree storage and updates (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/BlockPainter.h" 5 #include "core/paint/BlockPainter.h"
6 6
7 #include "core/editing/DragCaretController.h" 7 #include "core/editing/DragCaretController.h"
8 #include "core/editing/FrameSelection.h" 8 #include "core/editing/FrameSelection.h"
9 #include "core/layout/LayoutFlexibleBox.h" 9 #include "core/layout/LayoutFlexibleBox.h"
10 #include "core/layout/LayoutInline.h" 10 #include "core/layout/LayoutInline.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 } 191 }
192 192
193 if (paintPhase == PaintPhaseForeground && paintInfo.isPrinting()) 193 if (paintPhase == PaintPhaseForeground && paintInfo.isPrinting())
194 ObjectPainter(m_layoutBlock).addPDFURLRectIfNeeded(paintInfo, paintOffset); 194 ObjectPainter(m_layoutBlock).addPDFURLRectIfNeeded(paintInfo, paintOffset);
195 195
196 if (paintPhase != PaintPhaseSelfOutlineOnly) { 196 if (paintPhase != PaintPhaseSelfOutlineOnly) {
197 Optional<ScopedPaintChunkProperties> m_scopedScrollProperty; 197 Optional<ScopedPaintChunkProperties> m_scopedScrollProperty;
198 Optional<ScrollRecorder> scrollRecorder; 198 Optional<ScrollRecorder> scrollRecorder;
199 Optional<PaintInfo> scrolledPaintInfo; 199 Optional<PaintInfo> scrolledPaintInfo;
200 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 200 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
201 const auto* objectProperties = m_layoutBlock.objectPaintProperties(); 201 const auto* objectProperties = m_layoutBlock.paintProperties();
202 if (auto* scroll = 202 if (auto* scroll =
203 objectProperties ? objectProperties->scroll() : nullptr) { 203 objectProperties ? objectProperties->scroll() : nullptr) {
204 PaintChunkProperties properties(paintInfo.context.getPaintController() 204 PaintChunkProperties properties(paintInfo.context.getPaintController()
205 .currentPaintChunkProperties()); 205 .currentPaintChunkProperties());
206 auto* scrollTranslation = objectProperties->scrollTranslation(); 206 auto* scrollTranslation = objectProperties->scrollTranslation();
207 DCHECK(scrollTranslation); 207 DCHECK(scrollTranslation);
208 properties.transform = scrollTranslation; 208 properties.transform = scrollTranslation;
209 properties.scroll = scroll; 209 properties.scroll = scroll;
210 m_scopedScrollProperty.emplace( 210 m_scopedScrollProperty.emplace(
211 paintInfo.context.getPaintController(), m_layoutBlock, 211 paintInfo.context.getPaintController(), m_layoutBlock,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 } 298 }
299 299
300 void BlockPainter::paintContents(const PaintInfo& paintInfo, 300 void BlockPainter::paintContents(const PaintInfo& paintInfo,
301 const LayoutPoint& paintOffset) { 301 const LayoutPoint& paintOffset) {
302 DCHECK(!m_layoutBlock.childrenInline()); 302 DCHECK(!m_layoutBlock.childrenInline());
303 PaintInfo paintInfoForDescendants = paintInfo.forDescendants(); 303 PaintInfo paintInfoForDescendants = paintInfo.forDescendants();
304 m_layoutBlock.paintChildren(paintInfoForDescendants, paintOffset); 304 m_layoutBlock.paintChildren(paintInfoForDescendants, paintOffset);
305 } 305 }
306 306
307 } // namespace blink 307 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/api/LayoutItem.h ('k') | third_party/WebKit/Source/core/paint/BoxClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698