| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 int viewWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const; | 66 int viewWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const; |
| 67 int viewLogicalWidth() const | 67 int viewLogicalWidth() const |
| 68 { | 68 { |
| 69 return viewWidth(ExcludeScrollbars); | 69 return viewWidth(ExcludeScrollbars); |
| 70 } | 70 } |
| 71 int viewLogicalHeight() const; | 71 int viewLogicalHeight() const; |
| 72 LayoutUnit viewLogicalHeightForPercentages() const; | 72 LayoutUnit viewLogicalHeightForPercentages() const; |
| 73 | 73 |
| 74 FrameView* frameView() const { return m_frameView; } | 74 FrameView* frameView() const { return m_frameView; } |
| 75 | 75 |
| 76 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; | |
| 77 | |
| 78 virtual void paint(PaintInfo&, const LayoutPoint&) override; | 76 virtual void paint(PaintInfo&, const LayoutPoint&) override; |
| 79 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov
erride; | 77 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov
erride; |
| 80 | 78 |
| 81 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld, PaintInvalidationNothing }; | 79 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld, PaintInvalidationNothing }; |
| 82 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); | 80 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; | 81 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje
ct*& endRenderer, int& endOffset) const; |
| 84 void clearSelection(); | 82 void clearSelection(); |
| 85 RenderObject* selectionStart() const { return m_selectionStart; } | 83 RenderObject* selectionStart() const { return m_selectionStart; } |
| 86 RenderObject* selectionEnd() const { return m_selectionEnd; } | 84 RenderObject* selectionEnd() const { return m_selectionEnd; } |
| 87 IntRect selectionBounds() const; | |
| 88 void selectionStartEnd(int& startPos, int& endPos) const; | 85 void selectionStartEnd(int& startPos, int& endPos) const; |
| 89 | 86 |
| 90 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const override; | 87 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const override; |
| 91 virtual void absoluteQuads(Vector<FloatQuad>&) const override; | 88 virtual void absoluteQuads(Vector<FloatQuad>&) const override; |
| 92 | 89 |
| 93 virtual LayoutRect viewRect() const override; | 90 virtual LayoutRect viewRect() const override; |
| 94 | 91 |
| 95 LayoutState* layoutState() const { return m_layoutState; } | 92 LayoutState* layoutState() const { return m_layoutState; } |
| 96 | 93 |
| 97 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) overrid
e; | 94 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) overrid
e; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 173 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 177 } | 174 } |
| 178 private: | 175 private: |
| 179 const PaintInvalidationState* m_paintInvalidationState; | 176 const PaintInvalidationState* m_paintInvalidationState; |
| 180 bool m_didDisable; | 177 bool m_didDisable; |
| 181 }; | 178 }; |
| 182 | 179 |
| 183 } // namespace blink | 180 } // namespace blink |
| 184 | 181 |
| 185 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ | 182 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ |
| OLD | NEW |