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

Unified Diff: third_party/WebKit/Source/core/css/CSSProperty.cpp

Issue 2577363002: Implement CSS Logical Properties: inline/block size (Closed)
Patch Set: Refactor test case Created 3 years, 11 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/css/CSSProperty.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSProperty.cpp b/third_party/WebKit/Source/core/css/CSSProperty.cpp
index 6ab6ebda63371e7f1969998b63bc47a514dc3def..5ec54d646e1d8871512fad05b52842f80947ef6f 100644
--- a/third_party/WebKit/Source/core/css/CSSProperty.cpp
+++ b/third_party/WebKit/Source/core/css/CSSProperty.cpp
@@ -226,29 +226,35 @@ CSSPropertyID CSSProperty::resolveDirectionAwareProperty(
case CSSPropertyWebkitBorderAfterWidth:
return resolveToPhysicalProperty(direction, writingMode, AfterSide,
borderWidthShorthand());
+ case CSSPropertyInlineSize:
case CSSPropertyWebkitLogicalWidth: {
const CSSPropertyID properties[2] = {CSSPropertyWidth, CSSPropertyHeight};
return resolveToPhysicalProperty(writingMode, LogicalWidth, properties);
}
+ case CSSPropertyBlockSize:
case CSSPropertyWebkitLogicalHeight: {
const CSSPropertyID properties[2] = {CSSPropertyWidth, CSSPropertyHeight};
return resolveToPhysicalProperty(writingMode, LogicalHeight, properties);
}
+ case CSSPropertyMinInlineSize:
case CSSPropertyWebkitMinLogicalWidth: {
const CSSPropertyID properties[2] = {CSSPropertyMinWidth,
CSSPropertyMinHeight};
return resolveToPhysicalProperty(writingMode, LogicalWidth, properties);
}
+ case CSSPropertyMinBlockSize:
case CSSPropertyWebkitMinLogicalHeight: {
const CSSPropertyID properties[2] = {CSSPropertyMinWidth,
CSSPropertyMinHeight};
return resolveToPhysicalProperty(writingMode, LogicalHeight, properties);
}
+ case CSSPropertyMaxInlineSize:
case CSSPropertyWebkitMaxLogicalWidth: {
const CSSPropertyID properties[2] = {CSSPropertyMaxWidth,
CSSPropertyMaxHeight};
return resolveToPhysicalProperty(writingMode, LogicalWidth, properties);
}
+ case CSSPropertyMaxBlockSize:
case CSSPropertyWebkitMaxLogicalHeight: {
const CSSPropertyID properties[2] = {CSSPropertyMaxWidth,
CSSPropertyMaxHeight};

Powered by Google App Engine
This is Rietveld 408576698