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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 int viewLogicalWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const; | 108 int viewLogicalWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const; |
109 int viewLogicalHeight(IncludeScrollbarsInRect = ExcludeScrollbars) const; | 109 int viewLogicalHeight(IncludeScrollbarsInRect = ExcludeScrollbars) const; |
110 | 110 |
111 LayoutUnit viewLogicalHeightForPercentages() const; | 111 LayoutUnit viewLogicalHeightForPercentages() const; |
112 | 112 |
113 float zoomFactor() const; | 113 float zoomFactor() const; |
114 | 114 |
115 FrameView* frameView() const { return m_frameView; } | 115 FrameView* frameView() const { return m_frameView; } |
116 | 116 |
| 117 // See comments for the equivalent method on LayoutObject. |
| 118 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, |
| 119 LayoutRect&, |
| 120 MapCoordinatesFlags mode, |
| 121 VisualRectFlags) const; |
| 122 |
117 // |ancestor| can be nullptr, which will map the rect to the main frame's | 123 // |ancestor| can be nullptr, which will map the rect to the main frame's |
118 // space, even if the main frame is remote (or has intermediate remote | 124 // space, even if the main frame is remote (or has intermediate remote |
119 // frames in the chain). | 125 // frames in the chain). |
120 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, | 126 bool mapToVisualRectInAncestorSpaceInternal( |
121 LayoutRect&, | |
122 MapCoordinatesFlags, | |
123 VisualRectFlags) const; | |
124 bool mapToVisualRectInAncestorSpace( | |
125 const LayoutBoxModelObject* ancestor, | 127 const LayoutBoxModelObject* ancestor, |
126 LayoutRect&, | 128 TransformState&, |
| 129 MapCoordinatesFlags, |
| 130 VisualRectFlags) const; |
| 131 |
| 132 bool mapToVisualRectInAncestorSpaceInternal( |
| 133 const LayoutBoxModelObject* ancestor, |
| 134 TransformState&, |
127 VisualRectFlags = DefaultVisualRectFlags) const override; | 135 VisualRectFlags = DefaultVisualRectFlags) const override; |
128 LayoutSize offsetForFixedPosition(bool includePendingScroll = false) const; | 136 LayoutSize offsetForFixedPosition(bool includePendingScroll = false) const; |
129 | 137 |
130 void invalidatePaintForViewAndCompositedLayers(); | 138 void invalidatePaintForViewAndCompositedLayers(); |
131 | 139 |
132 PaintInvalidationReason invalidatePaintIfNeeded( | 140 PaintInvalidationReason invalidatePaintIfNeeded( |
133 const PaintInvalidationState&) override; | 141 const PaintInvalidationState&) override; |
134 PaintInvalidationReason invalidatePaintIfNeeded( | 142 PaintInvalidationReason invalidatePaintIfNeeded( |
135 const PaintInvalidatorContext&) const override; | 143 const PaintInvalidatorContext&) const override; |
136 | 144 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 unsigned m_hitTestCount; | 326 unsigned m_hitTestCount; |
319 unsigned m_hitTestCacheHits; | 327 unsigned m_hitTestCacheHits; |
320 Persistent<HitTestCache> m_hitTestCache; | 328 Persistent<HitTestCache> m_hitTestCache; |
321 }; | 329 }; |
322 | 330 |
323 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); | 331 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); |
324 | 332 |
325 } // namespace blink | 333 } // namespace blink |
326 | 334 |
327 #endif // LayoutView_h | 335 #endif // LayoutView_h |
OLD | NEW |