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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 void invalidatePaintForRectangle(const LayoutRect&, InvalidationReason) cons
t; | 90 void invalidatePaintForRectangle(const LayoutRect&, InvalidationReason) cons
t; |
91 | 91 |
92 void invalidatePaintForViewAndCompositedLayers(); | 92 void invalidatePaintForViewAndCompositedLayers(); |
93 | 93 |
94 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; | 94 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; |
95 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) OV
ERRIDE; | 95 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) OV
ERRIDE; |
96 | 96 |
97 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld, PaintInvalidationNothing }; | 97 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld, PaintInvalidationNothing }; |
98 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); | 98 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); |
99 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje
ct*& endRenderer, int& endOffset) const; | |
100 void clearSelection(); | 99 void clearSelection(); |
101 RenderObject* selectionStart() const { return m_selectionStart; } | 100 RenderObject* selectionStart() const { return m_selectionStart; } |
102 RenderObject* selectionEnd() const { return m_selectionEnd; } | |
103 IntRect selectionBounds() const; | 101 IntRect selectionBounds() const; |
104 void selectionStartEnd(int& startPos, int& endPos) const; | 102 void selectionStartEnd(int& startPos, int& endPos) const; |
105 void invalidatePaintForSelection() const; | 103 void invalidatePaintForSelection() const; |
106 | 104 |
107 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const OVERRIDE; | 105 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const OVERRIDE; |
108 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID
E; | 106 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID
E; |
109 | 107 |
110 virtual LayoutRect viewRect() const OVERRIDE; | 108 virtual LayoutRect viewRect() const OVERRIDE; |
111 | 109 |
112 bool shouldDoFullPaintInvalidationForNextLayout() const; | 110 bool shouldDoFullPaintInvalidationForNextLayout() const; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 void pushLayoutState(LayoutState&); | 161 void pushLayoutState(LayoutState&); |
164 void popLayoutState(); | 162 void popLayoutState(); |
165 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) OVERRIDE
FINAL; | 163 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) OVERRIDE
FINAL; |
166 | 164 |
167 private: | 165 private: |
168 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool*
wasFixed = 0, const PaintInvalidationState* = 0) const OVERRIDE; | 166 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool*
wasFixed = 0, const PaintInvalidationState* = 0) const OVERRIDE; |
169 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; | 167 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; |
170 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst OVERRIDE; | 168 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst OVERRIDE; |
171 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; | 169 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; |
172 | 170 |
173 bool shouldInvalidatePaint(const LayoutRect&) const; | |
174 | |
175 void layoutContent(); | 171 void layoutContent(); |
176 #if ENABLE(ASSERT) | 172 #if ENABLE(ASSERT) |
177 void checkLayoutState(); | 173 void checkLayoutState(); |
178 #endif | 174 #endif |
179 | 175 |
180 friend class ForceHorriblySlowRectMapping; | 176 friend class ForceHorriblySlowRectMapping; |
181 | 177 |
182 bool shouldUsePrintingLayout() const; | 178 bool shouldUsePrintingLayout() const; |
183 | 179 |
184 RenderObject* backgroundRenderer() const; | 180 RenderObject* backgroundRenderer() const; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 224 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
229 } | 225 } |
230 private: | 226 private: |
231 const PaintInvalidationState* m_paintInvalidationState; | 227 const PaintInvalidationState* m_paintInvalidationState; |
232 bool m_didDisable; | 228 bool m_didDisable; |
233 }; | 229 }; |
234 | 230 |
235 } // namespace blink | 231 } // namespace blink |
236 | 232 |
237 #endif // RenderView_h | 233 #endif // RenderView_h |
OLD | NEW |