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

Unified Diff: third_party/WebKit/Source/core/layout/TextAutosizer.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/TextAutosizer.cpp
diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
index 22d3bcae0dd8e54b5cf8c1d84e881da2d494bbac..0a1eaf60333bcd2e879a16c411c23d74b1f54bc2 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
@@ -880,7 +880,7 @@ float TextAutosizer::widthFromBlock(const LayoutBlock* block) const
if ((width = specifiedWidth.value()) > 0)
return width;
}
- if (specifiedWidth.hasPercent()) {
+ if (specifiedWidth.isPercentOrCalc()) {
if (float containerWidth = block->containingBlock()->contentLogicalWidth().toFloat()) {
if ((width = floatValueForLength(specifiedWidth, containerWidth)) > 0)
return width;

Powered by Google App Engine
This is Rietveld 408576698