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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 virtual bool isRenderView() const OVERRIDE { return true; } | 52 virtual bool isRenderView() const OVERRIDE { return true; } |
53 | 53 |
54 virtual bool requiresLayer() const OVERRIDE { return true; } | 54 virtual bool requiresLayer() const OVERRIDE { return true; } |
55 | 55 |
56 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; | 56 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; |
57 | 57 |
58 virtual void layout() OVERRIDE; | 58 virtual void layout() OVERRIDE; |
59 virtual void updateLogicalWidth() OVERRIDE; | 59 virtual void updateLogicalWidth() OVERRIDE; |
60 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE; | 60 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE; |
61 | 61 |
62 virtual bool supportsPartialLayout() const OVERRIDE { return true; } | |
63 | |
62 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const OVERRIDE; | 64 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const OVERRIDE; |
63 | 65 |
64 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards. | 66 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards. |
65 int viewHeight() const; | 67 int viewHeight() const; |
66 int viewWidth() const; | 68 int viewWidth() const; |
67 int viewLogicalWidth() const { return style()->isHorizontalWritingMode() ? v iewWidth() : viewHeight(); } | 69 int viewLogicalWidth() const { return style()->isHorizontalWritingMode() ? v iewWidth() : viewHeight(); } |
68 int viewLogicalHeight() const; | 70 int viewLogicalHeight() const; |
69 | 71 |
70 float zoomFactor() const; | 72 float zoomFactor() const; |
71 | 73 |
72 FrameView* frameView() const { return m_frameView; } | 74 FrameView* frameView() const OVERRIDE { return m_frameView; } |
eseidel
2013/08/20 21:00:39
virtual?
esprehn
2013/08/23 20:47:27
This should not be virtual, just do document()->vi
pdr.
2013/08/26 05:50:40
Thanks for this explanation. Fixed
| |
73 | 75 |
74 virtual void computeRectForRepaint(const RenderLayerModelObject* repaintCont ainer, LayoutRect&, bool fixed = false) const OVERRIDE; | 76 virtual void computeRectForRepaint(const RenderLayerModelObject* repaintCont ainer, LayoutRect&, bool fixed = false) const OVERRIDE; |
75 void repaintViewRectangle(const LayoutRect&) const; | 77 void repaintViewRectangle(const LayoutRect&) const; |
76 // Repaint the view, and all composited layers that intersect the given abso lute rectangle. | 78 // Repaint the view, and all composited layers that intersect the given abso lute rectangle. |
77 // FIXME: ideally we'd never have to do this, if all repaints are container- relative. | 79 // FIXME: ideally we'd never have to do this, if all repaints are container- relative. |
78 void repaintRectangleInViewAndCompositedLayers(const LayoutRect&); | 80 void repaintRectangleInViewAndCompositedLayers(const LayoutRect&); |
79 void repaintViewAndCompositedLayers(); | 81 void repaintViewAndCompositedLayers(); |
80 | 82 |
81 virtual void paint(PaintInfo&, const LayoutPoint&); | 83 virtual void paint(PaintInfo&, const LayoutPoint&); |
82 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&) OVERRIDE; | 84 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&) OVERRIDE; |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
395 RenderObject::FlowThreadState m_flowThreadState; | 397 RenderObject::FlowThreadState m_flowThreadState; |
396 bool m_fragmenting; | 398 bool m_fragmenting; |
397 #ifndef NDEBUG | 399 #ifndef NDEBUG |
398 LayoutState* m_layoutState; | 400 LayoutState* m_layoutState; |
399 #endif | 401 #endif |
400 }; | 402 }; |
401 | 403 |
402 } // namespace WebCore | 404 } // namespace WebCore |
403 | 405 |
404 #endif // RenderView_h | 406 #endif // RenderView_h |
OLD | NEW |