| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 enum ViewportConstrainedPosition { | 106 enum ViewportConstrainedPosition { |
| 107 IsNotFixedPosition, | 107 IsNotFixedPosition, |
| 108 IsFixedPosition, | 108 IsFixedPosition, |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 static ViewportConstrainedPosition viewportConstrainedPosition(EPosition pos
ition) { return position == FixedPosition ? IsFixedPosition : IsNotFixedPosition
; } | 111 static ViewportConstrainedPosition viewportConstrainedPosition(EPosition pos
ition) { return position == FixedPosition ? IsFixedPosition : IsNotFixedPosition
; } |
| 112 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva
lidationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvalida
tionState*) const; | 112 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva
lidationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvalida
tionState*) const; |
| 113 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva
lidationContainer, LayoutRect&, const PaintInvalidationState*) const override; | 113 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva
lidationContainer, LayoutRect&, const PaintInvalidationState*) const override; |
| 114 void adjustViewportConstrainedOffset(LayoutRect&, ViewportConstrainedPositio
n) const; | 114 void adjustViewportConstrainedOffset(LayoutRect&, ViewportConstrainedPositio
n) const; |
| 115 | 115 |
| 116 void invalidatePaintForViewAndCompositedLayers(); | 116 void invalidatePaintForViewAndCompositedLayers(bool changeDirectlyComposited
Images = false); |
| 117 | 117 |
| 118 void paint(const PaintInfo&, const LayoutPoint&) const override; | 118 void paint(const PaintInfo&, const LayoutPoint&) const override; |
| 119 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&) cons
t override; | 119 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&) cons
t override; |
| 120 | 120 |
| 121 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld }; | 121 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld }; |
| 122 void setSelection(LayoutObject* start, int startPos, LayoutObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); | 122 void setSelection(LayoutObject* start, int startPos, LayoutObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); |
| 123 void clearSelection(); | 123 void clearSelection(); |
| 124 bool hasPendingSelection() const; | 124 bool hasPendingSelection() const; |
| 125 void commitPendingSelection(); | 125 void commitPendingSelection(); |
| 126 LayoutObject* selectionStart(); | 126 LayoutObject* selectionStart(); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 300 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 301 } | 301 } |
| 302 private: | 302 private: |
| 303 const PaintInvalidationState* m_paintInvalidationState; | 303 const PaintInvalidationState* m_paintInvalidationState; |
| 304 bool m_didDisable; | 304 bool m_didDisable; |
| 305 }; | 305 }; |
| 306 | 306 |
| 307 } // namespace blink | 307 } // namespace blink |
| 308 | 308 |
| 309 #endif // LayoutView_h | 309 #endif // LayoutView_h |
| OLD | NEW |