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

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

Issue 2654643002: Invalidate subsequence caching & empty paint phases if clips changed. (Closed)
Patch Set: Merge branch 'master' into repaintonclip 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/PaintPropertyTreeBuilder.h" 5 #include "core/paint/PaintPropertyTreeBuilder.h"
6 6
7 #include "core/dom/DOMNodeIds.h" 7 #include "core/dom/DOMNodeIds.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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 } 803 }
804 } 804 }
805 805
806 void PaintPropertyTreeBuilder::updateOutOfFlowContext( 806 void PaintPropertyTreeBuilder::updateOutOfFlowContext(
807 const LayoutObject& object, 807 const LayoutObject& object,
808 PaintPropertyTreeBuilderContext& context) { 808 PaintPropertyTreeBuilderContext& context) {
809 if (object.isLayoutBlock()) 809 if (object.isLayoutBlock())
810 context.paintOffsetForFloat = context.current.paintOffset; 810 context.paintOffsetForFloat = context.current.paintOffset;
811 811
812 if (object.canContainAbsolutePositionObjects()) { 812 if (object.canContainAbsolutePositionObjects()) {
813 LOG(ERROR) << "Updated abspos stuff: " << object.debugName();
813 context.absolutePosition = context.current; 814 context.absolutePosition = context.current;
814 context.containerForAbsolutePosition = &object; 815 context.containerForAbsolutePosition = &object;
815 } 816 }
816 817
817 if (object.isLayoutView()) { 818 if (object.isLayoutView()) {
818 if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) { 819 if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) {
819 const auto* initialFixedTransform = context.fixedPosition.transform; 820 const auto* initialFixedTransform = context.fixedPosition.transform;
820 const auto* initialFixedScroll = context.fixedPosition.scroll; 821 const auto* initialFixedScroll = context.fixedPosition.scroll;
821 822
822 context.fixedPosition = context.current; 823 context.fixedPosition = context.current;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 updateOverflowClip(object, context); 978 updateOverflowClip(object, context);
978 updatePerspective(object, context); 979 updatePerspective(object, context);
979 updateSvgLocalToBorderBoxTransform(object, context); 980 updateSvgLocalToBorderBoxTransform(object, context);
980 updateScrollAndScrollTranslation(object, context); 981 updateScrollAndScrollTranslation(object, context);
981 updateOutOfFlowContext(object, context); 982 updateOutOfFlowContext(object, context);
982 983
983 context.forceSubtreeUpdate |= object.subtreeNeedsPaintPropertyUpdate(); 984 context.forceSubtreeUpdate |= object.subtreeNeedsPaintPropertyUpdate();
984 } 985 }
985 986
986 } // namespace blink 987 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp ('k') | third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698