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

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

Issue 2872423002: Tweak PaintInvalidationReasons (Closed)
Patch Set: Rebaseline-cl Created 3 years, 7 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 ->OffsetForInFlowPosition(); 292 ->OffsetForInFlowPosition();
293 } 293 }
294 294
295 void PaintInvalidationState::UpdateForChildren(PaintInvalidationReason reason) { 295 void PaintInvalidationState::UpdateForChildren(PaintInvalidationReason reason) {
296 #if DCHECK_IS_ON() 296 #if DCHECK_IS_ON()
297 DCHECK(!did_update_for_children_); 297 DCHECK(!did_update_for_children_);
298 did_update_for_children_ = true; 298 did_update_for_children_ = true;
299 #endif 299 #endif
300 300
301 switch (reason) { 301 switch (reason) {
302 case kPaintInvalidationDelayedFull: 302 case PaintInvalidationReason::kDelayedFull:
303 pending_delayed_paint_invalidations_.push_back(&current_object_); 303 pending_delayed_paint_invalidations_.push_back(&current_object_);
304 break; 304 break;
305 case kPaintInvalidationSubtree: 305 case PaintInvalidationReason::kSubtree:
306 forced_subtree_invalidation_flags_ |= 306 forced_subtree_invalidation_flags_ |=
307 (PaintInvalidatorContext::kForcedSubtreeFullInvalidation | 307 (PaintInvalidatorContext::kForcedSubtreeFullInvalidation |
308 PaintInvalidatorContext:: 308 PaintInvalidatorContext::
309 kForcedSubtreeFullInvalidationForStackedContents); 309 kForcedSubtreeFullInvalidationForStackedContents);
310 break; 310 break;
311 case kPaintInvalidationSVGResourceChange: 311 case PaintInvalidationReason::kSVGResource:
312 forced_subtree_invalidation_flags_ |= 312 forced_subtree_invalidation_flags_ |=
313 PaintInvalidatorContext::kForcedSubtreeSVGResourceChange; 313 PaintInvalidatorContext::kForcedSubtreeSVGResourceChange;
314 break; 314 break;
315 default: 315 default:
316 break; 316 break;
317 } 317 }
318 318
319 UpdateForNormalChildren(); 319 UpdateForNormalChildren();
320 320
321 if (current_object_ == container_for_absolute_position_) { 321 if (current_object_ == container_for_absolute_position_) {
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 } 554 }
555 555
556 void PaintInvalidatorContextAdapter::MapLocalRectToVisualRectInBacking( 556 void PaintInvalidatorContextAdapter::MapLocalRectToVisualRectInBacking(
557 const LayoutObject& object, 557 const LayoutObject& object,
558 LayoutRect& rect) const { 558 LayoutRect& rect) const {
559 DCHECK_EQ(&object, &paint_invalidation_state_.CurrentObject()); 559 DCHECK_EQ(&object, &paint_invalidation_state_.CurrentObject());
560 paint_invalidation_state_.MapLocalRectToVisualRectInBacking(rect); 560 paint_invalidation_state_.MapLocalRectToVisualRectInBacking(rect);
561 } 561 }
562 562
563 } // namespace blink 563 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698