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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderVideo.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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 bool rootBackgroundIsEntirelyFixed() const; 172 bool rootBackgroundIsEntirelyFixed() const;
173 173
174 bool hasRenderNamedFlowThreads() const; 174 bool hasRenderNamedFlowThreads() const;
175 bool checkTwoPassLayoutForAutoHeightRegions() const; 175 bool checkTwoPassLayoutForAutoHeightRegions() const;
176 FlowThreadController* flowThreadController(); 176 FlowThreadController* flowThreadController();
177 177
178 void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 178 void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
179 179
180 IntervalArena* intervalArena(); 180 IntervalArena* intervalArena();
181 181
182 IntSize viewportSize() const { return document()->viewportSize(); } 182 IntSize viewportSize() const { return document().viewportSize(); }
183 183
184 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; } 184 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; }
185 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; } 185 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; }
186 186
187 // 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
188 // 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
189 // 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
190 // rewrite the counter and quotes code. 190 // rewrite the counter and quotes code.
191 void addRenderCounter() { m_renderCounterCount++; } 191 void addRenderCounter() { m_renderCounterCount++; }
192 void removeRenderCounter() { ASSERT(m_renderCounterCount > 0); m_renderCount erCount--; } 192 void removeRenderCounter() { ASSERT(m_renderCounterCount > 0); m_renderCount erCount--; }
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 RenderObject::FlowThreadState m_flowThreadState; 395 RenderObject::FlowThreadState m_flowThreadState;
396 bool m_fragmenting; 396 bool m_fragmenting;
397 #ifndef NDEBUG 397 #ifndef NDEBUG
398 LayoutState* m_layoutState; 398 LayoutState* m_layoutState;
399 #endif 399 #endif
400 }; 400 };
401 401
402 } // namespace WebCore 402 } // namespace WebCore
403 403
404 #endif // RenderView_h 404 #endif // RenderView_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderVideo.cpp ('k') | Source/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698