| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 3265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3276 return hasTransformOperations() || hasOffset() || | 3276 return hasTransformOperations() || hasOffset() || |
| 3277 hasCurrentTransformAnimation() || translate() || rotate() || scale(); | 3277 hasCurrentTransformAnimation() || translate() || rotate() || scale(); |
| 3278 } | 3278 } |
| 3279 bool hasTransformOperations() const { | 3279 bool hasTransformOperations() const { |
| 3280 return !m_rareNonInheritedData->m_transform->m_operations.operations() | 3280 return !m_rareNonInheritedData->m_transform->m_operations.operations() |
| 3281 .isEmpty(); | 3281 .isEmpty(); |
| 3282 } | 3282 } |
| 3283 ETransformStyle3D usedTransformStyle3D() const { | 3283 ETransformStyle3D usedTransformStyle3D() const { |
| 3284 return hasGroupingProperty() ? TransformStyle3DFlat : transformStyle3D(); | 3284 return hasGroupingProperty() ? TransformStyle3DFlat : transformStyle3D(); |
| 3285 } | 3285 } |
| 3286 // Returns whether the transform operations for |otherStyle| differ from the |
| 3287 // operations for this style instance. Note that callers may want to also |
| 3288 // check hasTransform(), as it is possible for two styles to have matching |
| 3289 // transform operations but differ in other transform-impacting style |
| 3290 // respects. |
| 3286 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { | 3291 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { |
| 3287 return m_rareNonInheritedData->m_transform == | 3292 return m_rareNonInheritedData->m_transform == |
| 3288 otherStyle.m_rareNonInheritedData->m_transform; | 3293 otherStyle.m_rareNonInheritedData->m_transform; |
| 3289 } | 3294 } |
| 3290 bool preserves3D() const { | 3295 bool preserves3D() const { |
| 3291 return usedTransformStyle3D() != TransformStyle3DFlat; | 3296 return usedTransformStyle3D() != TransformStyle3DFlat; |
| 3292 } | 3297 } |
| 3293 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }; | 3298 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }; |
| 3294 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; | 3299 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; |
| 3295 enum ApplyIndependentTransformProperties { | 3300 enum ApplyIndependentTransformProperties { |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3784 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - FirstPublicPseudoId); | 3789 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - FirstPublicPseudoId); |
| 3785 } | 3790 } |
| 3786 | 3791 |
| 3787 inline bool ComputedStyle::hasPseudoElementStyle() const { | 3792 inline bool ComputedStyle::hasPseudoElementStyle() const { |
| 3788 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 3793 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
| 3789 } | 3794 } |
| 3790 | 3795 |
| 3791 } // namespace blink | 3796 } // namespace blink |
| 3792 | 3797 |
| 3793 #endif // ComputedStyle_h | 3798 #endif // ComputedStyle_h |
| OLD | NEW |