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

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

Issue 181713003: Have Document::accessSVGExtensions() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/dom/Element.cpp ('k') | Source/core/rendering/svg/ReferenceFilterBuilder.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) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 continue; 219 continue;
220 220
221 if ((child->isBox() && toRenderBox(child)->hasRelativeLogicalHeight( )) 221 if ((child->isBox() && toRenderBox(child)->hasRelativeLogicalHeight( ))
222 || child->style()->logicalHeight().isPercent() 222 || child->style()->logicalHeight().isPercent()
223 || child->style()->logicalMinHeight().isPercent() 223 || child->style()->logicalMinHeight().isPercent()
224 || child->style()->logicalMaxHeight().isPercent()) 224 || child->style()->logicalMaxHeight().isPercent())
225 layoutScope.setChildNeedsLayout(child); 225 layoutScope.setChildNeedsLayout(child);
226 } 226 }
227 227
228 if (document().svgExtensions()) 228 if (document().svgExtensions())
229 document().accessSVGExtensions()->invalidateSVGRootsWithRelativeLeng thDescendents(&layoutScope); 229 document().accessSVGExtensions().invalidateSVGRootsWithRelativeLengt hDescendents(&layoutScope);
230 } 230 }
231 231
232 ASSERT(!m_layoutState); 232 ASSERT(!m_layoutState);
233 if (!needsLayout()) 233 if (!needsLayout())
234 return; 234 return;
235 235
236 LayoutState state; 236 LayoutState state;
237 initializeLayoutState(state); 237 initializeLayoutState(state);
238 238
239 m_pageLogicalHeightChanged = false; 239 m_pageLogicalHeightChanged = false;
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 return viewWidth(IncludeScrollbars) / scale; 1007 return viewWidth(IncludeScrollbars) / scale;
1008 } 1008 }
1009 1009
1010 double RenderView::layoutViewportHeight() const 1010 double RenderView::layoutViewportHeight() const
1011 { 1011 {
1012 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; 1012 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1;
1013 return viewHeight(IncludeScrollbars) / scale; 1013 return viewHeight(IncludeScrollbars) / scale;
1014 } 1014 }
1015 1015
1016 } // namespace WebCore 1016 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/rendering/svg/ReferenceFilterBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698