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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 IsNotFixedPosition, | 85 IsNotFixedPosition, |
86 IsFixedPosition, | 86 IsFixedPosition, |
87 }; | 87 }; |
88 | 88 |
89 static ViewportConstrainedPosition viewportConstrainedPosition(EPosition pos
ition) { return position == FixedPosition ? IsFixedPosition : IsNotFixedPosition
; } | 89 static ViewportConstrainedPosition viewportConstrainedPosition(EPosition pos
ition) { return position == FixedPosition ? IsFixedPosition : IsNotFixedPosition
; } |
90 void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject* paintIn
validationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvali
dationState*) const; | 90 void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject* paintIn
validationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvali
dationState*) const; |
91 virtual void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; | 91 virtual void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; |
92 void adjustViewportConstrainedOffset(LayoutRect&, ViewportConstrainedPositio
n) const; | 92 void adjustViewportConstrainedOffset(LayoutRect&, ViewportConstrainedPositio
n) const; |
93 | 93 |
94 void invalidatePaintForRectangle(const LayoutRect&, PaintInvalidationReason)
const; | 94 void invalidatePaintForRectangle(const LayoutRect&, PaintInvalidationReason)
const; |
| 95 LayoutRect rectForPaintInvalidation(const LayoutRect* paintInvalidationRectP
tr = 0) const; |
95 | 96 |
96 void invalidatePaintForViewAndCompositedLayers(); | 97 void invalidatePaintForViewAndCompositedLayers(); |
97 | 98 |
98 virtual void paint(const PaintInfo&, const LayoutPoint&) override; | 99 virtual void paint(const PaintInfo&, const LayoutPoint&) override; |
99 virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoin
t&) override; | 100 virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoin
t&) override; |
100 | 101 |
101 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld }; | 102 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld }; |
102 void setSelection(LayoutObject* start, int startPos, LayoutObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); | 103 void setSelection(LayoutObject* start, int startPos, LayoutObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); |
103 void clearSelection(); | 104 void clearSelection(); |
104 void setSelection(const FrameSelection&); | 105 void setSelection(const FrameSelection&); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 254 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
254 } | 255 } |
255 private: | 256 private: |
256 const PaintInvalidationState* m_paintInvalidationState; | 257 const PaintInvalidationState* m_paintInvalidationState; |
257 bool m_didDisable; | 258 bool m_didDisable; |
258 }; | 259 }; |
259 | 260 |
260 } // namespace blink | 261 } // namespace blink |
261 | 262 |
262 #endif // RenderView_h | 263 #endif // RenderView_h |
OLD | NEW |