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

Unified Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 1287623002: Delete blink code for scroll-blocks-on (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index 415f1c423d1ebccb836c0fb79e4af934945a7574..4a7f3fbe47ade2e68f9fdf28fdacb9f8b88e4d17 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1514,13 +1514,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import
parsedValue = parseTouchAction();
break;
- case CSSPropertyScrollBlocksOn:
- if (id == CSSValueNone)
- validPrimitive = true;
- else
- parsedValue = parseScrollBlocksOn();
- break;
-
case CSSPropertyAlignContent:
parsedValue = parseContentDistributionOverflowPosition();
break;
@@ -7141,31 +7134,6 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseTouchAction()
return nullptr;
}
-PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseScrollBlocksOn()
-{
- RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
- CSSParserValue* value = m_valueList->current();
- while (value) {
- switch (value->id) {
- case CSSValueStartTouch:
- case CSSValueWheelEvent:
- case CSSValueScrollEvent: {
- RefPtrWillBeRawPtr<CSSValue> flagValue = cssValuePool().createIdentifierValue(value->id);
- if (list->hasValue(flagValue.get()))
- return nullptr;
- list->append(flagValue.release());
- break;
- }
- default:
- return nullptr;
- }
- value = m_valueList->next();
- }
-
- ASSERT(list->length());
- return list.release();
-}
-
PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseTextDecoration()
{
CSSParserValue* value = m_valueList->current();

Powered by Google App Engine
This is Rietveld 408576698