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

Side by Side Diff: third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp

Issue 2610253004: Migrate WTF::Vector::append() to ::push_back() [part 9 of N] (Closed)
Patch Set: rebase 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 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/layout/PaintInvalidationState.h" 5 #include "core/layout/PaintInvalidationState.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/frame/Settings.h" 9 #include "core/frame/Settings.h"
10 #include "core/layout/LayoutInline.h" 10 #include "core/layout/LayoutInline.h"
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 } 311 }
312 312
313 void PaintInvalidationState::updateForChildren(PaintInvalidationReason reason) { 313 void PaintInvalidationState::updateForChildren(PaintInvalidationReason reason) {
314 #if ENABLE(ASSERT) 314 #if ENABLE(ASSERT)
315 DCHECK(!m_didUpdateForChildren); 315 DCHECK(!m_didUpdateForChildren);
316 m_didUpdateForChildren = true; 316 m_didUpdateForChildren = true;
317 #endif 317 #endif
318 318
319 switch (reason) { 319 switch (reason) {
320 case PaintInvalidationDelayedFull: 320 case PaintInvalidationDelayedFull:
321 m_pendingDelayedPaintInvalidations.append(&m_currentObject); 321 m_pendingDelayedPaintInvalidations.push_back(&m_currentObject);
322 break; 322 break;
323 case PaintInvalidationSubtree: 323 case PaintInvalidationSubtree:
324 m_forcedSubtreeInvalidationFlags |= 324 m_forcedSubtreeInvalidationFlags |=
325 (PaintInvalidatorContext::ForcedSubtreeFullInvalidation | 325 (PaintInvalidatorContext::ForcedSubtreeFullInvalidation |
326 PaintInvalidatorContext:: 326 PaintInvalidatorContext::
327 ForcedSubtreeFullInvalidationForStackedContents); 327 ForcedSubtreeFullInvalidationForStackedContents);
328 break; 328 break;
329 case PaintInvalidationSVGResourceChange: 329 case PaintInvalidationSVGResourceChange:
330 m_forcedSubtreeInvalidationFlags |= 330 m_forcedSubtreeInvalidationFlags |=
331 PaintInvalidatorContext::ForcedSubtreeSVGResourceChange; 331 PaintInvalidatorContext::ForcedSubtreeSVGResourceChange;
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 } 638 }
639 639
640 void PaintInvalidatorContextAdapter::mapLocalRectToPaintInvalidationBacking( 640 void PaintInvalidatorContextAdapter::mapLocalRectToPaintInvalidationBacking(
641 const LayoutObject& object, 641 const LayoutObject& object,
642 LayoutRect& rect) const { 642 LayoutRect& rect) const {
643 DCHECK(&object == &m_paintInvalidationState.currentObject()); 643 DCHECK(&object == &m_paintInvalidationState.currentObject());
644 m_paintInvalidationState.mapLocalRectToPaintInvalidationBacking(rect); 644 m_paintInvalidationState.mapLocalRectToPaintInvalidationBacking(rect);
645 } 645 }
646 646
647 } // namespace blink 647 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698