Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: Source/WebCore/rendering/RenderView.h

Issue 10912102: Merge 125220 - Reimplement RenderQuote placement algorithm (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderQuote.cpp ('k') | Source/WebCore/rendering/RenderView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14 matching lines...) Expand all
25 #include "FrameView.h" 25 #include "FrameView.h"
26 #include "LayoutState.h" 26 #include "LayoutState.h"
27 #include "PODFreeListArena.h" 27 #include "PODFreeListArena.h"
28 #include "RenderBlock.h" 28 #include "RenderBlock.h"
29 #include <wtf/OwnPtr.h> 29 #include <wtf/OwnPtr.h>
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class FlowThreadController; 33 class FlowThreadController;
34 class RenderWidget; 34 class RenderWidget;
35 class RenderQuote;
35 36
36 #if USE(ACCELERATED_COMPOSITING) 37 #if USE(ACCELERATED_COMPOSITING)
37 class RenderLayerCompositor; 38 class RenderLayerCompositor;
38 #endif 39 #endif
39 40
40 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL) 41 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)
41 class CustomFilterGlobalContext; 42 class CustomFilterGlobalContext;
42 #endif 43 #endif
43 44
44 class RenderView : public RenderBlock { 45 class RenderView : public RenderBlock {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 FlowThreadController* flowThreadController(); 188 FlowThreadController* flowThreadController();
188 189
189 void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 190 void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
190 191
191 IntervalArena* intervalArena(); 192 IntervalArena* intervalArena();
192 193
193 IntSize viewportSize() const { return document()->viewportSize(); } 194 IntSize viewportSize() const { return document()->viewportSize(); }
194 195
195 void setFixedPositionedObjectsNeedLayout(); 196 void setFixedPositionedObjectsNeedLayout();
196 197
197 // FIXME: This is a work around because the current implementation of counte rs and quotes 198 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; }
199 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; }
200
201 // FIXME: This is a work around because the current implementation of counte rs
198 // requires walking the entire tree repeatedly and most pages don't actually use either 202 // requires walking the entire tree repeatedly and most pages don't actually use either
199 // feature so we shouldn't take the performance hit when not needed. Long te rm we should 203 // feature so we shouldn't take the performance hit when not needed. Long te rm we should
200 // rewrite the counter and quotes code. 204 // rewrite the counter and quotes code.
201 void addRenderQuote() { m_renderQuoteCount++; }
202 void removeRenderQuote() { ASSERT(m_renderQuoteCount > 0); m_renderQuoteCoun t--; }
203 bool hasRenderQuotes() { return m_renderQuoteCount; }
204 void addRenderCounter() { m_renderCounterCount++; } 205 void addRenderCounter() { m_renderCounterCount++; }
205 void removeRenderCounter() { ASSERT(m_renderCounterCount > 0); m_renderCount erCount--; } 206 void removeRenderCounter() { ASSERT(m_renderCounterCount > 0); m_renderCount erCount--; }
206 bool hasRenderCounters() { return m_renderCounterCount; } 207 bool hasRenderCounters() { return m_renderCounterCount; }
207 208
208 protected: 209 protected:
209 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, Tra nsformState&, MapLocalToContainerFlags mode = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE; 210 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, Tra nsformState&, MapLocalToContainerFlags mode = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE;
210 virtual const RenderObject* pushMappingToContainer(const RenderBoxModelObjec t* ancestorToStopAt, RenderGeometryMap&) const; 211 virtual const RenderObject* pushMappingToContainer(const RenderBoxModelObjec t* ancestorToStopAt, RenderGeometryMap&) const;
211 virtual void mapAbsoluteToLocalPoint(bool fixed, bool useTransforms, Transfo rmState&) const; 212 virtual void mapAbsoluteToLocalPoint(bool fixed, bool useTransforms, Transfo rmState&) const;
212 virtual bool requiresColumns(int desiredColumnCount) const OVERRIDE; 213 virtual bool requiresColumns(int desiredColumnCount) const OVERRIDE;
213 214
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 unsigned m_layoutStateDisableCount; 295 unsigned m_layoutStateDisableCount;
295 #if USE(ACCELERATED_COMPOSITING) 296 #if USE(ACCELERATED_COMPOSITING)
296 OwnPtr<RenderLayerCompositor> m_compositor; 297 OwnPtr<RenderLayerCompositor> m_compositor;
297 #endif 298 #endif
298 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL) 299 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)
299 OwnPtr<CustomFilterGlobalContext> m_customFilterGlobalContext; 300 OwnPtr<CustomFilterGlobalContext> m_customFilterGlobalContext;
300 #endif 301 #endif
301 OwnPtr<FlowThreadController> m_flowThreadController; 302 OwnPtr<FlowThreadController> m_flowThreadController;
302 RefPtr<IntervalArena> m_intervalArena; 303 RefPtr<IntervalArena> m_intervalArena;
303 304
304 unsigned m_renderQuoteCount; 305 RenderQuote* m_renderQuoteHead;
305 unsigned m_renderCounterCount; 306 unsigned m_renderCounterCount;
306 }; 307 };
307 308
308 inline RenderView* toRenderView(RenderObject* object) 309 inline RenderView* toRenderView(RenderObject* object)
309 { 310 {
310 ASSERT(!object || object->isRenderView()); 311 ASSERT(!object || object->isRenderView());
311 return static_cast<RenderView*>(object); 312 return static_cast<RenderView*>(object);
312 } 313 }
313 314
314 inline const RenderView* toRenderView(const RenderObject* object) 315 inline const RenderView* toRenderView(const RenderObject* object)
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 if (m_view) 424 if (m_view)
424 m_view->enableLayoutState(); 425 m_view->enableLayoutState();
425 } 426 }
426 private: 427 private:
427 RenderView* m_view; 428 RenderView* m_view;
428 }; 429 };
429 430
430 } // namespace WebCore 431 } // namespace WebCore
431 432
432 #endif // RenderView_h 433 #endif // RenderView_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderQuote.cpp ('k') | Source/WebCore/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698