| 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 // Return true if any transform related property (currently transform, trans
formStyle3D or perspective) | 781 // Return true if any transform related property (currently transform, trans
formStyle3D or perspective) |
| 782 // indicates that we are transforming | 782 // indicates that we are transforming |
| 783 bool hasTransformRelatedProperty() const { return hasTransform() || preserve
s3D() || hasPerspective(); } | 783 bool hasTransformRelatedProperty() const { return hasTransform() || preserve
s3D() || hasPerspective(); } |
| 784 | 784 |
| 785 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }
; | 785 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }
; |
| 786 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize,
ApplyTransformOrigin = IncludeTransformOrigin) const; | 786 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize,
ApplyTransformOrigin = IncludeTransformOrigin) const; |
| 787 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App
lyTransformOrigin = IncludeTransformOrigin) const; | 787 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App
lyTransformOrigin = IncludeTransformOrigin) const; |
| 788 | 788 |
| 789 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar
eNonInheritedData->m_maskBoxImage.hasImage(); } | 789 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar
eNonInheritedData->m_maskBoxImage.hasImage(); } |
| 790 | 790 |
| 791 TextCombine textCombine() const { return static_cast<TextCombine>(rareNonInh
eritedData->m_textCombine); } | |
| 792 bool hasTextCombine() const { return textCombine() != TextCombineNone; } | |
| 793 | |
| 794 unsigned tabSize() const { return rareInheritedData->m_tabSize; } | 791 unsigned tabSize() const { return rareInheritedData->m_tabSize; } |
| 795 | 792 |
| 796 // End CSS3 Getters | 793 // End CSS3 Getters |
| 797 | 794 |
| 798 WrapFlow wrapFlow() const { return static_cast<WrapFlow>(rareNonInheritedDat
a->m_wrapFlow); } | 795 WrapFlow wrapFlow() const { return static_cast<WrapFlow>(rareNonInheritedDat
a->m_wrapFlow); } |
| 799 WrapThrough wrapThrough() const { return static_cast<WrapThrough>(rareNonInh
eritedData->m_wrapThrough); } | 796 WrapThrough wrapThrough() const { return static_cast<WrapThrough>(rareNonInh
eritedData->m_wrapThrough); } |
| 800 | 797 |
| 801 // Apple-specific property getter methods | 798 // Apple-specific property getter methods |
| 802 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in
herited_flags._pointerEvents); } | 799 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in
herited_flags._pointerEvents); } |
| 803 const CSSAnimationData* animations() const { return rareNonInheritedData->m_
animations.get(); } | 800 const CSSAnimationData* animations() const { return rareNonInheritedData->m_
animations.get(); } |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 void setHyphenationString(const AtomicString& h) { SET_VAR(rareInheritedData
, hyphenationString, h); } | 1177 void setHyphenationString(const AtomicString& h) { SET_VAR(rareInheritedData
, hyphenationString, h); } |
| 1181 void setLocale(const AtomicString& locale) { SET_VAR(rareInheritedData, loca
le, locale); } | 1178 void setLocale(const AtomicString& locale) { SET_VAR(rareInheritedData, loca
le, locale); } |
| 1182 void setBorderFit(EBorderFit b) { SET_VAR(rareNonInheritedData, m_borderFit,
b); } | 1179 void setBorderFit(EBorderFit b) { SET_VAR(rareNonInheritedData, m_borderFit,
b); } |
| 1183 void setResize(EResize r) { SET_VAR(rareInheritedData, resize, r); } | 1180 void setResize(EResize r) { SET_VAR(rareInheritedData, resize, r); } |
| 1184 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli
neTransform, b); } | 1181 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli
neTransform, b); } |
| 1185 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited
Data.access()->m_transform, m_operations, ops); } | 1182 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited
Data.access()->m_transform, m_operations, ops); } |
| 1186 void setTransformOriginX(const Length& l) { SET_VAR(rareNonInheritedData.acc
ess()->m_transform, m_x, l); } | 1183 void setTransformOriginX(const Length& l) { SET_VAR(rareNonInheritedData.acc
ess()->m_transform, m_x, l); } |
| 1187 void setTransformOriginY(const Length& l) { SET_VAR(rareNonInheritedData.acc
ess()->m_transform, m_y, l); } | 1184 void setTransformOriginY(const Length& l) { SET_VAR(rareNonInheritedData.acc
ess()->m_transform, m_y, l); } |
| 1188 void setTransformOriginZ(float f) { SET_VAR(rareNonInheritedData.access()->m
_transform, m_z, f); } | 1185 void setTransformOriginZ(float f) { SET_VAR(rareNonInheritedData.access()->m
_transform, m_z, f); } |
| 1189 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } | 1186 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } |
| 1190 void setTextCombine(TextCombine v) { SET_VAR(rareNonInheritedData, m_textCom
bine, v); } | |
| 1191 void setTextDecorationColor(const StyleColor& c) { SET_VAR(rareNonInheritedD
ata, m_textDecorationColor, c); } | 1187 void setTextDecorationColor(const StyleColor& c) { SET_VAR(rareNonInheritedD
ata, m_textDecorationColor, c); } |
| 1192 void setTextEmphasisColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInh
eritedData, textEmphasisColor, setTextEmphasisColor, c); } | 1188 void setTextEmphasisColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInh
eritedData, textEmphasisColor, setTextEmphasisColor, c); } |
| 1193 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData,
textEmphasisFill, fill); } | 1189 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData,
textEmphasisFill, fill); } |
| 1194 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData,
textEmphasisMark, mark); } | 1190 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData,
textEmphasisMark, mark); } |
| 1195 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher
itedData, textEmphasisCustomMark, mark); } | 1191 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher
itedData, textEmphasisCustomMark, mark); } |
| 1196 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn
heritedData, textEmphasisPosition, position); } | 1192 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn
heritedData, textEmphasisPosition, position); } |
| 1197 bool setTextOrientation(TextOrientation); | 1193 bool setTextOrientation(TextOrientation); |
| 1198 | 1194 |
| 1199 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit,
f); } | 1195 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit,
f); } |
| 1200 void setObjectPosition(LengthPoint position) { SET_VAR(rareNonInheritedData,
m_objectPosition, position); } | 1196 void setObjectPosition(LengthPoint position) { SET_VAR(rareNonInheritedData,
m_objectPosition, position); } |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 // Initial values for all the properties | 1332 // Initial values for all the properties |
| 1337 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } | 1333 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } |
| 1338 static EBorderStyle initialBorderStyle() { return BNONE; } | 1334 static EBorderStyle initialBorderStyle() { return BNONE; } |
| 1339 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } | 1335 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } |
| 1340 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } | 1336 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } |
| 1341 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } | 1337 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } |
| 1342 static ECaptionSide initialCaptionSide() { return CAPTOP; } | 1338 static ECaptionSide initialCaptionSide() { return CAPTOP; } |
| 1343 static EClear initialClear() { return CNONE; } | 1339 static EClear initialClear() { return CNONE; } |
| 1344 static LengthBox initialClip() { return LengthBox(); } | 1340 static LengthBox initialClip() { return LengthBox(); } |
| 1345 static TextDirection initialDirection() { return LTR; } | 1341 static TextDirection initialDirection() { return LTR; } |
| 1346 static TextCombine initialTextCombine() { return TextCombineNone; } | |
| 1347 static TextOrientation initialTextOrientation() { return TextOrientationVert
icalRight; } | 1342 static TextOrientation initialTextOrientation() { return TextOrientationVert
icalRight; } |
| 1348 static ObjectFit initialObjectFit() { return ObjectFitFill; } | 1343 static ObjectFit initialObjectFit() { return ObjectFitFill; } |
| 1349 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0,
Percent), Length(50.0, Percent)); } | 1344 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0,
Percent), Length(50.0, Percent)); } |
| 1350 static EDisplay initialDisplay() { return BLOCK; } | 1345 static EDisplay initialDisplay() { return BLOCK; } |
| 1351 static EEmptyCell initialEmptyCells() { return SHOW; } | 1346 static EEmptyCell initialEmptyCells() { return SHOW; } |
| 1352 static EFloat initialFloating() { return NoFloat; } | 1347 static EFloat initialFloating() { return NoFloat; } |
| 1353 static EListStylePosition initialListStylePosition() { return OUTSIDE; } | 1348 static EListStylePosition initialListStylePosition() { return OUTSIDE; } |
| 1354 static EListStyleType initialListStyleType() { return Disc; } | 1349 static EListStyleType initialListStyleType() { return Disc; } |
| 1355 static EOverflow initialOverflowX() { return OVISIBLE; } | 1350 static EOverflow initialOverflowX() { return OVISIBLE; } |
| 1356 static EOverflow initialOverflowY() { return OVISIBLE; } | 1351 static EOverflow initialOverflowY() { return OVISIBLE; } |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1638 | 1633 |
| 1639 rareInheritedData.access()->m_textOrientation = textOrientation; | 1634 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1640 return true; | 1635 return true; |
| 1641 } | 1636 } |
| 1642 | 1637 |
| 1643 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1638 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
| 1644 | 1639 |
| 1645 } // namespace blink | 1640 } // namespace blink |
| 1646 | 1641 |
| 1647 #endif // RenderStyle_h | 1642 #endif // RenderStyle_h |
| OLD | NEW |