| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 { | 71 { |
| 72 return style()->isHorizontalWritingMode() ? viewWidth(ExcludeScrollbars)
: viewHeight(ExcludeScrollbars); | 72 return style()->isHorizontalWritingMode() ? viewWidth(ExcludeScrollbars)
: viewHeight(ExcludeScrollbars); |
| 73 } | 73 } |
| 74 int viewLogicalHeight() const; | 74 int viewLogicalHeight() const; |
| 75 LayoutUnit viewLogicalHeightForPercentages() const; | 75 LayoutUnit viewLogicalHeightForPercentages() const; |
| 76 | 76 |
| 77 float zoomFactor() const; | 77 float zoomFactor() const; |
| 78 | 78 |
| 79 FrameView* frameView() const { return m_frameView; } | 79 FrameView* frameView() const { return m_frameView; } |
| 80 | 80 |
| 81 enum ViewportConstrainedPosition { | |
| 82 IsNotFixedPosition, | |
| 83 IsFixedPosition, | |
| 84 }; | |
| 85 void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintIn
validationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvali
dationState*) const; | |
| 86 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; | 81 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; |
| 87 | 82 |
| 88 void invalidatePaintForRectangle(const LayoutRect&) const; | 83 void invalidatePaintForRectangle(const LayoutRect&) const; |
| 89 | 84 |
| 90 void invalidatePaintForViewAndCompositedLayers(); | 85 void invalidatePaintForViewAndCompositedLayers(); |
| 91 | 86 |
| 92 virtual void paint(PaintInfo&, const LayoutPoint&) override; | 87 virtual void paint(PaintInfo&, const LayoutPoint&) override; |
| 93 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov
erride; | 88 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov
erride; |
| 94 | 89 |
| 95 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld, PaintInvalidationNothing }; | 90 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval
idationNewMinusOld, PaintInvalidationNothing }; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 196 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 202 } | 197 } |
| 203 private: | 198 private: |
| 204 const PaintInvalidationState* m_paintInvalidationState; | 199 const PaintInvalidationState* m_paintInvalidationState; |
| 205 bool m_didDisable; | 200 bool m_didDisable; |
| 206 }; | 201 }; |
| 207 | 202 |
| 208 } // namespace blink | 203 } // namespace blink |
| 209 | 204 |
| 210 #endif // RenderView_h | 205 #endif // RenderView_h |
| OLD | NEW |