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 RenderObject* selectionStart() const { return m_selectionStart; } | 77 RenderObject* selectionStart() const { return m_selectionStart; } |
78 RenderObject* selectionEnd() const { return m_selectionEnd; } | 78 RenderObject* selectionEnd() const { return m_selectionEnd; } |
79 void selectionStartEnd(int& startPos, int& endPos) const; | 79 void selectionStartEnd(int& startPos, int& endPos) const; |
80 | 80 |
81 virtual void absoluteQuads(Vector<FloatQuad>&) const override; | 81 virtual void absoluteQuads(Vector<FloatQuad>&) const override; |
82 | 82 |
83 virtual LayoutRect viewRect() const override; | 83 virtual LayoutRect viewRect() const override; |
84 | 84 |
85 LayoutState* layoutState() const { return m_layoutState; } | 85 LayoutState* layoutState() const { return m_layoutState; } |
86 | 86 |
87 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) overrid
e; | |
88 | |
89 IntRect unscaledDocumentRect() const; | 87 IntRect unscaledDocumentRect() const; |
90 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; | 88 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; |
91 | 89 |
92 IntRect documentRect() const; | 90 IntRect documentRect() const; |
93 | 91 |
94 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. | |
95 bool rootBackgroundIsEntirelyFixed() const; | |
96 | |
97 double layoutViewportWidth() const; | 92 double layoutViewportWidth() const; |
98 double layoutViewportHeight() const; | 93 double layoutViewportHeight() const; |
99 | 94 |
100 void pushLayoutState(LayoutState&); | 95 void pushLayoutState(LayoutState&); |
101 void popLayoutState(); | 96 void popLayoutState(); |
102 | 97 |
103 void addIFrame(RenderIFrame* iframe); | 98 void addIFrame(RenderIFrame* iframe); |
104 void removeIFrame(RenderIFrame* iframe); | 99 void removeIFrame(RenderIFrame* iframe); |
105 void updateIFramesAfterLayout(); | 100 void updateIFramesAfterLayout(); |
106 | 101 |
107 private: | 102 private: |
108 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const
override; | 103 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const
override; |
109 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const override; | 104 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const override; |
110 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; | 105 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; |
111 | 106 |
112 void layoutContent(); | 107 void layoutContent(); |
113 #if ENABLE(ASSERT) | 108 #if ENABLE(ASSERT) |
114 void checkLayoutState(); | 109 void checkLayoutState(); |
115 #endif | 110 #endif |
116 | 111 |
117 void positionDialog(RenderBox*); | 112 void positionDialog(RenderBox*); |
118 void positionDialogs(); | 113 void positionDialogs(); |
119 | 114 |
120 RenderObject* backgroundRenderer() const; | |
121 | |
122 FrameView* m_frameView; | 115 FrameView* m_frameView; |
123 | 116 |
124 RawPtr<RenderObject> m_selectionStart; | 117 RawPtr<RenderObject> m_selectionStart; |
125 RawPtr<RenderObject> m_selectionEnd; | 118 RawPtr<RenderObject> m_selectionEnd; |
126 | 119 |
127 int m_selectionStartPos; | 120 int m_selectionStartPos; |
128 int m_selectionEndPos; | 121 int m_selectionEndPos; |
129 | 122 |
130 LayoutState* m_layoutState; | 123 LayoutState* m_layoutState; |
131 | 124 |
132 unsigned m_renderCounterCount; | 125 unsigned m_renderCounterCount; |
133 | 126 |
134 unsigned m_hitTestCount; | 127 unsigned m_hitTestCount; |
135 | 128 |
136 WTF::HashSet<RenderIFrame*> m_iframes; | 129 WTF::HashSet<RenderIFrame*> m_iframes; |
137 }; | 130 }; |
138 | 131 |
139 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); | 132 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); |
140 | 133 |
141 } // namespace blink | 134 } // namespace blink |
142 | 135 |
143 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ | 136 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ |
OLD | NEW |