| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov
erride; | 81 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov
erride; |
| 82 | 82 |
| 83 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld, PaintInvalidationNothing }; | 83 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld, PaintInvalidationNothing }; |
| 84 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); | 84 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); |
| 85 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje
ct*& endRenderer, int& endOffset) const; | 85 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje
ct*& endRenderer, int& endOffset) const; |
| 86 void clearSelection(); | 86 void clearSelection(); |
| 87 RenderObject* selectionStart() const { return m_selectionStart; } | 87 RenderObject* selectionStart() const { return m_selectionStart; } |
| 88 RenderObject* selectionEnd() const { return m_selectionEnd; } | 88 RenderObject* selectionEnd() const { return m_selectionEnd; } |
| 89 IntRect selectionBounds(bool clipToVisibleContent = true) const; | 89 IntRect selectionBounds(bool clipToVisibleContent = true) const; |
| 90 void selectionStartEnd(int& startPos, int& endPos) const; | 90 void selectionStartEnd(int& startPos, int& endPos) const; |
| 91 void invalidatePaintForSelection() const; | |
| 92 | 91 |
| 93 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const override; | 92 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const override; |
| 94 virtual void absoluteQuads(Vector<FloatQuad>&) const override; | 93 virtual void absoluteQuads(Vector<FloatQuad>&) const override; |
| 95 | 94 |
| 96 virtual LayoutRect viewRect() const override; | 95 virtual LayoutRect viewRect() const override; |
| 97 | 96 |
| 98 bool shouldDoFullPaintInvalidationForNextLayout() const; | 97 bool shouldDoFullPaintInvalidationForNextLayout() const; |
| 99 bool doingFullPaintInvalidation() const { return m_frameView->needsFullPaint
Invalidation(); } | 98 bool doingFullPaintInvalidation() const { return m_frameView->needsFullPaint
Invalidation(); } |
| 100 | 99 |
| 101 LayoutState* layoutState() const { return m_layoutState; } | 100 LayoutState* layoutState() const { return m_layoutState; } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 182 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 184 } | 183 } |
| 185 private: | 184 private: |
| 186 const PaintInvalidationState* m_paintInvalidationState; | 185 const PaintInvalidationState* m_paintInvalidationState; |
| 187 bool m_didDisable; | 186 bool m_didDisable; |
| 188 }; | 187 }; |
| 189 | 188 |
| 190 } // namespace blink | 189 } // namespace blink |
| 191 | 190 |
| 192 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ | 191 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ |
| OLD | NEW |