| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 if (!inValue || !inValue->isValueList()) { | 90 if (!inValue || !inValue->isValueList()) { |
| 91 outOperations.clear(); | 91 outOperations.clear(); |
| 92 return false; | 92 return false; |
| 93 } | 93 } |
| 94 | 94 |
| 95 float zoomFactor = style ? style->effectiveZoom() : 1; | 95 float zoomFactor = style ? style->effectiveZoom() : 1; |
| 96 TransformOperations operations; | 96 TransformOperations operations; |
| 97 for (CSSValueListIterator i = inValue; i.hasMore(); i.advance()) { | 97 for (CSSValueListIterator i = inValue; i.hasMore(); i.advance()) { |
| 98 CSSValue* currValue = i.value(); | 98 CSSValue* currValue = i.value(); |
| 99 | 99 |
| 100 if (!currValue->isCSSTransformValue()) | 100 if (!currValue->isTransformValue()) |
| 101 continue; | 101 continue; |
| 102 | 102 |
| 103 CSSTransformValue* transformValue = static_cast<CSSTransformValue*>(i.va
lue()); | 103 CSSTransformValue* transformValue = toCSSTransformValue(i.value()); |
| 104 if (!transformValue->length()) | 104 if (!transformValue->length()) |
| 105 continue; | 105 continue; |
| 106 | 106 |
| 107 bool haveNonPrimitiveValue = false; | 107 bool haveNonPrimitiveValue = false; |
| 108 for (unsigned j = 0; j < transformValue->length(); ++j) { | 108 for (unsigned j = 0; j < transformValue->length(); ++j) { |
| 109 if (!transformValue->itemWithoutBoundsCheck(j)->isPrimitiveValue())
{ | 109 if (!transformValue->itemWithoutBoundsCheck(j)->isPrimitiveValue())
{ |
| 110 haveNonPrimitiveValue = true; | 110 haveNonPrimitiveValue = true; |
| 111 break; | 111 break; |
| 112 } | 112 } |
| 113 } | 113 } |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 ASSERT_NOT_REACHED(); | 324 ASSERT_NOT_REACHED(); |
| 325 break; | 325 break; |
| 326 } | 326 } |
| 327 } | 327 } |
| 328 | 328 |
| 329 outOperations = operations; | 329 outOperations = operations; |
| 330 return true; | 330 return true; |
| 331 } | 331 } |
| 332 | 332 |
| 333 } // namespace WebCore | 333 } // namespace WebCore |
| OLD | NEW |