| Index: Source/core/css/parser/CSSParser.cpp
|
| diff --git a/Source/core/css/parser/CSSParser.cpp b/Source/core/css/parser/CSSParser.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2b5f574e68ab4d42e6db226dadfbf4f328642307
|
| --- /dev/null
|
| +++ b/Source/core/css/parser/CSSParser.cpp
|
| @@ -0,0 +1,118 @@
|
| +/*
|
| + * Copyright (C) 2013 Google Inc. All rights reserved.
|
| + *
|
| + * Redistribution and use in source and binary forms, with or without
|
| + * modification, are permitted provided that the following conditions are
|
| + * met:
|
| + *
|
| + * * Redistributions of source code must retain the above copyright
|
| + * notice, this list of conditions and the following disclaimer.
|
| + * * Redistributions in binary form must reproduce the above
|
| + * copyright notice, this list of conditions and the following disclaimer
|
| + * in the documentation and/or other materials provided with the
|
| + * distribution.
|
| + * * Neither the name of Google Inc. nor the names of its
|
| + * contributors may be used to endorse or promote products derived from
|
| + * this software without specific prior written permission.
|
| + *
|
| + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + */
|
| +
|
| +#include "config.h"
|
| +#include "core/css/parser/CSSParser.h"
|
| +
|
| +#include "core/css/StyleRule.h"
|
| +#include "core/css/CSSKeyframeRule.h"
|
| +
|
| +namespace WebCore {
|
| +
|
| +CSSParser::CSSParser(const CSSParserContext& context, UseCounter* useCounter)
|
| + : m_bisonParser(context, useCounter)
|
| +{
|
| +}
|
| +
|
| +void CSSParser::parseSheet(StyleSheetContents* contents,
|
| + const String& sheet, const TextPosition& startPosition,
|
| + CSSParserObserver* observer, bool logErrors)
|
| +{
|
| + m_bisonParser.parseSheet(contents, sheet, startPosition, observer, logErrors);
|
| +}
|
| +
|
| +bool CSSParser::parseDeclaration(MutableStylePropertySet* propertySet,
|
| + const String& declaration, CSSParserObserver* observer,
|
| + StyleSheetContents* contextStyleSheet)
|
| +{
|
| + return m_bisonParser.parseDeclaration(propertySet, declaration, observer, contextStyleSheet);
|
| +}
|
| +
|
| +void CSSParser::parseSelector(const String& selector, CSSSelectorList& selectorList)
|
| +{
|
| + m_bisonParser.parseSelector(selector, selectorList);
|
| +}
|
| +
|
| +PassRefPtr<StyleRuleBase> CSSParser::parseRule(StyleSheetContents* contents, const String& ruleString)
|
| +{
|
| + return m_bisonParser.parseRule(contents, ruleString);
|
| +}
|
| +
|
| +PassRefPtr<StyleKeyframe> CSSParser::parseKeyframeRule(StyleSheetContents* contents, const String& ruleString)
|
| +{
|
| + return m_bisonParser.parseKeyframeRule(contents, ruleString);
|
| +}
|
| +
|
| +PassOwnPtr<Vector<double> > CSSParser::parseKeyframeKeyList(const String& keyframesString)
|
| +{
|
| + return m_bisonParser.parseKeyframeKeyList(keyframesString);
|
| +}
|
| +
|
| +PassRefPtr<MediaQuerySet> CSSParser::parseMediaQueryList(const String& queryString)
|
| +{
|
| + return m_bisonParser.parseMediaQueryList(queryString);
|
| +}
|
| +
|
| +bool CSSParser::parseSupportsCondition(const String& conditionString)
|
| +{
|
| + return m_bisonParser.parseSupportsCondition(conditionString);
|
| +}
|
| +
|
| +bool CSSParser::parseColor(RGBA32& color, const String& colorString, bool strict)
|
| +{
|
| + return BisonCSSParser::parseColor(color, colorString, strict);
|
| +}
|
| +
|
| +bool CSSParser::parseSystemColor(RGBA32& color, const String& colorString, Document* document)
|
| +{
|
| + return BisonCSSParser::parseSystemColor(color, colorString, document);
|
| +}
|
| +
|
| +bool CSSParser::parseValue(MutableStylePropertySet* propertySet, CSSPropertyID propertyId, const String& valueString, bool important, CSSParserMode parserMode, StyleSheetContents* sheetContents)
|
| +{
|
| + return BisonCSSParser::parseValue(propertySet, propertyId, valueString, important, parserMode, sheetContents);
|
| +}
|
| +
|
| +bool CSSParser::parseValue(MutableStylePropertySet* propertySet, CSSPropertyID propertyId, const String& valueString, bool important, const Document& document)
|
| +{
|
| + return BisonCSSParser::parseValue(propertySet, propertyId, valueString, important, document);
|
| +}
|
| +
|
| +PassRefPtr<ImmutableStylePropertySet> CSSParser::parseInlineStyleDeclaration(const String& styleString, Element* element)
|
| +{
|
| + return BisonCSSParser::parseInlineStyleDeclaration(styleString, element);
|
| +}
|
| +
|
| +PassRefPtr<CSSValueList> CSSParser::parseFontFaceValue(const AtomicString& fontFaceValue)
|
| +{
|
| + return BisonCSSParser::parseFontFaceValue(fontFaceValue);
|
| +}
|
| +
|
| +} // namespace WebCore
|
|
|