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

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

Issue 241363003: Remove some dead code from css/ folder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index e89861130584f9fd6fe30e0908a7b17ff465b241..bf2a501045d8705d5860434c367726a2b808b861 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -127,7 +127,6 @@ public:
AnimationParseContext()
: m_animationPropertyKeywordAllowed(true)
, m_firstAnimationCommitted(false)
- , m_hasSeenAnimationPropertyKeyword(false)
{
}
@@ -151,20 +150,9 @@ public:
return m_animationPropertyKeywordAllowed;
}
- bool hasSeenAnimationPropertyKeyword() const
- {
- return m_hasSeenAnimationPropertyKeyword;
- }
-
- void sawAnimationPropertyKeyword()
- {
- m_hasSeenAnimationPropertyKeyword = true;
- }
-
private:
bool m_animationPropertyKeywordAllowed;
bool m_firstAnimationCommitted;
- bool m_hasSeenAnimationPropertyKeyword;
};
CSSPropertyParser::CSSPropertyParser(OwnPtr<CSSParserValueList>& valueList,
@@ -3120,13 +3108,10 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseAnimationProperty(Anima
CSSPropertyID result = cssPropertyID(value->string);
if (result && RuntimeCSSEnabled::isCSSPropertyEnabled(result))
return cssValuePool().createIdentifierValue(result);
- if (equalIgnoringCase(value, "all")) {
- context.sawAnimationPropertyKeyword();
+ if (equalIgnoringCase(value, "all"))
return cssValuePool().createIdentifierValue(CSSValueAll);
- }
if (equalIgnoringCase(value, "none")) {
context.commitAnimationPropertyKeyword();
- context.sawAnimationPropertyKeyword();
return cssValuePool().createIdentifierValue(CSSValueNone);
}
return nullptr;
@@ -6162,7 +6147,6 @@ public:
m_allowFinalCommit = true;
}
- void setAllowFinalCommit() { m_allowFinalCommit = true; }
void setTop(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> val) { m_top = val; }
PassRefPtrWillBeRawPtr<CSSPrimitiveValue> commitBorderImageQuad()
@@ -7281,19 +7265,6 @@ bool CSSPropertyParser::parseWillChange(bool important)
return true;
}
-bool CSSPropertyParser::isBlendMode(CSSValueID valueID)
-{
- return (valueID >= CSSValueMultiply && valueID <= CSSValueLuminosity)
- || valueID == CSSValueNormal
- || valueID == CSSValueOverlay;
-}
-
-bool CSSPropertyParser::isCompositeOperator(CSSValueID valueID)
-{
- // FIXME: Add CSSValueDestination and CSSValueLighter when the Compositing spec updates.
- return valueID >= CSSValueClear && valueID <= CSSValueXor;
-}
-
static void filterInfoForName(const CSSParserString& name, CSSFilterValue::FilterOperationType& filterType, unsigned& maximumArgumentCount)
{
if (equalIgnoringCase(name, "grayscale("))
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698