OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/PaintInvalidator.h" | 5 #include "core/paint/PaintInvalidator.h" |
6 | 6 |
7 #include "core/editing/FrameSelection.h" | 7 #include "core/editing/FrameSelection.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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 m_treeBuilderContext.current.transform = | 235 m_treeBuilderContext.current.transform = |
236 m_savedContext.transform->parent(); | 236 m_savedContext.transform->parent(); |
237 } | 237 } |
238 | 238 |
239 ~ScopedUndoFrameViewContentClipAndScroll() { | 239 ~ScopedUndoFrameViewContentClipAndScroll() { |
240 m_treeBuilderContext.current = m_savedContext; | 240 m_treeBuilderContext.current = m_savedContext; |
241 } | 241 } |
242 | 242 |
243 private: | 243 private: |
244 PaintPropertyTreeBuilderContext& m_treeBuilderContext; | 244 PaintPropertyTreeBuilderContext& m_treeBuilderContext; |
245 PaintPropertyTreeBuilderContext::ContainingBlockContext m_savedContext; | 245 PaintPropertyTreeBuilderContext::ContainerContext m_savedContext; |
246 }; | 246 }; |
247 | 247 |
248 } // namespace | 248 } // namespace |
249 | 249 |
250 void PaintInvalidator::updateContext(const LayoutObject& object, | 250 void PaintInvalidator::updateContext(const LayoutObject& object, |
251 PaintInvalidatorContext& context) { | 251 PaintInvalidatorContext& context) { |
252 Optional<ScopedUndoFrameViewContentClipAndScroll> | 252 Optional<ScopedUndoFrameViewContentClipAndScroll> |
253 undoFrameViewContentClipAndScroll; | 253 undoFrameViewContentClipAndScroll; |
254 | 254 |
255 if (object.isPaintInvalidationContainer()) { | 255 if (object.isPaintInvalidationContainer()) { |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 object.getMutableForPainting().clearPaintInvalidationFlags(); | 439 object.getMutableForPainting().clearPaintInvalidationFlags(); |
440 } | 440 } |
441 | 441 |
442 void PaintInvalidator::processPendingDelayedPaintInvalidations() { | 442 void PaintInvalidator::processPendingDelayedPaintInvalidations() { |
443 for (auto target : m_pendingDelayedPaintInvalidations) | 443 for (auto target : m_pendingDelayedPaintInvalidations) |
444 target->getMutableForPainting().setShouldDoFullPaintInvalidation( | 444 target->getMutableForPainting().setShouldDoFullPaintInvalidation( |
445 PaintInvalidationDelayedFull); | 445 PaintInvalidationDelayedFull); |
446 } | 446 } |
447 | 447 |
448 } // namespace blink | 448 } // namespace blink |
OLD | NEW |