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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } | 970 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } |
971 bool hasWillChangeCompositingHint() const; | 971 bool hasWillChangeCompositingHint() const; |
972 | 972 |
973 // attribute setter methods | 973 // attribute setter methods |
974 | 974 |
975 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } | 975 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } |
976 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay =
v; } | 976 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay =
v; } |
977 void setPosition(EPosition v) { noninherited_flags._position = v; } | 977 void setPosition(EPosition v) { noninherited_flags._position = v; } |
978 void setFloating(EFloat v) { noninherited_flags._floating = v; } | 978 void setFloating(EFloat v) { noninherited_flags._floating = v; } |
979 | 979 |
980 void setLeft(Length v) { SET_VAR(surround, offset.m_left, v); } | 980 void setLeft(const Length& v) { SET_VAR(surround, offset.m_left, v); } |
981 void setRight(Length v) { SET_VAR(surround, offset.m_right, v); } | 981 void setRight(const Length& v) { SET_VAR(surround, offset.m_right, v); } |
982 void setTop(Length v) { SET_VAR(surround, offset.m_top, v); } | 982 void setTop(const Length& v) { SET_VAR(surround, offset.m_top, v); } |
983 void setBottom(Length v) { SET_VAR(surround, offset.m_bottom, v); } | 983 void setBottom(const Length& v) { SET_VAR(surround, offset.m_bottom, v); } |
984 | 984 |
985 void setWidth(Length v) { SET_VAR(m_box, m_width, v); } | 985 void setWidth(const Length& v) { SET_VAR(m_box, m_width, v); } |
986 void setHeight(Length v) { SET_VAR(m_box, m_height, v); } | 986 void setHeight(const Length& v) { SET_VAR(m_box, m_height, v); } |
987 | 987 |
988 void setLogicalWidth(Length v) | 988 void setLogicalWidth(const Length& v) |
989 { | 989 { |
990 if (isHorizontalWritingMode()) { | 990 if (isHorizontalWritingMode()) { |
991 SET_VAR(m_box, m_width, v); | 991 SET_VAR(m_box, m_width, v); |
992 } else { | 992 } else { |
993 SET_VAR(m_box, m_height, v); | 993 SET_VAR(m_box, m_height, v); |
994 } | 994 } |
995 } | 995 } |
996 | 996 |
997 void setLogicalHeight(Length v) | 997 void setLogicalHeight(const Length& v) |
998 { | 998 { |
999 if (isHorizontalWritingMode()) { | 999 if (isHorizontalWritingMode()) { |
1000 SET_VAR(m_box, m_height, v); | 1000 SET_VAR(m_box, m_height, v); |
1001 } else { | 1001 } else { |
1002 SET_VAR(m_box, m_width, v); | 1002 SET_VAR(m_box, m_width, v); |
1003 } | 1003 } |
1004 } | 1004 } |
1005 | 1005 |
1006 void setMinWidth(Length v) { SET_VAR(m_box, m_minWidth, v); } | 1006 void setMinWidth(const Length& v) { SET_VAR(m_box, m_minWidth, v); } |
1007 void setMaxWidth(Length v) { SET_VAR(m_box, m_maxWidth, v); } | 1007 void setMaxWidth(const Length& v) { SET_VAR(m_box, m_maxWidth, v); } |
1008 void setMinHeight(Length v) { SET_VAR(m_box, m_minHeight, v); } | 1008 void setMinHeight(const Length& v) { SET_VAR(m_box, m_minHeight, v); } |
1009 void setMaxHeight(Length v) { SET_VAR(m_box, m_maxHeight, v); } | 1009 void setMaxHeight(const Length& v) { SET_VAR(m_box, m_maxHeight, v); } |
1010 | 1010 |
1011 DraggableRegionMode getDraggableRegionMode() const { return rareNonInherited
Data->m_draggableRegionMode; } | 1011 DraggableRegionMode getDraggableRegionMode() const { return rareNonInherited
Data->m_draggableRegionMode; } |
1012 void setDraggableRegionMode(DraggableRegionMode v) { SET_VAR(rareNonInherite
dData, m_draggableRegionMode, v); } | 1012 void setDraggableRegionMode(DraggableRegionMode v) { SET_VAR(rareNonInherite
dData, m_draggableRegionMode, v); } |
1013 | 1013 |
1014 void resetBorder() { resetBorderImage(); resetBorderTop(); resetBorderRight(
); resetBorderBottom(); resetBorderLeft(); resetBorderRadius(); } | 1014 void resetBorder() { resetBorderImage(); resetBorderTop(); resetBorderRight(
); resetBorderBottom(); resetBorderLeft(); resetBorderRadius(); } |
1015 void resetBorderTop() { SET_VAR(surround, border.m_top, BorderValue()); } | 1015 void resetBorderTop() { SET_VAR(surround, border.m_top, BorderValue()); } |
1016 void resetBorderRight() { SET_VAR(surround, border.m_right, BorderValue());
} | 1016 void resetBorderRight() { SET_VAR(surround, border.m_right, BorderValue());
} |
1017 void resetBorderBottom() { SET_VAR(surround, border.m_bottom, BorderValue())
; } | 1017 void resetBorderBottom() { SET_VAR(surround, border.m_bottom, BorderValue())
; } |
1018 void resetBorderLeft() { SET_VAR(surround, border.m_left, BorderValue()); } | 1018 void resetBorderLeft() { SET_VAR(surround, border.m_left, BorderValue()); } |
1019 void resetBorderImage() { SET_VAR(surround, border.m_image, NinePieceImage()
); } | 1019 void resetBorderImage() { SET_VAR(surround, border.m_image, NinePieceImage()
); } |
1020 void resetBorderRadius() { resetBorderTopLeftRadius(); resetBorderTopRightRa
dius(); resetBorderBottomLeftRadius(); resetBorderBottomRightRadius(); } | 1020 void resetBorderRadius() { resetBorderTopLeftRadius(); resetBorderTopRightRa
dius(); resetBorderBottomLeftRadius(); resetBorderBottomRightRadius(); } |
1021 void resetBorderTopLeftRadius() { SET_VAR(surround, border.m_topLeft, initia
lBorderRadius()); } | 1021 void resetBorderTopLeftRadius() { SET_VAR(surround, border.m_topLeft, initia
lBorderRadius()); } |
1022 void resetBorderTopRightRadius() { SET_VAR(surround, border.m_topRight, init
ialBorderRadius()); } | 1022 void resetBorderTopRightRadius() { SET_VAR(surround, border.m_topRight, init
ialBorderRadius()); } |
1023 void resetBorderBottomLeftRadius() { SET_VAR(surround, border.m_bottomLeft,
initialBorderRadius()); } | 1023 void resetBorderBottomLeftRadius() { SET_VAR(surround, border.m_bottomLeft,
initialBorderRadius()); } |
1024 void resetBorderBottomRightRadius() { SET_VAR(surround, border.m_bottomRight
, initialBorderRadius()); } | 1024 void resetBorderBottomRightRadius() { SET_VAR(surround, border.m_bottomRight
, initialBorderRadius()); } |
1025 | 1025 |
1026 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color
, v); } | 1026 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color
, v); } |
1027 | 1027 |
1028 void setBackgroundXPosition(Length length) { SET_VAR(m_background, m_backgro
und.m_xPosition, length); } | 1028 void setBackgroundXPosition(const Length& length) { SET_VAR(m_background, m_
background.m_xPosition, length); } |
1029 void setBackgroundYPosition(Length length) { SET_VAR(m_background, m_backgro
und.m_yPosition, length); } | 1029 void setBackgroundYPosition(const Length& length) { SET_VAR(m_background, m_
background.m_yPosition, length); } |
1030 void setBackgroundSize(EFillSizeType b) { SET_VAR(m_background, m_background
.m_sizeType, b); } | 1030 void setBackgroundSize(EFillSizeType b) { SET_VAR(m_background, m_background
.m_sizeType, b); } |
1031 void setBackgroundSizeLength(LengthSize s) { SET_VAR(m_background, m_backgro
und.m_sizeLength, s); } | 1031 void setBackgroundSizeLength(const LengthSize& s) { SET_VAR(m_background, m_
background.m_sizeLength, s); } |
1032 | 1032 |
1033 void setBorderImage(const NinePieceImage& b) { SET_VAR(surround, border.m_im
age, b); } | 1033 void setBorderImage(const NinePieceImage& b) { SET_VAR(surround, border.m_im
age, b); } |
1034 void setBorderImageSource(PassRefPtr<StyleImage>); | 1034 void setBorderImageSource(PassRefPtr<StyleImage>); |
1035 void setBorderImageSlices(LengthBox); | 1035 void setBorderImageSlices(const LengthBox&); |
1036 void setBorderImageWidth(const BorderImageLengthBox&); | 1036 void setBorderImageWidth(const BorderImageLengthBox&); |
1037 void setBorderImageOutset(const BorderImageLengthBox&); | 1037 void setBorderImageOutset(const BorderImageLengthBox&); |
1038 | 1038 |
1039 void setBorderTopLeftRadius(LengthSize s) { SET_VAR(surround, border.m_topLe
ft, s); } | 1039 void setBorderTopLeftRadius(const LengthSize& s) { SET_VAR(surround, border.
m_topLeft, s); } |
1040 void setBorderTopRightRadius(LengthSize s) { SET_VAR(surround, border.m_topR
ight, s); } | 1040 void setBorderTopRightRadius(const LengthSize& s) { SET_VAR(surround, border
.m_topRight, s); } |
1041 void setBorderBottomLeftRadius(LengthSize s) { SET_VAR(surround, border.m_bo
ttomLeft, s); } | 1041 void setBorderBottomLeftRadius(const LengthSize& s) { SET_VAR(surround, bord
er.m_bottomLeft, s); } |
1042 void setBorderBottomRightRadius(LengthSize s) { SET_VAR(surround, border.m_b
ottomRight, s); } | 1042 void setBorderBottomRightRadius(const LengthSize& s) { SET_VAR(surround, bor
der.m_bottomRight, s); } |
1043 | 1043 |
1044 void setBorderRadius(LengthSize s) | 1044 void setBorderRadius(const LengthSize& s) |
1045 { | 1045 { |
1046 setBorderTopLeftRadius(s); | 1046 setBorderTopLeftRadius(s); |
1047 setBorderTopRightRadius(s); | 1047 setBorderTopRightRadius(s); |
1048 setBorderBottomLeftRadius(s); | 1048 setBorderBottomLeftRadius(s); |
1049 setBorderBottomRightRadius(s); | 1049 setBorderBottomRightRadius(s); |
1050 } | 1050 } |
1051 void setBorderRadius(const IntSize& s) | 1051 void setBorderRadius(const IntSize& s) |
1052 { | 1052 { |
1053 setBorderRadius(LengthSize(Length(s.width(), Fixed), Length(s.height(),
Fixed))); | 1053 setBorderRadius(LengthSize(Length(s.width(), Fixed), Length(s.height(),
Fixed))); |
1054 } | 1054 } |
(...skipping 19 matching lines...) Expand all Loading... |
1074 | 1074 |
1075 void setOutlineWidth(unsigned short v) { SET_VAR(m_background, m_outline.m_w
idth, v); } | 1075 void setOutlineWidth(unsigned short v) { SET_VAR(m_background, m_outline.m_w
idth, v); } |
1076 void setOutlineStyleIsAuto(OutlineIsAuto isAuto) { SET_VAR(m_background, m_o
utline.m_isAuto, isAuto); } | 1076 void setOutlineStyleIsAuto(OutlineIsAuto isAuto) { SET_VAR(m_background, m_o
utline.m_isAuto, isAuto); } |
1077 void setOutlineStyle(EBorderStyle v) { SET_VAR(m_background, m_outline.m_sty
le, v); } | 1077 void setOutlineStyle(EBorderStyle v) { SET_VAR(m_background, m_outline.m_sty
le, v); } |
1078 void setOutlineColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(m_backgrou
nd, m_outline, v); } | 1078 void setOutlineColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(m_backgrou
nd, m_outline, v); } |
1079 | 1079 |
1080 void setOverflowX(EOverflow v) { noninherited_flags._overflowX = v; } | 1080 void setOverflowX(EOverflow v) { noninherited_flags._overflowX = v; } |
1081 void setOverflowY(EOverflow v) { noninherited_flags._overflowY = v; } | 1081 void setOverflowY(EOverflow v) { noninherited_flags._overflowY = v; } |
1082 void setVisibility(EVisibility v) { inherited_flags._visibility = v; } | 1082 void setVisibility(EVisibility v) { inherited_flags._visibility = v; } |
1083 void setVerticalAlign(EVerticalAlign v) { noninherited_flags._vertical_align
= v; } | 1083 void setVerticalAlign(EVerticalAlign v) { noninherited_flags._vertical_align
= v; } |
1084 void setVerticalAlignLength(Length length) { setVerticalAlign(LENGTH); SET_V
AR(m_box, m_verticalAlign, length); } | 1084 void setVerticalAlignLength(const Length& length) { setVerticalAlign(LENGTH)
; SET_VAR(m_box, m_verticalAlign, length); } |
1085 | 1085 |
1086 void setHasClip(bool b = true) { SET_VAR(visual, hasClip, b); } | 1086 void setHasClip(bool b = true) { SET_VAR(visual, hasClip, b); } |
1087 void setClipLeft(Length v) { SET_VAR(visual, clip.m_left, v); } | 1087 void setClipLeft(const Length& v) { SET_VAR(visual, clip.m_left, v); } |
1088 void setClipRight(Length v) { SET_VAR(visual, clip.m_right, v); } | 1088 void setClipRight(const Length& v) { SET_VAR(visual, clip.m_right, v); } |
1089 void setClipTop(Length v) { SET_VAR(visual, clip.m_top, v); } | 1089 void setClipTop(const Length& v) { SET_VAR(visual, clip.m_top, v); } |
1090 void setClipBottom(Length v) { SET_VAR(visual, clip.m_bottom, v); } | 1090 void setClipBottom(const Length& v) { SET_VAR(visual, clip.m_bottom, v); } |
1091 void setClip(Length top, Length right, Length bottom, Length left); | 1091 void setClip(const Length& top, const Length& right, const Length& bottom, c
onst Length& left); |
1092 void setClip(LengthBox box) { SET_VAR(visual, clip, box); } | 1092 void setClip(const LengthBox& box) { SET_VAR(visual, clip, box); } |
1093 | 1093 |
1094 void setUnicodeBidi(EUnicodeBidi b) { noninherited_flags._unicodeBidi = b; } | 1094 void setUnicodeBidi(EUnicodeBidi b) { noninherited_flags._unicodeBidi = b; } |
1095 | 1095 |
1096 void setClear(EClear v) { noninherited_flags._clear = v; } | 1096 void setClear(EClear v) { noninherited_flags._clear = v; } |
1097 void setTableLayout(ETableLayout v) { noninherited_flags._table_layout = v;
} | 1097 void setTableLayout(ETableLayout v) { noninherited_flags._table_layout = v;
} |
1098 | 1098 |
1099 bool setFontDescription(const FontDescription&); | 1099 bool setFontDescription(const FontDescription&); |
1100 // Only used for blending font sizes when animating and for text autosizing. | 1100 // Only used for blending font sizes when animating and for text autosizing. |
1101 void setFontSize(float); | 1101 void setFontSize(float); |
1102 void setFontWeight(FontWeight); | 1102 void setFontWeight(FontWeight); |
1103 | 1103 |
1104 void setTextAutosizingMultiplier(float v) | 1104 void setTextAutosizingMultiplier(float v) |
1105 { | 1105 { |
1106 SET_VAR(visual, m_textAutosizingMultiplier, v); | 1106 SET_VAR(visual, m_textAutosizingMultiplier, v); |
1107 setFontSize(fontDescription().specifiedSize()); | 1107 setFontSize(fontDescription().specifiedSize()); |
1108 } | 1108 } |
1109 | 1109 |
1110 void setColor(const Color&); | 1110 void setColor(const Color&); |
1111 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); } | 1111 void setTextIndent(const Length& v) { SET_VAR(rareInheritedData, indent, v);
} |
1112 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } | 1112 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } |
1113 void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_text
IndentType, v); } | 1113 void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_text
IndentType, v); } |
1114 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } | 1114 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } |
1115 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } | 1115 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } |
1116 void setTextJustify(TextJustify v) { SET_VAR(rareInheritedData, m_textJustif
y, v); } | 1116 void setTextJustify(TextJustify v) { SET_VAR(rareInheritedData, m_textJustif
y, v); } |
1117 void setTextTransform(ETextTransform v) { inherited_flags._text_transform =
v; } | 1117 void setTextTransform(ETextTransform v) { inherited_flags._text_transform =
v; } |
1118 void applyTextDecorations(); | 1118 void applyTextDecorations(); |
1119 void clearAppliedTextDecorations(); | 1119 void clearAppliedTextDecorations(); |
1120 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v
); } | 1120 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v
); } |
1121 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit
edData, m_textUnderlinePosition, v); } | 1121 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit
edData, m_textUnderlinePosition, v); } |
1122 void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(rareNonInherite
dData, m_textDecorationStyle, v); } | 1122 void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(rareNonInherite
dData, m_textDecorationStyle, v); } |
1123 void setDirection(TextDirection v) { inherited_flags._direction = v; } | 1123 void setDirection(TextDirection v) { inherited_flags._direction = v; } |
1124 void setLineHeight(Length specifiedLineHeight); | 1124 void setLineHeight(const Length& specifiedLineHeight); |
1125 bool setZoom(float); | 1125 bool setZoom(float); |
1126 void setZoomWithoutReturnValue(float f) { setZoom(f); } | 1126 void setZoomWithoutReturnValue(float f) { setZoom(f); } |
1127 bool setEffectiveZoom(float); | 1127 bool setEffectiveZoom(float); |
1128 | 1128 |
1129 void setImageRendering(EImageRendering v) { SET_VAR(rareInheritedData, m_ima
geRendering, v); } | 1129 void setImageRendering(EImageRendering v) { SET_VAR(rareInheritedData, m_ima
geRendering, v); } |
1130 | 1130 |
1131 void setWhiteSpace(EWhiteSpace v) { inherited_flags._white_space = v; } | 1131 void setWhiteSpace(EWhiteSpace v) { inherited_flags._white_space = v; } |
1132 | 1132 |
1133 // FIXME: Remove these two and replace them with respective FontBuilder call
s. | 1133 // FIXME: Remove these two and replace them with respective FontBuilder call
s. |
1134 void setWordSpacing(float); | 1134 void setWordSpacing(float); |
(...skipping 18 matching lines...) Expand all Loading... |
1153 if (maskLayers()->next()) { | 1153 if (maskLayers()->next()) { |
1154 accessMaskLayers()->cullEmptyLayers(); | 1154 accessMaskLayers()->cullEmptyLayers(); |
1155 accessMaskLayers()->fillUnsetProperties(); | 1155 accessMaskLayers()->fillUnsetProperties(); |
1156 } | 1156 } |
1157 } | 1157 } |
1158 | 1158 |
1159 void setMaskImage(PassRefPtr<StyleImage> v) { rareNonInheritedData.access()-
>m_mask.setImage(v); } | 1159 void setMaskImage(PassRefPtr<StyleImage> v) { rareNonInheritedData.access()-
>m_mask.setImage(v); } |
1160 | 1160 |
1161 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(rareNonInheritedData
, m_maskBoxImage, b); } | 1161 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(rareNonInheritedData
, m_maskBoxImage, b); } |
1162 void setMaskBoxImageSource(PassRefPtr<StyleImage> v) { rareNonInheritedData.
access()->m_maskBoxImage.setImage(v); } | 1162 void setMaskBoxImageSource(PassRefPtr<StyleImage> v) { rareNonInheritedData.
access()->m_maskBoxImage.setImage(v); } |
1163 void setMaskBoxImageSlices(LengthBox slices) | 1163 void setMaskBoxImageSlices(const LengthBox& slices) |
1164 { | 1164 { |
1165 rareNonInheritedData.access()->m_maskBoxImage.setImageSlices(slices); | 1165 rareNonInheritedData.access()->m_maskBoxImage.setImageSlices(slices); |
1166 } | 1166 } |
1167 void setMaskBoxImageSlicesFill(bool fill) | 1167 void setMaskBoxImageSlicesFill(bool fill) |
1168 { | 1168 { |
1169 rareNonInheritedData.access()->m_maskBoxImage.setFill(fill); | 1169 rareNonInheritedData.access()->m_maskBoxImage.setFill(fill); |
1170 } | 1170 } |
1171 void setMaskBoxImageWidth(const BorderImageLengthBox& slices) | 1171 void setMaskBoxImageWidth(const BorderImageLengthBox& slices) |
1172 { | 1172 { |
1173 rareNonInheritedData.access()->m_maskBoxImage.setBorderSlices(slices); | 1173 rareNonInheritedData.access()->m_maskBoxImage.setBorderSlices(slices); |
1174 } | 1174 } |
1175 void setMaskBoxImageOutset(const BorderImageLengthBox& outset) | 1175 void setMaskBoxImageOutset(const BorderImageLengthBox& outset) |
1176 { | 1176 { |
1177 rareNonInheritedData.access()->m_maskBoxImage.setOutset(outset); | 1177 rareNonInheritedData.access()->m_maskBoxImage.setOutset(outset); |
1178 } | 1178 } |
1179 void setMaskXPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.
m_xPosition, length); } | 1179 void setMaskXPosition(const Length& length) { SET_VAR(rareNonInheritedData,
m_mask.m_xPosition, length); } |
1180 void setMaskYPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.
m_yPosition, length); } | 1180 void setMaskYPosition(const Length& length) { SET_VAR(rareNonInheritedData,
m_mask.m_yPosition, length); } |
1181 void setMaskSize(LengthSize s) { SET_VAR(rareNonInheritedData, m_mask.m_size
Length, s); } | 1181 void setMaskSize(const LengthSize& s) { SET_VAR(rareNonInheritedData, m_mask
.m_sizeLength, s); } |
1182 | 1182 |
1183 void setBorderCollapse(EBorderCollapse collapse) { inherited_flags._border_c
ollapse = collapse; } | 1183 void setBorderCollapse(EBorderCollapse collapse) { inherited_flags._border_c
ollapse = collapse; } |
1184 void setHorizontalBorderSpacing(short); | 1184 void setHorizontalBorderSpacing(short); |
1185 void setVerticalBorderSpacing(short); | 1185 void setVerticalBorderSpacing(short); |
1186 void setEmptyCells(EEmptyCell v) { inherited_flags._empty_cells = v; } | 1186 void setEmptyCells(EEmptyCell v) { inherited_flags._empty_cells = v; } |
1187 void setCaptionSide(ECaptionSide v) { inherited_flags._caption_side = v; } | 1187 void setCaptionSide(ECaptionSide v) { inherited_flags._caption_side = v; } |
1188 | 1188 |
1189 void setHasAspectRatio(bool b) { SET_VAR(rareNonInheritedData, m_hasAspectRa
tio, b); } | 1189 void setHasAspectRatio(bool b) { SET_VAR(rareNonInheritedData, m_hasAspectRa
tio, b); } |
1190 void setAspectRatioDenominator(float v) { SET_VAR(rareNonInheritedData, m_as
pectRatioDenominator, v); } | 1190 void setAspectRatioDenominator(float v) { SET_VAR(rareNonInheritedData, m_as
pectRatioDenominator, v); } |
1191 void setAspectRatioNumerator(float v) { SET_VAR(rareNonInheritedData, m_aspe
ctRatioNumerator, v); } | 1191 void setAspectRatioNumerator(float v) { SET_VAR(rareNonInheritedData, m_aspe
ctRatioNumerator, v); } |
1192 | 1192 |
1193 void setListStyleType(EListStyleType v) { inherited_flags._list_style_type =
v; } | 1193 void setListStyleType(EListStyleType v) { inherited_flags._list_style_type =
v; } |
1194 void setListStyleImage(PassRefPtr<StyleImage>); | 1194 void setListStyleImage(PassRefPtr<StyleImage>); |
1195 void setListStylePosition(EListStylePosition v) { inherited_flags._list_styl
e_position = v; } | 1195 void setListStylePosition(EListStylePosition v) { inherited_flags._list_styl
e_position = v; } |
1196 | 1196 |
1197 void resetMargin() { SET_VAR(surround, margin, LengthBox(Fixed)); } | 1197 void resetMargin() { SET_VAR(surround, margin, LengthBox(Fixed)); } |
1198 void setMarginTop(Length v) { SET_VAR(surround, margin.m_top, v); } | 1198 void setMarginTop(const Length& v) { SET_VAR(surround, margin.m_top, v); } |
1199 void setMarginBottom(Length v) { SET_VAR(surround, margin.m_bottom, v); } | 1199 void setMarginBottom(const Length& v) { SET_VAR(surround, margin.m_bottom, v
); } |
1200 void setMarginLeft(Length v) { SET_VAR(surround, margin.m_left, v); } | 1200 void setMarginLeft(const Length& v) { SET_VAR(surround, margin.m_left, v); } |
1201 void setMarginRight(Length v) { SET_VAR(surround, margin.m_right, v); } | 1201 void setMarginRight(const Length& v) { SET_VAR(surround, margin.m_right, v);
} |
1202 void setMarginStart(Length); | 1202 void setMarginStart(const Length&); |
1203 void setMarginEnd(Length); | 1203 void setMarginEnd(const Length&); |
1204 | 1204 |
1205 void resetPadding() { SET_VAR(surround, padding, LengthBox(Auto)); } | 1205 void resetPadding() { SET_VAR(surround, padding, LengthBox(Auto)); } |
1206 void setPaddingBox(const LengthBox& b) { SET_VAR(surround, padding, b); } | 1206 void setPaddingBox(const LengthBox& b) { SET_VAR(surround, padding, b); } |
1207 void setPaddingTop(Length v) { SET_VAR(surround, padding.m_top, v); } | 1207 void setPaddingTop(const Length& v) { SET_VAR(surround, padding.m_top, v); } |
1208 void setPaddingBottom(Length v) { SET_VAR(surround, padding.m_bottom, v); } | 1208 void setPaddingBottom(const Length& v) { SET_VAR(surround, padding.m_bottom,
v); } |
1209 void setPaddingLeft(Length v) { SET_VAR(surround, padding.m_left, v); } | 1209 void setPaddingLeft(const Length& v) { SET_VAR(surround, padding.m_left, v);
} |
1210 void setPaddingRight(Length v) { SET_VAR(surround, padding.m_right, v); } | 1210 void setPaddingRight(const Length& v) { SET_VAR(surround, padding.m_right, v
); } |
1211 | 1211 |
1212 void setCursor(ECursor c) { inherited_flags._cursor_style = c; } | 1212 void setCursor(ECursor c) { inherited_flags._cursor_style = c; } |
1213 void addCursor(PassRefPtr<StyleImage>, const IntPoint& hotSpot = IntPoint())
; | 1213 void addCursor(PassRefPtr<StyleImage>, const IntPoint& hotSpot = IntPoint())
; |
1214 void setCursorList(PassRefPtr<CursorList>); | 1214 void setCursorList(PassRefPtr<CursorList>); |
1215 void clearCursorList(); | 1215 void clearCursorList(); |
1216 | 1216 |
1217 void setInsideLink(EInsideLink insideLink) { inherited_flags._insideLink = i
nsideLink; } | 1217 void setInsideLink(EInsideLink insideLink) { inherited_flags._insideLink = i
nsideLink; } |
1218 void setIsLink(bool b) { noninherited_flags.setIsLink(b); } | 1218 void setIsLink(bool b) { noninherited_flags.setIsLink(b); } |
1219 | 1219 |
1220 PrintColorAdjust printColorAdjust() const { return static_cast<PrintColorAdj
ust>(inherited_flags.m_printColorAdjust); } | 1220 PrintColorAdjust printColorAdjust() const { return static_cast<PrintColorAdj
ust>(inherited_flags.m_printColorAdjust); } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1252 void setBoxFlexGroup(unsigned fg) { SET_VAR(rareNonInheritedData.access()->m
_deprecatedFlexibleBox, flexGroup, fg); } | 1252 void setBoxFlexGroup(unsigned fg) { SET_VAR(rareNonInheritedData.access()->m
_deprecatedFlexibleBox, flexGroup, fg); } |
1253 void setBoxLines(EBoxLines l) { SET_VAR(rareNonInheritedData.access()->m_dep
recatedFlexibleBox, lines, l); } | 1253 void setBoxLines(EBoxLines l) { SET_VAR(rareNonInheritedData.access()->m_dep
recatedFlexibleBox, lines, l); } |
1254 void setBoxOrdinalGroup(unsigned og) { SET_VAR(rareNonInheritedData.access()
->m_deprecatedFlexibleBox, ordinalGroup, og); } | 1254 void setBoxOrdinalGroup(unsigned og) { SET_VAR(rareNonInheritedData.access()
->m_deprecatedFlexibleBox, ordinalGroup, og); } |
1255 void setBoxOrient(EBoxOrient o) { SET_VAR(rareNonInheritedData.access()->m_d
eprecatedFlexibleBox, orient, o); } | 1255 void setBoxOrient(EBoxOrient o) { SET_VAR(rareNonInheritedData.access()->m_d
eprecatedFlexibleBox, orient, o); } |
1256 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre
catedFlexibleBox, pack, p); } | 1256 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre
catedFlexibleBox, pack, p); } |
1257 void setBoxShadow(PassRefPtr<ShadowList>); | 1257 void setBoxShadow(PassRefPtr<ShadowList>); |
1258 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit
edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r
eflect; } | 1258 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit
edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r
eflect; } |
1259 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); } | 1259 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); } |
1260 void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibl
eBox, m_flexGrow, f); } | 1260 void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibl
eBox, m_flexGrow, f); } |
1261 void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexi
bleBox, m_flexShrink, f); } | 1261 void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexi
bleBox, m_flexShrink, f); } |
1262 void setFlexBasis(Length length) { SET_VAR(rareNonInheritedData.access()->m_
flexibleBox, m_flexBasis, length); } | 1262 void setFlexBasis(const Length& length) { SET_VAR(rareNonInheritedData.acces
s()->m_flexibleBox, m_flexBasis, length); } |
1263 // We restrict the smallest value to int min + 2 because we use int min and
int min + 1 as special values in a hash set. | 1263 // We restrict the smallest value to int min + 2 because we use int min and
int min + 1 as special values in a hash set. |
1264 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, max(std::numer
ic_limits<int>::min() + 2, o)); } | 1264 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, max(std::numer
ic_limits<int>::min() + 2, o)); } |
1265 void addCallbackSelector(const String& selector); | 1265 void addCallbackSelector(const String& selector); |
1266 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig
nContent, p); } | 1266 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig
nContent, p); } |
1267 void setAlignItems(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignIt
ems, a); } | 1267 void setAlignItems(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignIt
ems, a); } |
1268 void setAlignItemsOverflowAlignment(OverflowAlignment overflowAlignment) { S
ET_VAR(rareNonInheritedData, m_alignItemsOverflowAlignment, overflowAlignment);
} | 1268 void setAlignItemsOverflowAlignment(OverflowAlignment overflowAlignment) { S
ET_VAR(rareNonInheritedData, m_alignItemsOverflowAlignment, overflowAlignment);
} |
1269 void setAlignSelf(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignSel
f, a); } | 1269 void setAlignSelf(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignSel
f, a); } |
1270 void setAlignSelfOverflowAlignment(OverflowAlignment overflowAlignment) { SE
T_VAR(rareNonInheritedData, m_alignSelfOverflowAlignment, overflowAlignment); } | 1270 void setAlignSelfOverflowAlignment(OverflowAlignment overflowAlignment) { SE
T_VAR(rareNonInheritedData, m_alignSelfOverflowAlignment, overflowAlignment); } |
1271 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa
ta.access()->m_flexibleBox, m_flexDirection, direction); } | 1271 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa
ta.access()->m_flexibleBox, m_flexDirection, direction); } |
1272 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle
xibleBox, m_flexWrap, w); } | 1272 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle
xibleBox, m_flexWrap, w); } |
(...skipping 11 matching lines...) Expand all Loading... |
1284 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_VAR(rareN
onInheritedData.access()->m_grid, m_namedGridArea, namedGridArea); } | 1284 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_VAR(rareN
onInheritedData.access()->m_grid, m_namedGridArea, namedGridArea); } |
1285 void setNamedGridAreaRowCount(size_t rowCount) { SET_VAR(rareNonInheritedDat
a.access()->m_grid, m_namedGridAreaRowCount, rowCount); } | 1285 void setNamedGridAreaRowCount(size_t rowCount) { SET_VAR(rareNonInheritedDat
a.access()->m_grid, m_namedGridAreaRowCount, rowCount); } |
1286 void setNamedGridAreaColumnCount(size_t columnCount) { SET_VAR(rareNonInheri
tedData.access()->m_grid, m_namedGridAreaColumnCount, columnCount); } | 1286 void setNamedGridAreaColumnCount(size_t columnCount) { SET_VAR(rareNonInheri
tedData.access()->m_grid, m_namedGridAreaColumnCount, columnCount); } |
1287 void setGridAutoFlow(GridAutoFlow flow) { SET_VAR(rareNonInheritedData.acces
s()->m_grid, m_gridAutoFlow, flow); } | 1287 void setGridAutoFlow(GridAutoFlow flow) { SET_VAR(rareNonInheritedData.acces
s()->m_grid, m_gridAutoFlow, flow); } |
1288 | 1288 |
1289 void setGridColumnStart(const GridPosition& columnStartPosition) { SET_VAR(r
areNonInheritedData.access()->m_gridItem, m_gridColumnStart, columnStartPosition
); } | 1289 void setGridColumnStart(const GridPosition& columnStartPosition) { SET_VAR(r
areNonInheritedData.access()->m_gridItem, m_gridColumnStart, columnStartPosition
); } |
1290 void setGridColumnEnd(const GridPosition& columnEndPosition) { SET_VAR(rareN
onInheritedData.access()->m_gridItem, m_gridColumnEnd, columnEndPosition); } | 1290 void setGridColumnEnd(const GridPosition& columnEndPosition) { SET_VAR(rareN
onInheritedData.access()->m_gridItem, m_gridColumnEnd, columnEndPosition); } |
1291 void setGridRowStart(const GridPosition& rowStartPosition) { SET_VAR(rareNon
InheritedData.access()->m_gridItem, m_gridRowStart, rowStartPosition); } | 1291 void setGridRowStart(const GridPosition& rowStartPosition) { SET_VAR(rareNon
InheritedData.access()->m_gridItem, m_gridRowStart, rowStartPosition); } |
1292 void setGridRowEnd(const GridPosition& rowEndPosition) { SET_VAR(rareNonInhe
ritedData.access()->m_gridItem, m_gridRowEnd, rowEndPosition); } | 1292 void setGridRowEnd(const GridPosition& rowEndPosition) { SET_VAR(rareNonInhe
ritedData.access()->m_gridItem, m_gridRowEnd, rowEndPosition); } |
1293 | 1293 |
1294 void setMarqueeIncrement(Length f) { SET_VAR(rareNonInheritedData.access()->
m_marquee, increment, f); } | 1294 void setMarqueeIncrement(const Length& f) { SET_VAR(rareNonInheritedData.acc
ess()->m_marquee, increment, f); } |
1295 void setMarqueeSpeed(int f) { SET_VAR(rareNonInheritedData.access()->m_marqu
ee, speed, f); } | 1295 void setMarqueeSpeed(int f) { SET_VAR(rareNonInheritedData.access()->m_marqu
ee, speed, f); } |
1296 void setMarqueeDirection(EMarqueeDirection d) { SET_VAR(rareNonInheritedData
.access()->m_marquee, direction, d); } | 1296 void setMarqueeDirection(EMarqueeDirection d) { SET_VAR(rareNonInheritedData
.access()->m_marquee, direction, d); } |
1297 void setMarqueeBehavior(EMarqueeBehavior b) { SET_VAR(rareNonInheritedData.a
ccess()->m_marquee, behavior, b); } | 1297 void setMarqueeBehavior(EMarqueeBehavior b) { SET_VAR(rareNonInheritedData.a
ccess()->m_marquee, behavior, b); } |
1298 void setMarqueeLoopCount(int i) { SET_VAR(rareNonInheritedData.access()->m_m
arquee, loops, i); } | 1298 void setMarqueeLoopCount(int i) { SET_VAR(rareNonInheritedData.access()->m_m
arquee, loops, i); } |
1299 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u
); } | 1299 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u
); } |
1300 void setUserDrag(EUserDrag d) { SET_VAR(rareNonInheritedData, userDrag, d);
} | 1300 void setUserDrag(EUserDrag d) { SET_VAR(rareNonInheritedData, userDrag, d);
} |
1301 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s
); } | 1301 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s
); } |
1302 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData,
textOverflow, overflow); } | 1302 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData,
textOverflow, overflow); } |
1303 void setMarginBeforeCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDa
ta, marginBeforeCollapse, c); } | 1303 void setMarginBeforeCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDa
ta, marginBeforeCollapse, c); } |
1304 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat
a, marginAfterCollapse, c); } | 1304 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat
a, marginAfterCollapse, c); } |
(...skipping 17 matching lines...) Expand all Loading... |
1322 void setColumnRuleStyle(EBorderStyle b) { SET_VAR(rareNonInheritedData.acces
s()->m_multiCol, m_rule.m_style, b); } | 1322 void setColumnRuleStyle(EBorderStyle b) { SET_VAR(rareNonInheritedData.acces
s()->m_multiCol, m_rule.m_style, b); } |
1323 void setColumnRuleWidth(unsigned short w) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_rule.m_width, w); } | 1323 void setColumnRuleWidth(unsigned short w) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_rule.m_width, w); } |
1324 void resetColumnRule() { SET_VAR(rareNonInheritedData.access()->m_multiCol,
m_rule, BorderValue()); } | 1324 void resetColumnRule() { SET_VAR(rareNonInheritedData.access()->m_multiCol,
m_rule, BorderValue()); } |
1325 void setColumnSpan(ColumnSpan columnSpan) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_columnSpan, columnSpan); } | 1325 void setColumnSpan(ColumnSpan columnSpan) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_columnSpan, columnSpan); } |
1326 void setColumnBreakBefore(EPageBreak p) { SET_VAR(rareNonInheritedData.acces
s()->m_multiCol, m_breakBefore, p); } | 1326 void setColumnBreakBefore(EPageBreak p) { SET_VAR(rareNonInheritedData.acces
s()->m_multiCol, m_breakBefore, p); } |
1327 // For valid values of column-break-inside see http://www.w3.org/TR/css3-mul
ticol/#break-before-break-after-break-inside | 1327 // For valid values of column-break-inside see http://www.w3.org/TR/css3-mul
ticol/#break-before-break-after-break-inside |
1328 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID
); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_breakInside, p); } | 1328 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID
); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_breakInside, p); } |
1329 void setColumnBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData.access
()->m_multiCol, m_breakAfter, p); } | 1329 void setColumnBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData.access
()->m_multiCol, m_breakAfter, p); } |
1330 void inheritColumnPropertiesFrom(RenderStyle* parent) { rareNonInheritedData
.access()->m_multiCol = parent->rareNonInheritedData->m_multiCol; } | 1330 void inheritColumnPropertiesFrom(RenderStyle* parent) { rareNonInheritedData
.access()->m_multiCol = parent->rareNonInheritedData->m_multiCol; } |
1331 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited
Data.access()->m_transform, m_operations, ops); } | 1331 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited
Data.access()->m_transform, m_operations, ops); } |
1332 void setTransformOriginX(Length l) { SET_VAR(rareNonInheritedData.access()->
m_transform, m_x, l); } | 1332 void setTransformOriginX(const Length& l) { SET_VAR(rareNonInheritedData.acc
ess()->m_transform, m_x, l); } |
1333 void setTransformOriginY(Length l) { SET_VAR(rareNonInheritedData.access()->
m_transform, m_y, l); } | 1333 void setTransformOriginY(const Length& l) { SET_VAR(rareNonInheritedData.acc
ess()->m_transform, m_y, l); } |
1334 void setTransformOriginZ(float f) { SET_VAR(rareNonInheritedData.access()->m
_transform, m_z, f); } | 1334 void setTransformOriginZ(float f) { SET_VAR(rareNonInheritedData.access()->m
_transform, m_z, f); } |
1335 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } | 1335 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } |
1336 void setTextCombine(TextCombine v) { SET_VAR(rareNonInheritedData, m_textCom
bine, v); } | 1336 void setTextCombine(TextCombine v) { SET_VAR(rareNonInheritedData, m_textCom
bine, v); } |
1337 void setTextDecorationColor(const StyleColor& c) { SET_VAR(rareNonInheritedD
ata, m_textDecorationColor, c); } | 1337 void setTextDecorationColor(const StyleColor& c) { SET_VAR(rareNonInheritedD
ata, m_textDecorationColor, c); } |
1338 void setTextEmphasisColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInh
eritedData, textEmphasisColor, setTextEmphasisColor, c); } | 1338 void setTextEmphasisColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInh
eritedData, textEmphasisColor, setTextEmphasisColor, c); } |
1339 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData,
textEmphasisFill, fill); } | 1339 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData,
textEmphasisFill, fill); } |
1340 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData,
textEmphasisMark, mark); } | 1340 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData,
textEmphasisMark, mark); } |
1341 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher
itedData, textEmphasisCustomMark, mark); } | 1341 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher
itedData, textEmphasisCustomMark, mark); } |
1342 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn
heritedData, textEmphasisPosition, position); } | 1342 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn
heritedData, textEmphasisPosition, position); } |
1343 bool setTextOrientation(TextOrientation); | 1343 bool setTextOrientation(TextOrientation); |
(...skipping 21 matching lines...) Expand all Loading... |
1365 } | 1365 } |
1366 | 1366 |
1367 void clearTransitions() | 1367 void clearTransitions() |
1368 { | 1368 { |
1369 rareNonInheritedData.access()->m_transitions.clear(); | 1369 rareNonInheritedData.access()->m_transitions.clear(); |
1370 } | 1370 } |
1371 | 1371 |
1372 void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(rareNonInheritedData
, m_transformStyle3D, b); } | 1372 void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(rareNonInheritedData
, m_transformStyle3D, b); } |
1373 void setBackfaceVisibility(EBackfaceVisibility b) { SET_VAR(rareNonInherited
Data, m_backfaceVisibility, b); } | 1373 void setBackfaceVisibility(EBackfaceVisibility b) { SET_VAR(rareNonInherited
Data, m_backfaceVisibility, b); } |
1374 void setPerspective(float p) { SET_VAR(rareNonInheritedData, m_perspective,
p); } | 1374 void setPerspective(float p) { SET_VAR(rareNonInheritedData, m_perspective,
p); } |
1375 void setPerspectiveOriginX(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginX, l); } | 1375 void setPerspectiveOriginX(const Length& l) { SET_VAR(rareNonInheritedData,
m_perspectiveOriginX, l); } |
1376 void setPerspectiveOriginY(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginY, l); } | 1376 void setPerspectiveOriginY(const Length& l) { SET_VAR(rareNonInheritedData,
m_perspectiveOriginY, l); } |
1377 void setPageSize(LengthSize s) { SET_VAR(rareNonInheritedData, m_pageSize, s
); } | 1377 void setPageSize(const LengthSize& s) { SET_VAR(rareNonInheritedData, m_page
Size, s); } |
1378 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS
izeType, t); } | 1378 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS
izeType, t); } |
1379 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG
E_SIZE_AUTO); } | 1379 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG
E_SIZE_AUTO); } |
1380 | 1380 |
1381 void setHasCurrentOpacityAnimation(bool b = true) { SET_VAR(rareNonInherited
Data, m_hasCurrentOpacityAnimation, b); } | 1381 void setHasCurrentOpacityAnimation(bool b = true) { SET_VAR(rareNonInherited
Data, m_hasCurrentOpacityAnimation, b); } |
1382 void setHasCurrentTransformAnimation(bool b = true) { SET_VAR(rareNonInherit
edData, m_hasCurrentTransformAnimation, b); } | 1382 void setHasCurrentTransformAnimation(bool b = true) { SET_VAR(rareNonInherit
edData, m_hasCurrentTransformAnimation, b); } |
1383 void setHasCurrentFilterAnimation(bool b = true) { SET_VAR(rareNonInheritedD
ata, m_hasCurrentFilterAnimation, b); } | 1383 void setHasCurrentFilterAnimation(bool b = true) { SET_VAR(rareNonInheritedD
ata, m_hasCurrentFilterAnimation, b); } |
1384 | 1384 |
1385 void setIsRunningOpacityAnimationOnCompositor(bool b = true) { SET_VAR(rareN
onInheritedData, m_runningOpacityAnimationOnCompositor, b); } | 1385 void setIsRunningOpacityAnimationOnCompositor(bool b = true) { SET_VAR(rareN
onInheritedData, m_runningOpacityAnimationOnCompositor, b); } |
1386 void setIsRunningTransformAnimationOnCompositor(bool b = true) { SET_VAR(rar
eNonInheritedData, m_runningTransformAnimationOnCompositor, b); } | 1386 void setIsRunningTransformAnimationOnCompositor(bool b = true) { SET_VAR(rar
eNonInheritedData, m_runningTransformAnimationOnCompositor, b); } |
1387 void setIsRunningFilterAnimationOnCompositor(bool b = true) { SET_VAR(rareNo
nInheritedData, m_runningFilterAnimationOnCompositor, b); } | 1387 void setIsRunningFilterAnimationOnCompositor(bool b = true) { SET_VAR(rareNo
nInheritedData, m_runningFilterAnimationOnCompositor, b); } |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 void setClipPath(PassRefPtr<ClipPathOperation> operation) | 1448 void setClipPath(PassRefPtr<ClipPathOperation> operation) |
1449 { | 1449 { |
1450 if (rareNonInheritedData->m_clipPath != operation) | 1450 if (rareNonInheritedData->m_clipPath != operation) |
1451 rareNonInheritedData.access()->m_clipPath = operation; | 1451 rareNonInheritedData.access()->m_clipPath = operation; |
1452 } | 1452 } |
1453 ClipPathOperation* clipPath() const { return rareNonInheritedData->m_clipPat
h.get(); } | 1453 ClipPathOperation* clipPath() const { return rareNonInheritedData->m_clipPat
h.get(); } |
1454 | 1454 |
1455 static ClipPathOperation* initialClipPath() { return 0; } | 1455 static ClipPathOperation* initialClipPath() { return 0; } |
1456 | 1456 |
1457 const Length& shapeMargin() const { return rareNonInheritedData->m_shapeMarg
in; } | 1457 const Length& shapeMargin() const { return rareNonInheritedData->m_shapeMarg
in; } |
1458 void setShapeMargin(Length shapeMargin) { SET_VAR(rareNonInheritedData, m_sh
apeMargin, shapeMargin); } | 1458 void setShapeMargin(const Length& shapeMargin) { SET_VAR(rareNonInheritedDat
a, m_shapeMargin, shapeMargin); } |
1459 static Length initialShapeMargin() { return Length(0, Fixed); } | 1459 static Length initialShapeMargin() { return Length(0, Fixed); } |
1460 | 1460 |
1461 float shapeImageThreshold() const { return rareNonInheritedData->m_shapeImag
eThreshold; } | 1461 float shapeImageThreshold() const { return rareNonInheritedData->m_shapeImag
eThreshold; } |
1462 void setShapeImageThreshold(float shapeImageThreshold) | 1462 void setShapeImageThreshold(float shapeImageThreshold) |
1463 { | 1463 { |
1464 float clampedShapeImageThreshold = clampTo<float>(shapeImageThreshold, 0
, 1); | 1464 float clampedShapeImageThreshold = clampTo<float>(shapeImageThreshold, 0
, 1); |
1465 SET_VAR(rareNonInheritedData, m_shapeImageThreshold, clampedShapeImageTh
reshold); | 1465 SET_VAR(rareNonInheritedData, m_shapeImageThreshold, clampedShapeImageTh
reshold); |
1466 } | 1466 } |
1467 static float initialShapeImageThreshold() { return 0; } | 1467 static float initialShapeImageThreshold() { return 0; } |
1468 | 1468 |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1884 inline bool RenderStyle::hasPseudoElementStyle() const | 1884 inline bool RenderStyle::hasPseudoElementStyle() const |
1885 { | 1885 { |
1886 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; | 1886 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; |
1887 } | 1887 } |
1888 | 1888 |
1889 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1889 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
1890 | 1890 |
1891 } // namespace WebCore | 1891 } // namespace WebCore |
1892 | 1892 |
1893 #endif // RenderStyle_h | 1893 #endif // RenderStyle_h |
OLD | NEW |