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

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

Issue 2858873002: [SPv2] Refactor PaintInvalidator to be multicol-ready. (Closed)
Patch Set: none 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 << " vs slow: " << slowPathRect.toString(); 632 << " vs slow: " << slowPathRect.toString();
633 showLayoutTree(&m_currentObject); 633 showLayoutTree(&m_currentObject);
634 634
635 NOTREACHED(); 635 NOTREACHED();
636 } 636 }
637 637
638 #endif // CHECK_FAST_PATH_SLOW_PATH_EQUALITY 638 #endif // CHECK_FAST_PATH_SLOW_PATH_EQUALITY
639 639
640 PaintInvalidatorContextAdapter::PaintInvalidatorContextAdapter( 640 PaintInvalidatorContextAdapter::PaintInvalidatorContextAdapter(
641 const PaintInvalidationState& paint_invalidation_state) 641 const PaintInvalidationState& paint_invalidation_state)
642 : PaintInvalidatorContext(nullptr), 642 : PaintInvalidatorContext(),
643 paint_invalidation_state_(paint_invalidation_state) { 643 paint_invalidation_state_(paint_invalidation_state) {
644 forced_subtree_invalidation_flags = 644 forced_subtree_invalidation_flags =
645 paint_invalidation_state.forced_subtree_invalidation_flags_; 645 paint_invalidation_state.forced_subtree_invalidation_flags_;
646 paint_invalidation_container = 646 paint_invalidation_container =
647 &paint_invalidation_state.PaintInvalidationContainer(); 647 &paint_invalidation_state.PaintInvalidationContainer();
648 painting_layer = &paint_invalidation_state.PaintingLayer(); 648 painting_layer = &paint_invalidation_state.PaintingLayer();
649 } 649 }
650 650
651 void PaintInvalidatorContextAdapter::MapLocalRectToVisualRectInBacking( 651 void PaintInvalidatorContextAdapter::MapLocalRectToVisualRectInBacking(
652 const LayoutObject& object, 652 const LayoutObject& object,
653 LayoutRect& rect) const { 653 LayoutRect& rect) const {
654 DCHECK_EQ(&object, &paint_invalidation_state_.CurrentObject()); 654 DCHECK_EQ(&object, &paint_invalidation_state_.CurrentObject());
655 paint_invalidation_state_.MapLocalRectToVisualRectInBacking(rect); 655 paint_invalidation_state_.MapLocalRectToVisualRectInBacking(rect);
656 } 656 }
657 657
658 } // namespace blink 658 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698