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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 CSSPropertyStrokeOpacity, | 334 CSSPropertyStrokeOpacity, |
335 CSSPropertyStrokeWidth, | 335 CSSPropertyStrokeWidth, |
336 CSSPropertyAlignmentBaseline, | 336 CSSPropertyAlignmentBaseline, |
337 CSSPropertyBaselineShift, | 337 CSSPropertyBaselineShift, |
338 CSSPropertyDominantBaseline, | 338 CSSPropertyDominantBaseline, |
339 CSSPropertyTextAnchor, | 339 CSSPropertyTextAnchor, |
340 CSSPropertyWritingMode, | 340 CSSPropertyWritingMode, |
341 CSSPropertyGlyphOrientationHorizontal, | 341 CSSPropertyGlyphOrientationHorizontal, |
342 CSSPropertyGlyphOrientationVertical, | 342 CSSPropertyGlyphOrientationVertical, |
343 CSSPropertyVectorEffect, | 343 CSSPropertyVectorEffect, |
344 CSSPropertyPaintOrder | 344 CSSPropertyPaintOrder, |
| 345 CSSPropertyX, |
| 346 CSSPropertyY |
345 }; | 347 }; |
346 | 348 |
347 static const Vector<CSSPropertyID>& computableProperties() | 349 static const Vector<CSSPropertyID>& computableProperties() |
348 { | 350 { |
349 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ()); | 351 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ()); |
350 if (properties.isEmpty()) | 352 if (properties.isEmpty()) |
351 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(staticComputab
leProperties, WTF_ARRAY_LENGTH(staticComputableProperties), properties); | 353 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(staticComputab
leProperties, WTF_ARRAY_LENGTH(staticComputableProperties), properties); |
352 return properties; | 354 return properties; |
353 } | 355 } |
354 | 356 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 case CSSPropertyWebkitPerspectiveOrigin: | 476 case CSSPropertyWebkitPerspectiveOrigin: |
475 case CSSPropertyTransform: | 477 case CSSPropertyTransform: |
476 case CSSPropertyWebkitTransform: | 478 case CSSPropertyWebkitTransform: |
477 case CSSPropertyTransformOrigin: | 479 case CSSPropertyTransformOrigin: |
478 case CSSPropertyWebkitTransformOrigin: | 480 case CSSPropertyWebkitTransformOrigin: |
479 case CSSPropertyMotionPath: | 481 case CSSPropertyMotionPath: |
480 case CSSPropertyMotionPosition: | 482 case CSSPropertyMotionPosition: |
481 case CSSPropertyMotionRotation: | 483 case CSSPropertyMotionRotation: |
482 case CSSPropertyWidth: | 484 case CSSPropertyWidth: |
483 case CSSPropertyWebkitFilter: | 485 case CSSPropertyWebkitFilter: |
| 486 case CSSPropertyX: |
| 487 case CSSPropertyY: |
484 return true; | 488 return true; |
485 case CSSPropertyMargin: | 489 case CSSPropertyMargin: |
486 return renderer && renderer->isBox() && (!style || !style->marginBottom(
).isFixed() || !style->marginTop().isFixed() || !style->marginLeft().isFixed() |
| !style->marginRight().isFixed()); | 490 return renderer && renderer->isBox() && (!style || !style->marginBottom(
).isFixed() || !style->marginTop().isFixed() || !style->marginLeft().isFixed() |
| !style->marginRight().isFixed()); |
487 case CSSPropertyMarginLeft: | 491 case CSSPropertyMarginLeft: |
488 return renderer && renderer->isBox() && (!style || !style->marginLeft().
isFixed()); | 492 return renderer && renderer->isBox() && (!style || !style->marginLeft().
isFixed()); |
489 case CSSPropertyMarginRight: | 493 case CSSPropertyMarginRight: |
490 return renderer && renderer->isBox() && (!style || !style->marginRight()
.isFixed()); | 494 return renderer && renderer->isBox() && (!style || !style->marginRight()
.isFixed()); |
491 case CSSPropertyMarginTop: | 495 case CSSPropertyMarginTop: |
492 return renderer && renderer->isBox() && (!style || !style->marginTop().i
sFixed()); | 496 return renderer && renderer->isBox() && (!style || !style->marginTop().i
sFixed()); |
493 case CSSPropertyMarginBottom: | 497 case CSSPropertyMarginBottom: |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); | 690 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a
re computed, and therefore the '" + getPropertyNameString(id) + "' property is r
ead-only."); |
687 } | 691 } |
688 | 692 |
689 void CSSComputedStyleDeclaration::trace(Visitor* visitor) | 693 void CSSComputedStyleDeclaration::trace(Visitor* visitor) |
690 { | 694 { |
691 visitor->trace(m_node); | 695 visitor->trace(m_node); |
692 CSSStyleDeclaration::trace(visitor); | 696 CSSStyleDeclaration::trace(visitor); |
693 } | 697 } |
694 | 698 |
695 } // namespace blink | 699 } // namespace blink |
OLD | NEW |