OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve
d. | 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve
d. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 bool inQuirksMode() const { return isQuirksModeBehavior(m_context.mode()); } | 117 bool inQuirksMode() const { return isQuirksModeBehavior(m_context.mode()); } |
118 | 118 |
119 bool parseViewportDescriptor(CSSPropertyID propId, bool important); | 119 bool parseViewportDescriptor(CSSPropertyID propId, bool important); |
120 bool parseFontFaceDescriptor(CSSPropertyID); | 120 bool parseFontFaceDescriptor(CSSPropertyID); |
121 | 121 |
122 void addProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>, bool impor
tant, bool implicit = false); | 122 void addProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>, bool impor
tant, bool implicit = false); |
123 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtrWillBeRawPt
r<CSSValue>, bool); | 123 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtrWillBeRawPt
r<CSSValue>, bool); |
124 | 124 |
125 bool consumeBorder(bool important); | 125 bool consumeBorder(bool important); |
126 | 126 |
127 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ide
nt, CSSParserValue*); | |
128 | |
129 bool parseShorthand(CSSPropertyID, bool important); | 127 bool parseShorthand(CSSPropertyID, bool important); |
130 bool consumeShorthandGreedily(const StylePropertyShorthand&, bool important)
; | 128 bool consumeShorthandGreedily(const StylePropertyShorthand&, bool important)
; |
131 bool consume4Values(const StylePropertyShorthand&, bool important); | 129 bool consume4Values(const StylePropertyShorthand&, bool important); |
132 | 130 |
133 bool parseFillImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&); | 131 bool parseFillImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&); |
134 | 132 |
135 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1,
XFillPosition = 2, YFillPosition = 4 }; | 133 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1,
XFillPosition = 2, YFillPosition = 4 }; |
136 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe
yword = 1 }; | 134 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe
yword = 1 }; |
137 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSPars
erValueList*, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillP
ositionParsingMode = ResolveValuesAsPercent, Units = FUnknown); | 135 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseFillPositionComponent(CSSPars
erValueList*, unsigned& cumulativeFlags, FillPositionFlag& individualFlag, FillP
ositionParsingMode = ResolveValuesAsPercent, Units = FUnknown); |
138 PassRefPtrWillBeRawPtr<CSSValue> parseFillPositionX(CSSParserValueList*); | 136 PassRefPtrWillBeRawPtr<CSSValue> parseFillPositionX(CSSParserValueList*); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 bool m_implicitShorthand; | 284 bool m_implicitShorthand; |
287 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; | 285 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; |
288 }; | 286 }; |
289 | 287 |
290 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); | 288 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); |
291 CSSValueID cssValueKeywordID(const CSSParserString&); | 289 CSSValueID cssValueKeywordID(const CSSParserString&); |
292 | 290 |
293 } // namespace blink | 291 } // namespace blink |
294 | 292 |
295 #endif // CSSPropertyParser_h | 293 #endif // CSSPropertyParser_h |
OLD | NEW |