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