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 8117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8128 PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseMotionRotation() | 8128 PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseMotionRotation() |
8129 { | 8129 { |
8130 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated()
; | 8130 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated()
; |
8131 bool hasAutoOrReverse = false; | 8131 bool hasAutoOrReverse = false; |
8132 bool hasAngle = false; | 8132 bool hasAngle = false; |
8133 | 8133 |
8134 for (CSSParserValue* value = m_valueList->current(); value; value = m_valueL
ist->next()) { | 8134 for (CSSParserValue* value = m_valueList->current(); value; value = m_valueL
ist->next()) { |
8135 if ((value->id == CSSValueAuto || value->id == CSSValueReverse) && !hasA
utoOrReverse) { | 8135 if ((value->id == CSSValueAuto || value->id == CSSValueReverse) && !hasA
utoOrReverse) { |
8136 list->append(cssValuePool().createIdentifierValue(value->id)); | 8136 list->append(cssValuePool().createIdentifierValue(value->id)); |
8137 hasAutoOrReverse = true; | 8137 hasAutoOrReverse = true; |
8138 } else if (validUnit(value, FAngle) && !hasAngle) { | 8138 } else if (!hasAngle && validUnit(value, FAngle)) { |
8139 list->append(createPrimitiveNumericValue(value)); | 8139 list->append(createPrimitiveNumericValue(value)); |
8140 hasAngle = true; | 8140 hasAngle = true; |
8141 } else { | 8141 } else { |
8142 break; | 8142 break; |
8143 } | 8143 } |
8144 } | 8144 } |
8145 | 8145 |
8146 if (!list->length()) | 8146 if (!list->length()) |
8147 return nullptr; | 8147 return nullptr; |
8148 | 8148 |
8149 return list.release(); | 8149 return list.release(); |
8150 } | 8150 } |
8151 | 8151 |
8152 } // namespace blink | 8152 } // namespace blink |
OLD | NEW |