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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2286543002: Add Length::isPercent and use it in tables. (Closed)
Patch Set: rebase Created 4 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
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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 bool relayoutChildren = !shouldUsePrintingLayout() && (!m_frameView 235 bool relayoutChildren = !shouldUsePrintingLayout() && (!m_frameView
236 || logicalWidth() != viewLogicalWidthForBoxSizing() 236 || logicalWidth() != viewLogicalWidthForBoxSizing()
237 || logicalHeight() != viewLogicalHeightForBoxSizing()); 237 || logicalHeight() != viewLogicalHeightForBoxSizing());
238 if (relayoutChildren) { 238 if (relayoutChildren) {
239 layoutScope.setChildNeedsLayout(this); 239 layoutScope.setChildNeedsLayout(this);
240 for (LayoutObject* child = firstChild(); child; child = child->nextSibli ng()) { 240 for (LayoutObject* child = firstChild(); child; child = child->nextSibli ng()) {
241 if (child->isSVGRoot()) 241 if (child->isSVGRoot())
242 continue; 242 continue;
243 243
244 if ((child->isBox() && toLayoutBox(child)->hasRelativeLogicalHeight( )) 244 if ((child->isBox() && toLayoutBox(child)->hasRelativeLogicalHeight( ))
245 || child->style()->logicalHeight().hasPercent() 245 || child->style()->logicalHeight().isPercentOrCalc()
246 || child->style()->logicalMinHeight().hasPercent() 246 || child->style()->logicalMinHeight().isPercentOrCalc()
247 || child->style()->logicalMaxHeight().hasPercent()) 247 || child->style()->logicalMaxHeight().isPercentOrCalc())
248 layoutScope.setChildNeedsLayout(child); 248 layoutScope.setChildNeedsLayout(child);
249 } 249 }
250 250
251 if (document().svgExtensions()) 251 if (document().svgExtensions())
252 document().accessSVGExtensions().invalidateSVGRootsWithRelativeLengt hDescendents(&layoutScope); 252 document().accessSVGExtensions().invalidateSVGRootsWithRelativeLengt hDescendents(&layoutScope);
253 } 253 }
254 254
255 ASSERT(!m_layoutState); 255 ASSERT(!m_layoutState);
256 if (!needsLayout()) 256 if (!needsLayout())
257 return; 257 return;
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 // of this override. All frame scrolling should be handled by 990 // of this override. All frame scrolling should be handled by
991 // ViewportScrollCallback. 991 // ViewportScrollCallback.
992 992
993 if (!frameView()) 993 if (!frameView())
994 return ScrollResult(false, false, delta.width(), delta.height()); 994 return ScrollResult(false, false, delta.width(), delta.height());
995 995
996 return frameView()->getScrollableArea()->userScroll(granularity, delta); 996 return frameView()->getScrollableArea()->userScroll(granularity, delta);
997 } 997 }
998 998
999 } // namespace blink 999 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698