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 toViewportConstrainedPosition(EPosition p
osition) { return position == FixedPosition ? IsFixedPosition : IsNotFixedPositi
on; } | 112 static ViewportConstrainedPosition toViewportConstrainedPosition(EPosition p
osition) { return position == FixedPosition ? IsFixedPosition : IsNotFixedPositi
on; } |
113 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, ViewportConstrainedPosition, const PaintInvalidationState*) const; | 113 bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, ViewportConstrainedPosition, const PaintInvalidationState*, VisibleR
ectFlags = DefaultVisibleRectFlags) const; |
114 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, const PaintInvalidationState*) const override; | 114 bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, const PaintInvalidationState*, VisibleRectFlags = DefaultVisibleRect
Flags) 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 OwnPtrWillBePersistent<HitTestCache> m_hitTestCache; | 281 OwnPtrWillBePersistent<HitTestCache> m_hitTestCache; |
282 | 282 |
283 Vector<LayoutMedia*> m_mediaForPositionNotification; | 283 Vector<LayoutMedia*> m_mediaForPositionNotification; |
284 }; | 284 }; |
285 | 285 |
286 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); | 286 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); |
287 | 287 |
288 } // namespace blink | 288 } // namespace blink |
289 | 289 |
290 #endif // LayoutView_h | 290 #endif // LayoutView_h |
OLD | NEW |