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 r
ights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
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 Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 TextEmphasisPosition textEmphasisPosition() const { return static_cast<TextE
mphasisPosition>(rareInheritedData->textEmphasisPosition); } | 872 TextEmphasisPosition textEmphasisPosition() const { return static_cast<TextE
mphasisPosition>(rareInheritedData->textEmphasisPosition); } |
873 const AtomicString& textEmphasisMarkString() const; | 873 const AtomicString& textEmphasisMarkString() const; |
874 | 874 |
875 RubyPosition rubyPosition() const { return static_cast<RubyPosition>(rareInh
eritedData->m_rubyPosition); } | 875 RubyPosition rubyPosition() const { return static_cast<RubyPosition>(rareInh
eritedData->m_rubyPosition); } |
876 | 876 |
877 TextOrientation textOrientation() const { return static_cast<TextOrientation
>(rareInheritedData->m_textOrientation); } | 877 TextOrientation textOrientation() const { return static_cast<TextOrientation
>(rareInheritedData->m_textOrientation); } |
878 | 878 |
879 ObjectFit objectFit() const { return static_cast<ObjectFit>(rareNonInherited
Data->m_objectFit); } | 879 ObjectFit objectFit() const { return static_cast<ObjectFit>(rareNonInherited
Data->m_objectFit); } |
880 LengthPoint objectPosition() const { return rareNonInheritedData->m_objectPo
sition; } | 880 LengthPoint objectPosition() const { return rareNonInheritedData->m_objectPo
sition; } |
881 | 881 |
882 // Return true if any transform related property (currently transform/motion
Path, transformStyle3D or perspective) | 882 // Return true if any transform related property (currently transform/motion
Path, transformStyle3D, perspective, |
883 // indicates that we are transforming | 883 // or will-change:transform) indicates that we are transforming |
884 bool hasTransformRelatedProperty() const { return hasTransform() || preserve
s3D() || hasPerspective(); } | 884 bool hasTransformRelatedProperty() const { return hasTransform() || preserve
s3D() || hasPerspective() || hasWillChangeTransformHint(); } |
885 | 885 |
886 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }
; | 886 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }
; |
887 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; | 887 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; |
888 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper
ties , ExcludeIndependentTransformProperties }; | 888 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper
ties , ExcludeIndependentTransformProperties }; |
889 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize,
ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons
t; | 889 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize,
ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons
t; |
890 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App
lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const; | 890 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App
lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const; |
891 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar
eNonInheritedData->m_maskBoxImage.hasImage(); } | 891 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar
eNonInheritedData->m_maskBoxImage.hasImage(); } |
892 | 892 |
893 TextCombine textCombine() const { return static_cast<TextCombine>(rareInheri
tedData->m_textCombine); } | 893 TextCombine textCombine() const { return static_cast<TextCombine>(rareInheri
tedData->m_textCombine); } |
894 bool hasTextCombine() const { return textCombine() != TextCombineNone; } | 894 bool hasTextCombine() const { return textCombine() != TextCombineNone; } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 ScrollSnapType scrollSnapType() const { return static_cast<ScrollSnapType>(r
areNonInheritedData->m_scrollSnapType); } | 964 ScrollSnapType scrollSnapType() const { return static_cast<ScrollSnapType>(r
areNonInheritedData->m_scrollSnapType); } |
965 ScrollSnapPoints scrollSnapPointsX() const { return rareNonInheritedData->m_
scrollSnap->m_xPoints; } | 965 ScrollSnapPoints scrollSnapPointsX() const { return rareNonInheritedData->m_
scrollSnap->m_xPoints; } |
966 ScrollSnapPoints scrollSnapPointsY() const { return rareNonInheritedData->m_
scrollSnap->m_yPoints; } | 966 ScrollSnapPoints scrollSnapPointsY() const { return rareNonInheritedData->m_
scrollSnap->m_yPoints; } |
967 Vector<LengthPoint> scrollSnapCoordinate() const { return rareNonInheritedDa
ta->m_scrollSnap->m_coordinates; } | 967 Vector<LengthPoint> scrollSnapCoordinate() const { return rareNonInheritedDa
ta->m_scrollSnap->m_coordinates; } |
968 LengthPoint scrollSnapDestination() const { return rareNonInheritedData->m_s
crollSnap->m_destination; } | 968 LengthPoint scrollSnapDestination() const { return rareNonInheritedData->m_s
crollSnap->m_destination; } |
969 | 969 |
970 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } | 970 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } |
971 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } | 971 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } |
972 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } | 972 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } |
973 bool hasWillChangeCompositingHint() const; | 973 bool hasWillChangeCompositingHint() const; |
| 974 bool hasWillChangeTransformHint() const; |
974 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } | 975 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } |
975 | 976 |
976 // attribute setter methods | 977 // attribute setter methods |
977 | 978 |
978 void setDisplay(EDisplay v) { noninherited_flags.effectiveDisplay = v; } | 979 void setDisplay(EDisplay v) { noninherited_flags.effectiveDisplay = v; } |
979 void setOriginalDisplay(EDisplay v) { noninherited_flags.originalDisplay = v
; } | 980 void setOriginalDisplay(EDisplay v) { noninherited_flags.originalDisplay = v
; } |
980 void setPosition(EPosition v) { noninherited_flags.position = v; } | 981 void setPosition(EPosition v) { noninherited_flags.position = v; } |
981 void setFloating(EFloat v) { noninherited_flags.floating = v; } | 982 void setFloating(EFloat v) { noninherited_flags.floating = v; } |
982 | 983 |
983 void setLeft(const Length& v) { SET_VAR(surround, offset.m_left, v); } | 984 void setLeft(const Length& v) { SET_VAR(surround, offset.m_left, v); } |
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1941 } | 1942 } |
1942 | 1943 |
1943 inline bool ComputedStyle::hasPseudoElementStyle() const | 1944 inline bool ComputedStyle::hasPseudoElementStyle() const |
1944 { | 1945 { |
1945 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 1946 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; |
1946 } | 1947 } |
1947 | 1948 |
1948 } // namespace blink | 1949 } // namespace blink |
1949 | 1950 |
1950 #endif // ComputedStyle_h | 1951 #endif // ComputedStyle_h |
OLD | NEW |