| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |