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

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

Issue 134473008: Remove CSS regions support, keeping a bare minimum to support "region-based" multicol. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 234
239 // Suspends the LayoutState optimization. Used under transforms that cannot be represented by 235 // Suspends the LayoutState optimization. Used under transforms that cannot be represented by
240 // LayoutState (common in SVG) and when manipulating the render tree during layout in ways 236 // LayoutState (common in SVG) and when manipulating the render tree during layout in ways
241 // that can trigger repaint of a non-child (e.g. when a list item moves its list marker around). 237 // that can trigger repaint of a non-child (e.g. when a list item moves its list marker around).
242 // Note that even when disabled, LayoutState is still used to store layoutDe lta. 238 // Note that even when disabled, LayoutState is still used to store layoutDe lta.
243 // These functions may only be accessed by LayoutStateMaintainer or LayoutSt ateDisabler. 239 // These functions may only be accessed by LayoutStateMaintainer or LayoutSt ateDisabler.
244 void disableLayoutState() { m_layoutStateDisableCount++; } 240 void disableLayoutState() { m_layoutStateDisableCount++; }
245 void enableLayoutState() { ASSERT(m_layoutStateDisableCount > 0); m_layoutSt ateDisableCount--; } 241 void enableLayoutState() { ASSERT(m_layoutStateDisableCount > 0); m_layoutSt ateDisableCount--; }
246 242
247 void layoutContent(const LayoutState&); 243 void layoutContent(const LayoutState&);
248 void layoutContentInAutoLogicalHeightRegions(const LayoutState&);
249 #ifndef NDEBUG 244 #ifndef NDEBUG
250 void checkLayoutState(const LayoutState&); 245 void checkLayoutState(const LayoutState&);
251 #endif 246 #endif
252 247
253 void positionDialog(RenderBox*); 248 void positionDialog(RenderBox*);
254 void positionDialogs(); 249 void positionDialogs();
255 250
256 void pushLayoutStateForCurrentFlowThread(const RenderObject*); 251 void pushLayoutStateForCurrentFlowThread(const RenderObject*);
257 void popLayoutStateForCurrentFlowThread(); 252 void popLayoutStateForCurrentFlowThread();
258 253
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 if (m_view) 362 if (m_view)
368 m_view->enableLayoutState(); 363 m_view->enableLayoutState();
369 } 364 }
370 private: 365 private:
371 RenderView* m_view; 366 RenderView* m_view;
372 }; 367 };
373 368
374 } // namespace WebCore 369 } // namespace WebCore
375 370
376 #endif // RenderView_h 371 #endif // RenderView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698