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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 bool usesCompositing() const; | 167 bool usesCompositing() const; |
168 | 168 |
169 IntRect unscaledDocumentRect() const; | 169 IntRect unscaledDocumentRect() const; |
170 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; | 170 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; |
171 | 171 |
172 IntRect documentRect() const; | 172 IntRect documentRect() const; |
173 | 173 |
174 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. | 174 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. |
175 bool rootBackgroundIsEntirelyFixed() const; | 175 bool rootBackgroundIsEntirelyFixed() const; |
176 | 176 |
177 bool hasRenderNamedFlowThreads() const; | |
178 bool checkTwoPassLayoutForAutoHeightRegions() const; | |
179 FlowThreadController* flowThreadController(); | 177 FlowThreadController* flowThreadController(); |
180 | 178 |
181 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; | |
182 | |
183 IntervalArena* intervalArena(); | 179 IntervalArena* intervalArena(); |
184 | 180 |
185 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; } | 181 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; } |
186 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; } | 182 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; } |
187 | 183 |
188 // FIXME: This is a work around because the current implementation of counte
rs | 184 // FIXME: This is a work around because the current implementation of counte
rs |
189 // requires walking the entire tree repeatedly and most pages don't actually
use either | 185 // requires walking the entire tree repeatedly and most pages don't actually
use either |
190 // feature so we shouldn't take the performance hit when not needed. Long te
rm we should | 186 // feature so we shouldn't take the performance hit when not needed. Long te
rm we should |
191 // rewrite the counter and quotes code. | 187 // rewrite the counter and quotes code. |
192 void addRenderCounter() { m_renderCounterCount++; } | 188 void addRenderCounter() { m_renderCounterCount++; } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 | 231 |
236 // Suspends the LayoutState optimization. Used under transforms that cannot
be represented by | 232 // Suspends the LayoutState optimization. Used under transforms that cannot
be represented by |
237 // LayoutState (common in SVG) and when manipulating the render tree during
layout in ways | 233 // LayoutState (common in SVG) and when manipulating the render tree during
layout in ways |
238 // that can trigger repaint of a non-child (e.g. when a list item moves its
list marker around). | 234 // that can trigger repaint of a non-child (e.g. when a list item moves its
list marker around). |
239 // Note that even when disabled, LayoutState is still used to store layoutDe
lta. | 235 // Note that even when disabled, LayoutState is still used to store layoutDe
lta. |
240 // These functions may only be accessed by LayoutStateMaintainer or LayoutSt
ateDisabler. | 236 // These functions may only be accessed by LayoutStateMaintainer or LayoutSt
ateDisabler. |
241 void disableLayoutState() { m_layoutStateDisableCount++; } | 237 void disableLayoutState() { m_layoutStateDisableCount++; } |
242 void enableLayoutState() { ASSERT(m_layoutStateDisableCount > 0); m_layoutSt
ateDisableCount--; } | 238 void enableLayoutState() { ASSERT(m_layoutStateDisableCount > 0); m_layoutSt
ateDisableCount--; } |
243 | 239 |
244 void layoutContent(const LayoutState&); | 240 void layoutContent(const LayoutState&); |
245 void layoutContentInAutoLogicalHeightRegions(const LayoutState&); | |
246 #ifndef NDEBUG | 241 #ifndef NDEBUG |
247 void checkLayoutState(const LayoutState&); | 242 void checkLayoutState(const LayoutState&); |
248 #endif | 243 #endif |
249 | 244 |
250 void positionDialog(RenderBox*); | 245 void positionDialog(RenderBox*); |
251 void positionDialogs(); | 246 void positionDialogs(); |
252 | 247 |
253 void pushLayoutStateForCurrentFlowThread(const RenderObject*); | 248 void pushLayoutStateForCurrentFlowThread(const RenderObject*); |
254 void popLayoutStateForCurrentFlowThread(); | 249 void popLayoutStateForCurrentFlowThread(); |
255 | 250 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 if (m_view) | 357 if (m_view) |
363 m_view->enableLayoutState(); | 358 m_view->enableLayoutState(); |
364 } | 359 } |
365 private: | 360 private: |
366 RenderView* m_view; | 361 RenderView* m_view; |
367 }; | 362 }; |
368 | 363 |
369 } // namespace WebCore | 364 } // namespace WebCore |
370 | 365 |
371 #endif // RenderView_h | 366 #endif // RenderView_h |
OLD | NEW |