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

Unified Diff: Source/core/layout/LayoutBox.cpp

Issue 946553003: [CSS Grid Layout] Avoid reset override logical width/height for non relative elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/LayoutBox.h ('k') | Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBox.cpp
diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp
index 052e2f01f00296eda3883006fe978dde97fbb6cd..402c8d1aceffca1a703b9172f5f2356f746ffd92 100644
--- a/Source/core/layout/LayoutBox.cpp
+++ b/Source/core/layout/LayoutBox.cpp
@@ -4508,6 +4508,13 @@ LayoutPoint LayoutBox::topLeftLocation() const
return containerBlock->flipForWritingModeForChild(this, location());
}
+bool LayoutBox::hasRelativeLogicalWidth() const
+{
+ return style()->logicalWidth().isPercent()
+ || style()->logicalMinWidth().isPercent()
+ || style()->logicalMaxWidth().isPercent();
+}
+
bool LayoutBox::hasRelativeLogicalHeight() const
{
return style()->logicalHeight().isPercent()
« no previous file with comments | « Source/core/layout/LayoutBox.h ('k') | Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698