OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 float zoomFactor() const; | 103 float zoomFactor() const; |
104 | 104 |
105 FrameView* frameView() const { return m_frameView; } | 105 FrameView* frameView() const { return m_frameView; } |
106 | 106 |
107 enum ViewportConstrainedPosition { | 107 enum ViewportConstrainedPosition { |
108 IsNotFixedPosition, | 108 IsNotFixedPosition, |
109 IsFixedPosition, | 109 IsFixedPosition, |
110 }; | 110 }; |
111 | 111 |
112 static ViewportConstrainedPosition viewportConstrainedPosition(EPosition pos
ition) { return position == FixedPosition ? IsFixedPosition : IsNotFixedPosition
; } | 112 static ViewportConstrainedPosition viewportConstrainedPosition(EPosition pos
ition) { return position == FixedPosition ? IsFixedPosition : IsNotFixedPosition
; } |
113 void mapToVisibleRectInContainerSpace(const LayoutBoxModelObject* paintInval
idationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvalidat
ionState*) const; | 113 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, ViewportConstrainedPosition, const PaintInvalidationState*) const; |
114 void mapToVisibleRectInContainerSpace(const LayoutBoxModelObject* paintInval
idationContainer, LayoutRect&, const PaintInvalidationState*) const override; | 114 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, const PaintInvalidationState*) const override; |
115 void adjustViewportConstrainedOffset(LayoutRect&, ViewportConstrainedPositio
n) const; | 115 void adjustViewportConstrainedOffset(LayoutRect&, ViewportConstrainedPositio
n) const; |
116 | 116 |
117 void invalidatePaintForViewAndCompositedLayers(); | 117 void invalidatePaintForViewAndCompositedLayers(); |
118 | 118 |
119 void paint(const PaintInfo&, const LayoutPoint&) const override; | 119 void paint(const PaintInfo&, const LayoutPoint&) const override; |
120 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&) cons
t override; | 120 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&) cons
t override; |
121 | 121 |
122 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld }; | 122 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld }; |
123 void setSelection(LayoutObject* start, int startPos, LayoutObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); | 123 void setSelection(LayoutObject* start, int startPos, LayoutObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); |
124 void clearSelection(); | 124 void clearSelection(); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // crbug.com/487345,402044 . This facility will be removed once those | 204 // crbug.com/487345,402044 . This facility will be removed once those |
205 // experiments complete. | 205 // experiments complete. |
206 // TODO(ojan): Merge this with IntersectionObserver once it lands. | 206 // TODO(ojan): Merge this with IntersectionObserver once it lands. |
207 void registerMediaForPositionChangeNotification(LayoutMedia&); | 207 void registerMediaForPositionChangeNotification(LayoutMedia&); |
208 void unregisterMediaForPositionChangeNotification(LayoutMedia&); | 208 void unregisterMediaForPositionChangeNotification(LayoutMedia&); |
209 // Notify all registered LayoutMedias that their position on-screen might | 209 // Notify all registered LayoutMedias that their position on-screen might |
210 // have changed. visibleRect is the clipping boundary. | 210 // have changed. visibleRect is the clipping boundary. |
211 void sendMediaPositionChangeNotifications(const IntRect& visibleRect); | 211 void sendMediaPositionChangeNotifications(const IntRect& visibleRect); |
212 | 212 |
213 private: | 213 private: |
214 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
nullptr, const PaintInvalidationState* = nullptr) const override; | 214 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const Pai
ntInvalidationState* = nullptr) const override; |
215 | 215 |
216 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const override; | 216 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const override; |
217 void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) const ove
rride; | 217 void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) const ove
rride; |
218 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; | 218 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; |
219 | 219 |
220 void layoutContent(); | 220 void layoutContent(); |
221 #if ENABLE(ASSERT) | 221 #if ENABLE(ASSERT) |
222 void checkLayoutState(); | 222 void checkLayoutState(); |
223 #endif | 223 #endif |
224 | 224 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 301 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
302 } | 302 } |
303 private: | 303 private: |
304 const PaintInvalidationState* m_paintInvalidationState; | 304 const PaintInvalidationState* m_paintInvalidationState; |
305 bool m_didDisable; | 305 bool m_didDisable; |
306 }; | 306 }; |
307 | 307 |
308 } // namespace blink | 308 } // namespace blink |
309 | 309 |
310 #endif // LayoutView_h | 310 #endif // LayoutView_h |
OLD | NEW |