| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 bool usesCompositing() const; | 116 bool usesCompositing() const; |
| 117 | 117 |
| 118 IntRect unscaledDocumentRect() const; | 118 IntRect unscaledDocumentRect() const; |
| 119 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; | 119 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; |
| 120 | 120 |
| 121 IntRect documentRect() const; | 121 IntRect documentRect() const; |
| 122 | 122 |
| 123 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. | 123 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. |
| 124 bool rootBackgroundIsEntirelyFixed() const; | 124 bool rootBackgroundIsEntirelyFixed() const; |
| 125 | 125 |
| 126 IntervalArena* intervalArena(); | |
| 127 | |
| 128 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const override; | 126 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const override; |
| 129 | 127 |
| 130 double layoutViewportWidth() const; | 128 double layoutViewportWidth() const; |
| 131 double layoutViewportHeight() const; | 129 double layoutViewportHeight() const; |
| 132 | 130 |
| 133 void pushLayoutState(LayoutState&); | 131 void pushLayoutState(LayoutState&); |
| 134 void popLayoutState(); | 132 void popLayoutState(); |
| 135 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) override
final; | 133 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) override
final; |
| 136 | 134 |
| 137 private: | 135 private: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 158 FrameView* m_frameView; | 156 FrameView* m_frameView; |
| 159 | 157 |
| 160 RawPtr<RenderObject> m_selectionStart; | 158 RawPtr<RenderObject> m_selectionStart; |
| 161 RawPtr<RenderObject> m_selectionEnd; | 159 RawPtr<RenderObject> m_selectionEnd; |
| 162 | 160 |
| 163 int m_selectionStartPos; | 161 int m_selectionStartPos; |
| 164 int m_selectionEndPos; | 162 int m_selectionEndPos; |
| 165 | 163 |
| 166 LayoutState* m_layoutState; | 164 LayoutState* m_layoutState; |
| 167 OwnPtr<RenderLayerCompositor> m_compositor; | 165 OwnPtr<RenderLayerCompositor> m_compositor; |
| 168 RefPtr<IntervalArena> m_intervalArena; | |
| 169 | 166 |
| 170 unsigned m_renderCounterCount; | 167 unsigned m_renderCounterCount; |
| 171 | 168 |
| 172 unsigned m_hitTestCount; | 169 unsigned m_hitTestCount; |
| 173 }; | 170 }; |
| 174 | 171 |
| 175 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); | 172 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); |
| 176 | 173 |
| 177 // Suspends the LayoutState cached offset and clipRect optimization. Used under
transforms | 174 // Suspends the LayoutState cached offset and clipRect optimization. Used under
transforms |
| 178 // that cannot be represented by LayoutState (common in SVG) and when manipulati
ng the render | 175 // that cannot be represented by LayoutState (common in SVG) and when manipulati
ng the render |
| (...skipping 17 matching lines...) Expand all Loading... |
| 196 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 193 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 197 } | 194 } |
| 198 private: | 195 private: |
| 199 const PaintInvalidationState* m_paintInvalidationState; | 196 const PaintInvalidationState* m_paintInvalidationState; |
| 200 bool m_didDisable; | 197 bool m_didDisable; |
| 201 }; | 198 }; |
| 202 | 199 |
| 203 } // namespace blink | 200 } // namespace blink |
| 204 | 201 |
| 205 #endif // RenderView_h | 202 #endif // RenderView_h |
| OLD | NEW |