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

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

Issue 2646043003: Implements CSSPropertyAPI for the clip-path property. (Closed)
Patch Set: remove using namespace 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/parser/CSSPropertyParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
index 5e523cc87f9d63fe874a51a4436ce2970dda2f96..de2d7aef673effb4a1c5e18a8e1d2579e1fe8509 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1438,15 +1438,6 @@ static CSSValue* consumeScrollSnapPoints(CSSParserTokenRange& range,
return nullptr;
}
-static CSSValue* consumeClipPath(CSSParserTokenRange& range,
- const CSSParserContext* context) {
- if (range.peek().id() == CSSValueNone)
- return consumeIdent(range);
- if (CSSURIValue* url = consumeUrl(range, context))
- return url;
- return CSSPropertyShapeUtils::consumeBasicShape(range, context);
-}
-
static CSSValue* consumeContentDistributionOverflowPosition(
CSSParserTokenRange& range) {
if (identMatches<CSSValueNormal, CSSValueBaseline, CSSValueLastBaseline>(
@@ -2573,8 +2564,6 @@ const CSSValue* CSSPropertyParser::parseSingleValue(
return consumeScrollSnapPoints(m_range, m_context->mode());
case CSSPropertyOrder:
return consumeInteger(m_range);
- case CSSPropertyClipPath:
- return consumeClipPath(m_range, m_context);
case CSSPropertyJustifyContent:
case CSSPropertyAlignContent:
ASSERT(RuntimeEnabledFeatures::cssGridLayoutEnabled());

Powered by Google App Engine
This is Rietveld 408576698