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

Unified Diff: Source/core/css/CSSPrimitiveValueMappings.h

Issue 1212893005: Add position: sticky as supported position value when CSSStickyPosition is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge, convert pixel to ref tests, and address comments. Created 5 years, 5 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: Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/Source/core/css/CSSPrimitiveValueMappings.h b/Source/core/css/CSSPrimitiveValueMappings.h
index c87dae894140b94a4f71767e741826f3635bdacc..ca2c5574d01e32d92712938b5ce14a535201951f 100644
--- a/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1839,6 +1839,9 @@ template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EPosition e)
case FixedPosition:
m_value.valueID = CSSValueFixed;
break;
+ case StickyPosition:
+ m_value.valueID = CSSValueSticky;
+ break;
}
}
@@ -1854,6 +1857,8 @@ template<> inline CSSPrimitiveValue::operator EPosition() const
return AbsolutePosition;
case CSSValueFixed:
return FixedPosition;
+ case CSSValueSticky:
+ return StickyPosition;
default:
break;
}
« no previous file with comments | « LayoutTests/fast/css/sticky/sticky-stacking-context-expected.html ('k') | Source/core/css/CSSValueKeywords.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698