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

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

Issue 1817693002: Support edge-inclusive intersections in mapToVisibleRectInAncestorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer-idle-callback
Patch Set: compiler warning fix Created 4 years, 9 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 #ifndef PaintInvalidationState_h 5 #ifndef PaintInvalidationState_h
6 #define PaintInvalidationState_h 6 #define PaintInvalidationState_h
7 7
8 #include "platform/geometry/LayoutRect.h" 8 #include "platform/geometry/LayoutRect.h"
9 #include "platform/transforms/AffineTransform.h" 9 #include "platform/transforms/AffineTransform.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 bool forcedSubtreeInvalidationRectUpdateWithinContainer() const { return m_f orcedSubtreeInvalidationRectUpdateWithinContainer; } 66 bool forcedSubtreeInvalidationRectUpdateWithinContainer() const { return m_f orcedSubtreeInvalidationRectUpdateWithinContainer; }
67 void setForceSubtreeInvalidationRectUpdateWithinContainer() { m_forcedSubtre eInvalidationRectUpdateWithinContainer = true; } 67 void setForceSubtreeInvalidationRectUpdateWithinContainer() { m_forcedSubtre eInvalidationRectUpdateWithinContainer = true; }
68 68
69 const LayoutBoxModelObject& paintInvalidationContainer() const { return m_pa intInvalidationContainer; } 69 const LayoutBoxModelObject& paintInvalidationContainer() const { return m_pa intInvalidationContainer; }
70 70
71 bool canMapToAncestor(const LayoutBoxModelObject* ancestor) const 71 bool canMapToAncestor(const LayoutBoxModelObject* ancestor) const
72 { 72 {
73 return m_cachedOffsetsEnabled && ancestor == &m_paintInvalidationContain er; 73 return m_cachedOffsetsEnabled && ancestor == &m_paintInvalidationContain er;
74 } 74 }
75 void mapObjectRectToAncestor(const LayoutObject&, const LayoutBoxModelObject * ancestor, LayoutRect&) const; 75 bool mapObjectRectToAncestor(const LayoutObject&, const LayoutBoxModelObject * ancestor, LayoutRect&, bool edgeInclusive) const;
76 76
77 // Records |obj| as needing paint invalidation on the next frame. See the de finition of PaintInvalidationDelayedFull for more details. 77 // Records |obj| as needing paint invalidation on the next frame. See the de finition of PaintInvalidationDelayedFull for more details.
78 void pushDelayedPaintInvalidationTarget(LayoutObject& obj) const { m_pending DelayedPaintInvalidations.append(&obj); } 78 void pushDelayedPaintInvalidationTarget(LayoutObject& obj) const { m_pending DelayedPaintInvalidations.append(&obj); }
79 Vector<LayoutObject*>& pendingDelayedPaintInvalidationTargets() const { retu rn m_pendingDelayedPaintInvalidations; } 79 Vector<LayoutObject*>& pendingDelayedPaintInvalidationTargets() const { retu rn m_pendingDelayedPaintInvalidations; }
80 80
81 // Disable view clipping and scroll offset adjustment for paint invalidation of FrameView scrollbars. 81 // Disable view clipping and scroll offset adjustment for paint invalidation of FrameView scrollbars.
82 // TODO(wangxianzhu): Remove this when root-layer-scrolls launches. 82 // TODO(wangxianzhu): Remove this when root-layer-scrolls launches.
83 bool viewClippingAndScrollOffsetDisabled() const { return m_viewClippingAndS crollOffsetDisabled; } 83 bool viewClippingAndScrollOffsetDisabled() const { return m_viewClippingAndS crollOffsetDisabled; }
84 void setViewClippingAndScrollOffsetDisabled(bool b) { m_viewClippingAndScrol lOffsetDisabled = b; } 84 void setViewClippingAndScrollOffsetDisabled(bool b) { m_viewClippingAndScrol lOffsetDisabled = b; }
85 85
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 147 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
148 } 148 }
149 private: 149 private:
150 const PaintInvalidationState* m_paintInvalidationState; 150 const PaintInvalidationState* m_paintInvalidationState;
151 bool m_didDisable; 151 bool m_didDisable;
152 }; 152 };
153 153
154 } // namespace blink 154 } // namespace blink
155 155
156 #endif // PaintInvalidationState_h 156 #endif // PaintInvalidationState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698