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

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

Issue 10913088: Revert 127609 - Merge 124969 (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;
36 35
37 #if USE(ACCELERATED_COMPOSITING) 36 #if USE(ACCELERATED_COMPOSITING)
38 class RenderLayerCompositor; 37 class RenderLayerCompositor;
39 #endif 38 #endif
40 39
41 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL) 40 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)
42 class CustomFilterGlobalContext; 41 class CustomFilterGlobalContext;
43 #endif 42 #endif
44 43
45 class RenderView : public RenderBlock { 44 class RenderView : public RenderBlock {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 FlowThreadController* flowThreadController(); 187 FlowThreadController* flowThreadController();
189 188
190 void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 189 void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
191 190
192 IntervalArena* intervalArena(); 191 IntervalArena* intervalArena();
193 192
194 IntSize viewportSize() const { return document()->viewportSize(); } 193 IntSize viewportSize() const { return document()->viewportSize(); }
195 194
196 void setFixedPositionedObjectsNeedLayout(); 195 void setFixedPositionedObjectsNeedLayout();
197 196
198 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; } 197 // FIXME: This is a work around because the current implementation of counte rs and quotes
199 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; }
200
201 // FIXME: This is a work around because the current implementation of counte rs
202 // requires walking the entire tree repeatedly and most pages don't actually use either 198 // requires walking the entire tree repeatedly and most pages don't actually use either
203 // feature so we shouldn't take the performance hit when not needed. Long te rm we should 199 // feature so we shouldn't take the performance hit when not needed. Long te rm we should
204 // rewrite the counter and quotes code. 200 // 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; }
205 void addRenderCounter() { m_renderCounterCount++; } 204 void addRenderCounter() { m_renderCounterCount++; }
206 void removeRenderCounter() { ASSERT(m_renderCounterCount > 0); m_renderCount erCount--; } 205 void removeRenderCounter() { ASSERT(m_renderCounterCount > 0); m_renderCount erCount--; }
207 bool hasRenderCounters() { return m_renderCounterCount; } 206 bool hasRenderCounters() { return m_renderCounterCount; }
208 207
209 protected: 208 protected:
210 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, Tra nsformState&, MapLocalToContainerFlags mode = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE; 209 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, Tra nsformState&, MapLocalToContainerFlags mode = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE;
211 virtual const RenderObject* pushMappingToContainer(const RenderBoxModelObjec t* ancestorToStopAt, RenderGeometryMap&) const; 210 virtual const RenderObject* pushMappingToContainer(const RenderBoxModelObjec t* ancestorToStopAt, RenderGeometryMap&) const;
212 virtual void mapAbsoluteToLocalPoint(bool fixed, bool useTransforms, Transfo rmState&) const; 211 virtual void mapAbsoluteToLocalPoint(bool fixed, bool useTransforms, Transfo rmState&) const;
213 virtual bool requiresColumns(int desiredColumnCount) const OVERRIDE; 212 virtual bool requiresColumns(int desiredColumnCount) const OVERRIDE;
214 213
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 unsigned m_layoutStateDisableCount; 294 unsigned m_layoutStateDisableCount;
296 #if USE(ACCELERATED_COMPOSITING) 295 #if USE(ACCELERATED_COMPOSITING)
297 OwnPtr<RenderLayerCompositor> m_compositor; 296 OwnPtr<RenderLayerCompositor> m_compositor;
298 #endif 297 #endif
299 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL) 298 #if ENABLE(CSS_SHADERS) && ENABLE(WEBGL)
300 OwnPtr<CustomFilterGlobalContext> m_customFilterGlobalContext; 299 OwnPtr<CustomFilterGlobalContext> m_customFilterGlobalContext;
301 #endif 300 #endif
302 OwnPtr<FlowThreadController> m_flowThreadController; 301 OwnPtr<FlowThreadController> m_flowThreadController;
303 RefPtr<IntervalArena> m_intervalArena; 302 RefPtr<IntervalArena> m_intervalArena;
304 303
305 RenderQuote* m_renderQuoteHead; 304 unsigned m_renderQuoteCount;
306 unsigned m_renderCounterCount; 305 unsigned m_renderCounterCount;
307 }; 306 };
308 307
309 inline RenderView* toRenderView(RenderObject* object) 308 inline RenderView* toRenderView(RenderObject* object)
310 { 309 {
311 ASSERT(!object || object->isRenderView()); 310 ASSERT(!object || object->isRenderView());
312 return static_cast<RenderView*>(object); 311 return static_cast<RenderView*>(object);
313 } 312 }
314 313
315 inline const RenderView* toRenderView(const RenderObject* object) 314 inline const RenderView* toRenderView(const RenderObject* object)
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 if (m_view) 423 if (m_view)
425 m_view->enableLayoutState(); 424 m_view->enableLayoutState();
426 } 425 }
427 private: 426 private:
428 RenderView* m_view; 427 RenderView* m_view;
429 }; 428 };
430 429
431 } // namespace WebCore 430 } // namespace WebCore
432 431
433 #endif // RenderView_h 432 #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