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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/PaintInvalidator.h" 5 #include "core/paint/PaintInvalidator.h"
6 6
7 #include "core/editing/FrameSelection.h" 7 #include "core/editing/FrameSelection.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 context.paintingLayer->setNeedsPaintPhaseFloat(); 211 context.paintingLayer->setNeedsPaintPhaseFloat();
212 212
213 if (object == context.paintingLayer->layoutObject()) 213 if (object == context.paintingLayer->layoutObject())
214 return; 214 return;
215 215
216 if (object.styleRef().hasOutline()) 216 if (object.styleRef().hasOutline())
217 context.paintingLayer->setNeedsPaintPhaseDescendantOutlines(); 217 context.paintingLayer->setNeedsPaintPhaseDescendantOutlines();
218 218
219 if (object.hasBoxDecorationBackground() 219 if (object.hasBoxDecorationBackground()
220 // We also paint overflow controls in background phase. 220 // We also paint overflow controls in background phase.
221 || (object.hasOverflowClip() && 221 ||
222 toLayoutBox(object).getScrollableArea()->hasOverflowControls())) { 222 (object.hasOverflowClip() &&
223 toLayoutBox(object).getScrollableArea()->hasOverflowControls())) {
223 context.paintingLayer->setNeedsPaintPhaseDescendantBlockBackgrounds(); 224 context.paintingLayer->setNeedsPaintPhaseDescendantBlockBackgrounds();
224 } 225 }
225 226
226 if (object.isTable()) { 227 if (object.isTable()) {
227 const LayoutTable& table = toLayoutTable(object); 228 const LayoutTable& table = toLayoutTable(object);
228 if (table.collapseBorders() && !table.collapsedBorders().isEmpty()) 229 if (table.collapseBorders() && !table.collapsedBorders().isEmpty())
229 context.paintingLayer->setNeedsPaintPhaseDescendantBlockBackgrounds(); 230 context.paintingLayer->setNeedsPaintPhaseDescendantBlockBackgrounds();
230 } 231 }
231 } 232 }
232 233
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 PaintInvalidatorContext::ForcedSubtreeInvalidationRectUpdate; 448 PaintInvalidatorContext::ForcedSubtreeInvalidationRectUpdate;
448 } 449 }
449 450
450 void PaintInvalidator::processPendingDelayedPaintInvalidations() { 451 void PaintInvalidator::processPendingDelayedPaintInvalidations() {
451 for (auto target : m_pendingDelayedPaintInvalidations) 452 for (auto target : m_pendingDelayedPaintInvalidations)
452 target->getMutableForPainting().setShouldDoFullPaintInvalidation( 453 target->getMutableForPainting().setShouldDoFullPaintInvalidation(
453 PaintInvalidationDelayedFull); 454 PaintInvalidationDelayedFull);
454 } 455 }
455 456
456 } // namespace blink 457 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698