| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
| 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 CSSPropertyGlyphOrientationHorizontal, | 322 CSSPropertyGlyphOrientationHorizontal, |
| 323 CSSPropertyGlyphOrientationVertical, | 323 CSSPropertyGlyphOrientationVertical, |
| 324 CSSPropertyVectorEffect, | 324 CSSPropertyVectorEffect, |
| 325 CSSPropertyPaintOrder, | 325 CSSPropertyPaintOrder, |
| 326 CSSPropertyCx, | 326 CSSPropertyCx, |
| 327 CSSPropertyCy, | 327 CSSPropertyCy, |
| 328 CSSPropertyX, | 328 CSSPropertyX, |
| 329 CSSPropertyY, | 329 CSSPropertyY, |
| 330 CSSPropertyR, | 330 CSSPropertyR, |
| 331 CSSPropertyRx, | 331 CSSPropertyRx, |
| 332 CSSPropertyRy | 332 CSSPropertyRy, |
| 333 CSSPropertyTranslate, |
| 334 CSSPropertyRotate, |
| 335 CSSPropertyScale |
| 333 }; | 336 }; |
| 334 | 337 |
| 335 static const Vector<CSSPropertyID>& computableProperties() | 338 static const Vector<CSSPropertyID>& computableProperties() |
| 336 { | 339 { |
| 337 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ()); | 340 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ()); |
| 338 if (properties.isEmpty()) | 341 if (properties.isEmpty()) |
| 339 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(staticComputab
leProperties, WTF_ARRAY_LENGTH(staticComputableProperties), properties); | 342 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(staticComputab
leProperties, WTF_ARRAY_LENGTH(staticComputableProperties), properties); |
| 340 return properties; | 343 return properties; |
| 341 } | 344 } |
| 342 | 345 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 // statement must remain in sync with the conditions in the main switch. | 454 // statement must remain in sync with the conditions in the main switch. |
| 452 // FIXME: Some of these cases could be narrowed down or optimized better. | 455 // FIXME: Some of these cases could be narrowed down or optimized better. |
| 453 switch (propertyID) { | 456 switch (propertyID) { |
| 454 case CSSPropertyBottom: | 457 case CSSPropertyBottom: |
| 455 case CSSPropertyHeight: | 458 case CSSPropertyHeight: |
| 456 case CSSPropertyLeft: | 459 case CSSPropertyLeft: |
| 457 case CSSPropertyRight: | 460 case CSSPropertyRight: |
| 458 case CSSPropertyTop: | 461 case CSSPropertyTop: |
| 459 case CSSPropertyPerspectiveOrigin: | 462 case CSSPropertyPerspectiveOrigin: |
| 460 case CSSPropertyTransform: | 463 case CSSPropertyTransform: |
| 464 case CSSPropertyTranslate: |
| 465 case CSSPropertyRotate: |
| 466 case CSSPropertyScale: |
| 461 case CSSPropertyTransformOrigin: | 467 case CSSPropertyTransformOrigin: |
| 462 case CSSPropertyMotionPath: | 468 case CSSPropertyMotionPath: |
| 463 case CSSPropertyMotionOffset: | 469 case CSSPropertyMotionOffset: |
| 464 case CSSPropertyMotionRotation: | 470 case CSSPropertyMotionRotation: |
| 465 case CSSPropertyWidth: | 471 case CSSPropertyWidth: |
| 466 case CSSPropertyWebkitFilter: | 472 case CSSPropertyWebkitFilter: |
| 467 case CSSPropertyX: | 473 case CSSPropertyX: |
| 468 case CSSPropertyY: | 474 case CSSPropertyY: |
| 469 case CSSPropertyRx: | 475 case CSSPropertyRx: |
| 470 case CSSPropertyRy: | 476 case CSSPropertyRy: |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); | 684 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); |
| 679 } | 685 } |
| 680 | 686 |
| 681 DEFINE_TRACE(CSSComputedStyleDeclaration) | 687 DEFINE_TRACE(CSSComputedStyleDeclaration) |
| 682 { | 688 { |
| 683 visitor->trace(m_node); | 689 visitor->trace(m_node); |
| 684 CSSStyleDeclaration::trace(visitor); | 690 CSSStyleDeclaration::trace(visitor); |
| 685 } | 691 } |
| 686 | 692 |
| 687 } // namespace blink | 693 } // namespace blink |
| OLD | NEW |