Commit 39537104 authored by yoav@yoav.ws's avatar yoav@yoav.ws

Clean up parseMediaQueryList from BisonCSSParser

Following https://codereview.chromium.org/171383002/ BisonCSSParser::parseMediaQueryList is no longer used. This CL removes that unused code.

BUG=

Review URL: https://codereview.chromium.org/201573006

git-svn-id: svn://svn.chromium.org/blink/trunk@169808 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 8e655a09
...@@ -1208,19 +1208,6 @@ bool BisonCSSParser::parseDeclaration(MutableStylePropertySet* declaration, cons ...@@ -1208,19 +1208,6 @@ bool BisonCSSParser::parseDeclaration(MutableStylePropertySet* declaration, cons
return ok; return ok;
} }
PassRefPtrWillBeRawPtr<MediaQuerySet> BisonCSSParser::parseMediaQueryList(const String& string)
{
ASSERT(!m_mediaList);
// can't use { because tokenizer state switches from mediaquery to initial state when it sees { token.
// instead insert one " " (which is caught by maybe_space in CSSGrammar.y)
setupParser("@-internal-medialist ", string, "");
cssyyparse(this);
ASSERT(m_mediaList);
return m_mediaList.release();
}
static inline void filterProperties(bool important, const WillBeHeapVector<CSSProperty, 256>& input, WillBeHeapVector<CSSProperty, 256>& output, size_t& unusedEntries, BitArray<numCSSProperties>& seenProperties) static inline void filterProperties(bool important, const WillBeHeapVector<CSSProperty, 256>& input, WillBeHeapVector<CSSProperty, 256>& output, size_t& unusedEntries, BitArray<numCSSProperties>& seenProperties)
{ {
// Add properties in reverse order so that highest priority definitions are reached first. Duplicate definitions can then be ignored when found. // Add properties in reverse order so that highest priority definitions are reached first. Duplicate definitions can then be ignored when found.
......
...@@ -98,7 +98,6 @@ public: ...@@ -98,7 +98,6 @@ public:
static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(const String&); static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(const String&);
bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObserver*, StyleSheetContents* contextStyleSheet); bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObserver*, StyleSheetContents* contextStyleSheet);
static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(const String&, Element*); static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(const String&, Element*);
PassRefPtrWillBeRawPtr<MediaQuerySet> parseMediaQueryList(const String&);
PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&);
static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String&, bool important, const Document&); static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String&, bool important, const Document&);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment