| 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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
| 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
| 9 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 9 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 10 * | 10 * |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 void CSSPropertyParser::addProperty(CSSPropertyID propId, PassRefPtrWillBeRawPtr
<CSSValue> value, bool important, bool implicit) | 162 void CSSPropertyParser::addProperty(CSSPropertyID propId, PassRefPtrWillBeRawPtr
<CSSValue> value, bool important, bool implicit) |
| 163 { | 163 { |
| 164 int shorthandIndex = 0; | 164 int shorthandIndex = 0; |
| 165 bool setFromShorthand = false; | 165 bool setFromShorthand = false; |
| 166 | 166 |
| 167 if (m_currentShorthand) { | 167 if (m_currentShorthand) { |
| 168 Vector<StylePropertyShorthand, 4> shorthands; | 168 Vector<StylePropertyShorthand, 4> shorthands; |
| 169 getMatchingShorthandsForLonghand(propId, &shorthands); | 169 getMatchingShorthandsForLonghand(propId, &shorthands); |
| 170 // Viewport descriptors have width and height as shorthands, but it does
n't | 170 // Viewport descriptors have width and height as shorthands, but it does
n't |
| 171 // make sense for CSSShorthands.in to consider them as such. The shortha
nd | 171 // make sense for CSSProperties.in to consider them as such. The shortha
nd |
| 172 // index is only used by the inspector and doesn't affect viewport | 172 // index is only used by the inspector and doesn't affect viewport |
| 173 // descriptors. | 173 // descriptors. |
| 174 if (shorthands.isEmpty()) | 174 if (shorthands.isEmpty()) |
| 175 ASSERT(m_currentShorthand == CSSPropertyWidth || m_currentShorthand
== CSSPropertyHeight); | 175 ASSERT(m_currentShorthand == CSSPropertyWidth || m_currentShorthand
== CSSPropertyHeight); |
| 176 else | 176 else |
| 177 setFromShorthand = true; | 177 setFromShorthand = true; |
| 178 | 178 |
| 179 if (shorthands.size() > 1) | 179 if (shorthands.size() > 1) |
| 180 shorthandIndex = indexOfShorthandForLonghand(m_currentShorthand, sho
rthands); | 180 shorthandIndex = indexOfShorthandForLonghand(m_currentShorthand, sho
rthands); |
| 181 } | 181 } |
| (...skipping 8351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8533 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill)); | 8533 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill)); |
| 8534 if (!seenStroke) | 8534 if (!seenStroke) |
| 8535 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke)
); | 8535 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke)
); |
| 8536 if (!seenMarkers) | 8536 if (!seenMarkers) |
| 8537 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers
)); | 8537 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers
)); |
| 8538 | 8538 |
| 8539 return parsedValues.release(); | 8539 return parsedValues.release(); |
| 8540 } | 8540 } |
| 8541 | 8541 |
| 8542 } // namespace blink | 8542 } // namespace blink |
| OLD | NEW |