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

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

Issue 23072015: Get rid of lazy block. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/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 15 matching lines...) Expand all
26 #include "core/platform/PODFreeListArena.h" 26 #include "core/platform/PODFreeListArena.h"
27 #include "core/rendering/LayoutState.h" 27 #include "core/rendering/LayoutState.h"
28 #include "core/rendering/RenderBlock.h" 28 #include "core/rendering/RenderBlock.h"
29 #include "wtf/OwnPtr.h" 29 #include "wtf/OwnPtr.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class CustomFilterGlobalContext; 33 class CustomFilterGlobalContext;
34 class FlowThreadController; 34 class FlowThreadController;
35 class RenderLayerCompositor; 35 class RenderLayerCompositor;
36 class RenderLazyBlock;
37 class RenderQuote; 36 class RenderQuote;
38 class RenderWidget; 37 class RenderWidget;
39 38
40 // The root of the render tree, corresponding to the CSS initial containing bloc k. 39 // The root of the render tree, corresponding to the CSS initial containing bloc k.
41 // It's dimensions match that of the viewport, and it is always at position (0,0 ) 40 // It's dimensions match that of the viewport, and it is always at position (0,0 )
42 // relative to the document (and so isn't necessarily in view). 41 // relative to the document (and so isn't necessarily in view).
43 class RenderView FINAL : public RenderBlock { 42 class RenderView FINAL : public RenderBlock {
44 public: 43 public:
45 explicit RenderView(Document*); 44 explicit RenderView(Document*);
46 virtual ~RenderView(); 45 virtual ~RenderView();
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 177
179 void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 178 void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
180 179
181 IntervalArena* intervalArena(); 180 IntervalArena* intervalArena();
182 181
183 IntSize viewportSize() const { return document()->viewportSize(); } 182 IntSize viewportSize() const { return document()->viewportSize(); }
184 183
185 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; } 184 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; }
186 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; } 185 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; }
187 186
188 void setFirstLazyBlock(RenderLazyBlock* block) { m_firstLazyBlock = block; }
189 RenderLazyBlock* firstLazyBlock() const { return m_firstLazyBlock; }
190 void markLazyBlocksForLayout();
191
192 // FIXME: This is a work around because the current implementation of counte rs 187 // FIXME: This is a work around because the current implementation of counte rs
193 // requires walking the entire tree repeatedly and most pages don't actually use either 188 // requires walking the entire tree repeatedly and most pages don't actually use either
194 // feature so we shouldn't take the performance hit when not needed. Long te rm we should 189 // feature so we shouldn't take the performance hit when not needed. Long te rm we should
195 // rewrite the counter and quotes code. 190 // rewrite the counter and quotes code.
196 void addRenderCounter() { m_renderCounterCount++; } 191 void addRenderCounter() { m_renderCounterCount++; }
197 void removeRenderCounter() { ASSERT(m_renderCounterCount > 0); m_renderCount erCount--; } 192 void removeRenderCounter() { ASSERT(m_renderCounterCount > 0); m_renderCount erCount--; }
198 bool hasRenderCounters() { return m_renderCounterCount; } 193 bool hasRenderCounters() { return m_renderCounterCount; }
199 194
200 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) OVERRIDE; 195 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) OVERRIDE;
201 196
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 271
277 LayoutUnit m_pageLogicalHeight; 272 LayoutUnit m_pageLogicalHeight;
278 bool m_pageLogicalHeightChanged; 273 bool m_pageLogicalHeightChanged;
279 LayoutState* m_layoutState; 274 LayoutState* m_layoutState;
280 unsigned m_layoutStateDisableCount; 275 unsigned m_layoutStateDisableCount;
281 OwnPtr<RenderLayerCompositor> m_compositor; 276 OwnPtr<RenderLayerCompositor> m_compositor;
282 OwnPtr<CustomFilterGlobalContext> m_customFilterGlobalContext; 277 OwnPtr<CustomFilterGlobalContext> m_customFilterGlobalContext;
283 OwnPtr<FlowThreadController> m_flowThreadController; 278 OwnPtr<FlowThreadController> m_flowThreadController;
284 RefPtr<IntervalArena> m_intervalArena; 279 RefPtr<IntervalArena> m_intervalArena;
285 280
286 RenderLazyBlock* m_firstLazyBlock;
287 RenderQuote* m_renderQuoteHead; 281 RenderQuote* m_renderQuoteHead;
288 unsigned m_renderCounterCount; 282 unsigned m_renderCounterCount;
289 }; 283 };
290 284
291 inline RenderView* toRenderView(RenderObject* object) 285 inline RenderView* toRenderView(RenderObject* object)
292 { 286 {
293 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderView()); 287 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderView());
294 return static_cast<RenderView*>(object); 288 return static_cast<RenderView*>(object);
295 } 289 }
296 290
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 RenderObject::FlowThreadState m_flowThreadState; 395 RenderObject::FlowThreadState m_flowThreadState;
402 bool m_fragmenting; 396 bool m_fragmenting;
403 #ifndef NDEBUG 397 #ifndef NDEBUG
404 LayoutState* m_layoutState; 398 LayoutState* m_layoutState;
405 #endif 399 #endif
406 }; 400 };
407 401
408 } // namespace WebCore 402 } // namespace WebCore
409 403
410 #endif // RenderView_h 404 #endif // RenderView_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698