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

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

Issue 2932593004: Update the snap points css properties (Closed)
Patch Set: Fix nits Created 3 years, 6 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 1d21939f37fee273b19593d5519356ca2be41eb4..3b7a35422093e6ff5f251c0e3351c1147ae835b4 100644
--- a/third_party/WebKit/Source/core/css/CSSProperty.cpp
+++ b/third_party/WebKit/Source/core/css/CSSProperty.cpp
@@ -227,6 +227,30 @@ CSSPropertyID CSSProperty::ResolveDirectionAwareProperty(
case CSSPropertyWebkitBorderAfterWidth:
return ResolveToPhysicalProperty(direction, writing_mode, kAfterSide,
borderWidthShorthand());
+ case CSSPropertyScrollPaddingInlineStart:
+ return ResolveToPhysicalProperty(direction, writing_mode, kStartSide,
+ scrollPaddingShorthand());
+ case CSSPropertyScrollPaddingInlineEnd:
+ return ResolveToPhysicalProperty(direction, writing_mode, kEndSide,
+ scrollPaddingShorthand());
+ case CSSPropertyScrollPaddingBlockStart:
+ return ResolveToPhysicalProperty(direction, writing_mode, kBeforeSide,
+ scrollPaddingShorthand());
+ case CSSPropertyScrollPaddingBlockEnd:
+ return ResolveToPhysicalProperty(direction, writing_mode, kAfterSide,
+ scrollPaddingShorthand());
+ case CSSPropertyScrollSnapMarginInlineStart:
+ return ResolveToPhysicalProperty(direction, writing_mode, kStartSide,
+ scrollSnapMarginShorthand());
+ case CSSPropertyScrollSnapMarginInlineEnd:
+ return ResolveToPhysicalProperty(direction, writing_mode, kEndSide,
+ scrollSnapMarginShorthand());
+ case CSSPropertyScrollSnapMarginBlockStart:
+ return ResolveToPhysicalProperty(direction, writing_mode, kBeforeSide,
+ scrollSnapMarginShorthand());
+ case CSSPropertyScrollSnapMarginBlockEnd:
+ return ResolveToPhysicalProperty(direction, writing_mode, kAfterSide,
+ scrollSnapMarginShorthand());
case CSSPropertyInlineSize:
case CSSPropertyWebkitLogicalWidth: {
const CSSPropertyID kProperties[2] = {CSSPropertyWidth,

Powered by Google App Engine
This is Rietveld 408576698