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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 && originalDisplay == other.originalDisplay | 230 && originalDisplay == other.originalDisplay |
231 && overflowX == other.overflowX | 231 && overflowX == other.overflowX |
232 && overflowY == other.overflowY | 232 && overflowY == other.overflowY |
233 && verticalAlign == other.verticalAlign | 233 && verticalAlign == other.verticalAlign |
234 && clear == other.clear | 234 && clear == other.clear |
235 && position == other.position | 235 && position == other.position |
236 && floating == other.floating | 236 && floating == other.floating |
237 && tableLayout == other.tableLayout | 237 && tableLayout == other.tableLayout |
238 && unicodeBidi == other.unicodeBidi | 238 && unicodeBidi == other.unicodeBidi |
239 // hasViewportUnits | 239 // hasViewportUnits |
240 && pageBreakBefore == other.pageBreakBefore | 240 && breakBefore == other.breakBefore |
241 && pageBreakAfter == other.pageBreakAfter | 241 && breakAfter == other.breakAfter |
242 && pageBreakInside == other.pageBreakInside; | 242 && breakInside == other.breakInside; |
243 // styleType | 243 // styleType |
244 // pseudoBits | 244 // pseudoBits |
245 // explicitInheritance | 245 // explicitInheritance |
246 // unique | 246 // unique |
247 // emptyState | 247 // emptyState |
248 // affectedByFocus | 248 // affectedByFocus |
249 // affectedByHover | 249 // affectedByHover |
250 // affectedByActive | 250 // affectedByActive |
251 // affectedByDrag | 251 // affectedByDrag |
252 // isLink | 252 // isLink |
(...skipping 11 matching lines...) Expand all Loading... |
264 unsigned floating : 2; // EFloat | 264 unsigned floating : 2; // EFloat |
265 unsigned tableLayout : 1; // ETableLayout | 265 unsigned tableLayout : 1; // ETableLayout |
266 unsigned unicodeBidi : 3; // EUnicodeBidi | 266 unsigned unicodeBidi : 3; // EUnicodeBidi |
267 | 267 |
268 // This is set if we used viewport units when resolving a length. | 268 // This is set if we used viewport units when resolving a length. |
269 // It is mutable so we can pass around const ComputedStyles to resolve l
engths. | 269 // It is mutable so we can pass around const ComputedStyles to resolve l
engths. |
270 mutable unsigned hasViewportUnits : 1; | 270 mutable unsigned hasViewportUnits : 1; |
271 | 271 |
272 // 32 bits | 272 // 32 bits |
273 | 273 |
274 unsigned pageBreakBefore : 2; // EPageBreak | 274 unsigned breakBefore : 4; // EBreak |
275 unsigned pageBreakAfter : 2; // EPageBreak | 275 unsigned breakAfter : 4; // EBreak |
276 unsigned pageBreakInside : 2; // EPageBreak | 276 unsigned breakInside : 2; // EBreak |
277 | 277 |
278 unsigned styleType : 6; // PseudoId | 278 unsigned styleType : 6; // PseudoId |
279 unsigned pseudoBits : 8; | 279 unsigned pseudoBits : 8; |
280 unsigned explicitInheritance : 1; // Explicitly inherits a non-inherited
property | 280 unsigned explicitInheritance : 1; // Explicitly inherits a non-inherited
property |
281 unsigned variableReference : 1; // A non-inherited property references a
variable. | 281 unsigned variableReference : 1; // A non-inherited property references a
variable. |
282 unsigned unique : 1; // Style can not be shared. | 282 unsigned unique : 1; // Style can not be shared. |
283 | 283 |
284 unsigned emptyState : 1; | 284 unsigned emptyState : 1; |
285 | 285 |
286 unsigned affectedByFocus : 1; | 286 unsigned affectedByFocus : 1; |
287 unsigned affectedByHover : 1; | 287 unsigned affectedByHover : 1; |
288 unsigned affectedByActive : 1; | 288 unsigned affectedByActive : 1; |
289 unsigned affectedByDrag : 1; | 289 unsigned affectedByDrag : 1; |
290 | 290 |
| 291 // 64 bits |
| 292 |
291 unsigned isLink : 1; | 293 unsigned isLink : 1; |
292 | 294 |
293 mutable unsigned hasRemUnits : 1; | 295 mutable unsigned hasRemUnits : 1; |
294 // If you add more style bits here, you will also need to update Compute
dStyle::copyNonInheritedFromCached() | 296 // If you add more style bits here, you will also need to update Compute
dStyle::copyNonInheritedFromCached() |
295 // 62 bits | 297 // 66 bits |
296 } noninherited_flags; | 298 } noninherited_flags; |
297 | 299 |
298 // !END SYNC! | 300 // !END SYNC! |
299 | 301 |
300 protected: | 302 protected: |
301 void setBitDefaults() | 303 void setBitDefaults() |
302 { | 304 { |
303 inherited_flags._empty_cells = initialEmptyCells(); | 305 inherited_flags._empty_cells = initialEmptyCells(); |
304 inherited_flags._caption_side = initialCaptionSide(); | 306 inherited_flags._caption_side = initialCaptionSide(); |
305 inherited_flags._list_style_type = initialListStyleType(); | 307 inherited_flags._list_style_type = initialListStyleType(); |
(...skipping 15 matching lines...) Expand all Loading... |
321 | 323 |
322 noninherited_flags.effectiveDisplay = noninherited_flags.originalDisplay
= initialDisplay(); | 324 noninherited_flags.effectiveDisplay = noninherited_flags.originalDisplay
= initialDisplay(); |
323 noninherited_flags.overflowX = initialOverflowX(); | 325 noninherited_flags.overflowX = initialOverflowX(); |
324 noninherited_flags.overflowY = initialOverflowY(); | 326 noninherited_flags.overflowY = initialOverflowY(); |
325 noninherited_flags.verticalAlign = initialVerticalAlign(); | 327 noninherited_flags.verticalAlign = initialVerticalAlign(); |
326 noninherited_flags.clear = initialClear(); | 328 noninherited_flags.clear = initialClear(); |
327 noninherited_flags.position = initialPosition(); | 329 noninherited_flags.position = initialPosition(); |
328 noninherited_flags.floating = initialFloating(); | 330 noninherited_flags.floating = initialFloating(); |
329 noninherited_flags.tableLayout = initialTableLayout(); | 331 noninherited_flags.tableLayout = initialTableLayout(); |
330 noninherited_flags.unicodeBidi = initialUnicodeBidi(); | 332 noninherited_flags.unicodeBidi = initialUnicodeBidi(); |
331 noninherited_flags.pageBreakBefore = initialPageBreak(); | 333 noninherited_flags.breakBefore = initialBreakBefore(); |
332 noninherited_flags.pageBreakAfter = initialPageBreak(); | 334 noninherited_flags.breakAfter = initialBreakAfter(); |
333 noninherited_flags.pageBreakInside = initialPageBreak(); | 335 noninherited_flags.breakInside = initialBreakInside(); |
334 noninherited_flags.styleType = NOPSEUDO; | 336 noninherited_flags.styleType = NOPSEUDO; |
335 noninherited_flags.pseudoBits = 0; | 337 noninherited_flags.pseudoBits = 0; |
336 noninherited_flags.explicitInheritance = false; | 338 noninherited_flags.explicitInheritance = false; |
337 noninherited_flags.variableReference = false; | 339 noninherited_flags.variableReference = false; |
338 noninherited_flags.unique = false; | 340 noninherited_flags.unique = false; |
339 noninherited_flags.emptyState = false; | 341 noninherited_flags.emptyState = false; |
340 noninherited_flags.hasViewportUnits = false; | 342 noninherited_flags.hasViewportUnits = false; |
341 noninherited_flags.affectedByFocus = false; | 343 noninherited_flags.affectedByFocus = false; |
342 noninherited_flags.affectedByHover = false; | 344 noninherited_flags.affectedByHover = false; |
343 noninherited_flags.affectedByActive = false; | 345 noninherited_flags.affectedByActive = false; |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 ECursor cursor() const { return static_cast<ECursor>(inherited_flags._cursor
_style); } | 745 ECursor cursor() const { return static_cast<ECursor>(inherited_flags._cursor
_style); } |
744 CursorList* cursors() const { return rareInheritedData->cursorData.get(); } | 746 CursorList* cursors() const { return rareInheritedData->cursorData.get(); } |
745 | 747 |
746 EInsideLink insideLink() const { return static_cast<EInsideLink>(inherited_f
lags._insideLink); } | 748 EInsideLink insideLink() const { return static_cast<EInsideLink>(inherited_f
lags._insideLink); } |
747 bool isLink() const { return noninherited_flags.isLink; } | 749 bool isLink() const { return noninherited_flags.isLink; } |
748 | 750 |
749 short widows() const { return rareInheritedData->widows; } | 751 short widows() const { return rareInheritedData->widows; } |
750 short orphans() const { return rareInheritedData->orphans; } | 752 short orphans() const { return rareInheritedData->orphans; } |
751 bool hasAutoWidows() const { return rareInheritedData->widows == 1; } | 753 bool hasAutoWidows() const { return rareInheritedData->widows == 1; } |
752 bool hasAutoOrphans() const { return rareInheritedData->m_hasAutoOrphans; } | 754 bool hasAutoOrphans() const { return rareInheritedData->m_hasAutoOrphans; } |
753 EPageBreak pageBreakInside() const { return static_cast<EPageBreak>(noninher
ited_flags.pageBreakInside); } | 755 EBreak breakAfter() const { return static_cast<EBreak>(noninherited_flags.br
eakAfter); } |
754 EPageBreak pageBreakBefore() const { return static_cast<EPageBreak>(noninher
ited_flags.pageBreakBefore); } | 756 EBreak breakBefore() const { return static_cast<EBreak>(noninherited_flags.b
reakBefore); } |
755 EPageBreak pageBreakAfter() const { return static_cast<EPageBreak>(noninheri
ted_flags.pageBreakAfter); } | 757 EBreak breakInside() const { return static_cast<EBreak>(noninherited_flags.b
reakInside); } |
756 | 758 |
757 // CSS3 Getter Methods | 759 // CSS3 Getter Methods |
758 | 760 |
759 int outlineOffset() const | 761 int outlineOffset() const |
760 { | 762 { |
761 if (m_background->outline().style() == BNONE) | 763 if (m_background->outline().style() == BNONE) |
762 return 0; | 764 return 0; |
763 return m_background->outline().offset(); | 765 return m_background->outline().offset(); |
764 } | 766 } |
765 | 767 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m
_autoCount; } | 878 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m
_autoCount; } |
877 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu
mnWidth(); } | 879 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu
mnWidth(); } |
878 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri
tedData->m_multiCol->m_fill); } | 880 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri
tedData->m_multiCol->m_fill); } |
879 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } | 881 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } |
880 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m
_normalGap; } | 882 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m
_normalGap; } |
881 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } | 883 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } |
882 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } | 884 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } |
883 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } | 885 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } |
884 bool columnRuleEquivalent(const ComputedStyle* otherStyle) const; | 886 bool columnRuleEquivalent(const ComputedStyle* otherStyle) const; |
885 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri
tedData->m_multiCol->m_columnSpan); } | 887 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri
tedData->m_multiCol->m_columnSpan); } |
886 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakBefore); } | |
887 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakInside); } | |
888 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon
InheritedData->m_multiCol->m_breakAfter); } | |
889 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr
ansform; } | 888 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr
ansform; } |
890 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit
orProxy; } | 889 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit
orProxy; } |
891 const TransformOperations& transform() const { return rareNonInheritedData->
m_transform->m_operations; } | 890 const TransformOperations& transform() const { return rareNonInheritedData->
m_transform->m_operations; } |
892 const TransformOrigin& transformOrigin() const { return rareNonInheritedData
->m_transform->m_origin; } | 891 const TransformOrigin& transformOrigin() const { return rareNonInheritedData
->m_transform->m_origin; } |
893 const Length& transformOriginX() const { return transformOrigin().x(); } | 892 const Length& transformOriginX() const { return transformOrigin().x(); } |
894 const Length& transformOriginY() const { return transformOrigin().y(); } | 893 const Length& transformOriginY() const { return transformOrigin().y(); } |
895 TranslateTransformOperation* translate() const { return rareNonInheritedData
->m_transform->m_translate.get(); } | 894 TranslateTransformOperation* translate() const { return rareNonInheritedData
->m_transform->m_translate.get(); } |
896 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr
ansform->m_rotate.get(); } | 895 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr
ansform->m_rotate.get(); } |
897 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran
sform->m_scale.get(); } | 896 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran
sform->m_scale.get(); } |
898 float transformOriginZ() const { return transformOrigin().z(); } | 897 float transformOriginZ() const { return transformOrigin().z(); } |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b
ox, m_zIndex, 0); } | 1298 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b
ox, m_zIndex, 0); } |
1300 int zIndex() const { return m_box->zIndex(); } | 1299 int zIndex() const { return m_box->zIndex(); } |
1301 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo
x, m_zIndex, v); } | 1300 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo
x, m_zIndex, v); } |
1302 | 1301 |
1303 void setHasAutoWidows() { SET_VAR(rareInheritedData, widows, initialWidows()
); } | 1302 void setHasAutoWidows() { SET_VAR(rareInheritedData, widows, initialWidows()
); } |
1304 void setWidows(short w) { SET_VAR(rareInheritedData, widows, w); } | 1303 void setWidows(short w) { SET_VAR(rareInheritedData, widows, w); } |
1305 | 1304 |
1306 void setHasAutoOrphans() { SET_VAR(rareInheritedData, m_hasAutoOrphans, true
); SET_VAR(rareInheritedData, orphans, initialOrphans()); } | 1305 void setHasAutoOrphans() { SET_VAR(rareInheritedData, m_hasAutoOrphans, true
); SET_VAR(rareInheritedData, orphans, initialOrphans()); } |
1307 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals
e); SET_VAR(rareInheritedData, orphans, o); } | 1306 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals
e); SET_VAR(rareInheritedData, orphans, o); } |
1308 | 1307 |
1309 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page
.html#page-break-props | 1308 void setBreakAfter(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakAfte
rAndBefore); noninherited_flags.breakAfter = b; } |
1310 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID);
noninherited_flags.pageBreakInside = b; } | 1309 void setBreakBefore(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakAft
erAndBefore); noninherited_flags.breakBefore = b; } |
1311 void setPageBreakBefore(EPageBreak b) { noninherited_flags.pageBreakBefore =
b; } | 1310 void setBreakInside(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakIns
ide); noninherited_flags.breakInside = b; } |
1312 void setPageBreakAfter(EPageBreak b) { noninherited_flags.pageBreakAfter = b
; } | |
1313 | 1311 |
1314 // CSS3 Setters | 1312 // CSS3 Setters |
1315 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} | 1313 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} |
1316 void setTextShadow(PassRefPtr<ShadowList>); | 1314 void setTextShadow(PassRefPtr<ShadowList>); |
1317 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInher
itedData, textStrokeColor, setTextStrokeColor, c); } | 1315 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInher
itedData, textStrokeColor, setTextStrokeColor, c); } |
1318 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } | 1316 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } |
1319 void setTextFillColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInherit
edData, textFillColor, setTextFillColor, c); } | 1317 void setTextFillColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInherit
edData, textFillColor, setTextFillColor, c); } |
1320 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo
nInheritedData, opacity, v); } | 1318 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo
nInheritedData, opacity, v); } |
1321 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan
ce, a); } | 1319 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan
ce, a); } |
1322 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb
ox-20090723/#alignment | 1320 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb
ox-20090723/#alignment |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1398 void setHasAutoColumnWidth() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoWidth, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_width
, 0); } | 1396 void setHasAutoColumnWidth() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoWidth, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_width
, 0); } |
1399 void setColumnCount(unsigned short c) { SET_NESTED_VAR(rareNonInheritedData,
m_multiCol, m_autoCount, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCo
l, m_count, c); } | 1397 void setColumnCount(unsigned short c) { SET_NESTED_VAR(rareNonInheritedData,
m_multiCol, m_autoCount, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCo
l, m_count, c); } |
1400 void setHasAutoColumnCount() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoCount, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_count
, initialColumnCount()); } | 1398 void setHasAutoColumnCount() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoCount, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_count
, initialColumnCount()); } |
1401 void setColumnFill(ColumnFill columnFill) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_fill, columnFill); } | 1399 void setColumnFill(ColumnFill columnFill) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_fill, columnFill); } |
1402 void setColumnGap(float f) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol
, m_normalGap, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap, f
); } | 1400 void setColumnGap(float f) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol
, m_normalGap, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap, f
); } |
1403 void setHasNormalColumnGap() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_normalGap, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap,
0); } | 1401 void setHasNormalColumnGap() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_normalGap, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap,
0); } |
1404 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon
InheritedData.access()->m_multiCol, m_rule, c); } | 1402 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon
InheritedData.access()->m_multiCol, m_rule, c); } |
1405 void setColumnRuleStyle(EBorderStyle b) { SET_NESTED_VAR(rareNonInheritedDat
a, m_multiCol, m_rule.m_style, b); } | 1403 void setColumnRuleStyle(EBorderStyle b) { SET_NESTED_VAR(rareNonInheritedDat
a, m_multiCol, m_rule.m_style, b); } |
1406 void setColumnRuleWidth(unsigned short w) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_rule.m_width, w); } | 1404 void setColumnRuleWidth(unsigned short w) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_rule.m_width, w); } |
1407 void setColumnSpan(ColumnSpan columnSpan) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_columnSpan, columnSpan); } | 1405 void setColumnSpan(ColumnSpan columnSpan) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_columnSpan, columnSpan); } |
1408 void setColumnBreakBefore(EPageBreak p) { SET_NESTED_VAR(rareNonInheritedDat
a, m_multiCol, m_breakBefore, p); } | |
1409 // For valid values of column-break-inside see http://www.w3.org/TR/css3-mul
ticol/#break-before-break-after-break-inside | |
1410 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID
); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_breakInside, p); } | |
1411 void setColumnBreakAfter(EPageBreak p) { SET_NESTED_VAR(rareNonInheritedData
, m_multiCol, m_breakAfter, p); } | |
1412 void inheritColumnPropertiesFrom(const ComputedStyle& parent) { rareNonInher
itedData.access()->m_multiCol = parent.rareNonInheritedData->m_multiCol; } | 1406 void inheritColumnPropertiesFrom(const ComputedStyle& parent) { rareNonInher
itedData.access()->m_multiCol = parent.rareNonInheritedData->m_multiCol; } |
1413 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli
neTransform, b); } | 1407 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli
neTransform, b); } |
1414 void setHasCompositorProxy(bool b) { SET_VAR(rareNonInheritedData, m_hasComp
ositorProxy, b); } | 1408 void setHasCompositorProxy(bool b) { SET_VAR(rareNonInheritedData, m_hasComp
ositorProxy, b); } |
1415 void setTransform(const TransformOperations& ops) { SET_NESTED_VAR(rareNonIn
heritedData, m_transform, m_operations, ops); } | 1409 void setTransform(const TransformOperations& ops) { SET_NESTED_VAR(rareNonIn
heritedData, m_transform, m_operations, ops); } |
1416 void setTransformOriginX(const Length& v) { setTransformOrigin(TransformOrig
in(v, transformOriginY(), transformOriginZ())); } | 1410 void setTransformOriginX(const Length& v) { setTransformOrigin(TransformOrig
in(v, transformOriginY(), transformOriginZ())); } |
1417 void setTransformOriginY(const Length& v) { setTransformOrigin(TransformOrig
in(transformOriginX(), v, transformOriginZ())); } | 1411 void setTransformOriginY(const Length& v) { setTransformOrigin(TransformOrig
in(transformOriginX(), v, transformOriginZ())); } |
1418 void setTransformOriginZ(float f) { setTransformOrigin(TransformOrigin(trans
formOriginX(), transformOriginY(), f)); } | 1412 void setTransformOriginZ(float f) { setTransformOrigin(TransformOrigin(trans
formOriginX(), transformOriginY(), f)); } |
1419 void setTransformOrigin(const TransformOrigin& o) { SET_NESTED_VAR(rareNonIn
heritedData, m_transform, m_origin, o); } | 1413 void setTransformOrigin(const TransformOrigin& o) { SET_NESTED_VAR(rareNonIn
heritedData, m_transform, m_origin, o); } |
1420 void setTranslate(PassRefPtr<TranslateTransformOperation> v) { rareNonInheri
tedData.access()->m_transform.access()->m_translate = v; } | 1414 void setTranslate(PassRefPtr<TranslateTransformOperation> v) { rareNonInheri
tedData.access()->m_transform.access()->m_translate = v; } |
1421 void setRotate(PassRefPtr<RotateTransformOperation> v) { rareNonInheritedDat
a.access()->m_transform.access()->m_rotate = v; } | 1415 void setRotate(PassRefPtr<RotateTransformOperation> v) { rareNonInheritedDat
a.access()->m_transform.access()->m_rotate = v; } |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1664 static TextOrientation initialTextOrientation() { return TextOrientationMixe
d; } | 1658 static TextOrientation initialTextOrientation() { return TextOrientationMixe
d; } |
1665 static ObjectFit initialObjectFit() { return ObjectFitFill; } | 1659 static ObjectFit initialObjectFit() { return ObjectFitFill; } |
1666 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0,
Percent), Length(50.0, Percent)); } | 1660 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0,
Percent), Length(50.0, Percent)); } |
1667 static EDisplay initialDisplay() { return INLINE; } | 1661 static EDisplay initialDisplay() { return INLINE; } |
1668 static EEmptyCell initialEmptyCells() { return SHOW; } | 1662 static EEmptyCell initialEmptyCells() { return SHOW; } |
1669 static EFloat initialFloating() { return NoFloat; } | 1663 static EFloat initialFloating() { return NoFloat; } |
1670 static EListStylePosition initialListStylePosition() { return OUTSIDE; } | 1664 static EListStylePosition initialListStylePosition() { return OUTSIDE; } |
1671 static EListStyleType initialListStyleType() { return Disc; } | 1665 static EListStyleType initialListStyleType() { return Disc; } |
1672 static EOverflow initialOverflowX() { return OVISIBLE; } | 1666 static EOverflow initialOverflowX() { return OVISIBLE; } |
1673 static EOverflow initialOverflowY() { return OVISIBLE; } | 1667 static EOverflow initialOverflowY() { return OVISIBLE; } |
1674 static EPageBreak initialPageBreak() { return PBAUTO; } | 1668 static EBreak initialBreakAfter() { return BreakAuto; } |
| 1669 static EBreak initialBreakBefore() { return BreakAuto; } |
| 1670 static EBreak initialBreakInside() { return BreakAuto; } |
1675 static EPosition initialPosition() { return StaticPosition; } | 1671 static EPosition initialPosition() { return StaticPosition; } |
1676 static ETableLayout initialTableLayout() { return TAUTO; } | 1672 static ETableLayout initialTableLayout() { return TAUTO; } |
1677 static EUnicodeBidi initialUnicodeBidi() { return UBNormal; } | 1673 static EUnicodeBidi initialUnicodeBidi() { return UBNormal; } |
1678 static ETextTransform initialTextTransform() { return TTNONE; } | 1674 static ETextTransform initialTextTransform() { return TTNONE; } |
1679 static EVisibility initialVisibility() { return VISIBLE; } | 1675 static EVisibility initialVisibility() { return VISIBLE; } |
1680 static EWhiteSpace initialWhiteSpace() { return NORMAL; } | 1676 static EWhiteSpace initialWhiteSpace() { return NORMAL; } |
1681 static short initialHorizontalBorderSpacing() { return 0; } | 1677 static short initialHorizontalBorderSpacing() { return 0; } |
1682 static short initialVerticalBorderSpacing() { return 0; } | 1678 static short initialVerticalBorderSpacing() { return 0; } |
1683 static ECursor initialCursor() { return CURSOR_AUTO; } | 1679 static ECursor initialCursor() { return CURSOR_AUTO; } |
1684 static Color initialColor() { return Color::black; } | 1680 static Color initialColor() { return Color::black; } |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2029 } | 2025 } |
2030 | 2026 |
2031 inline bool ComputedStyle::hasPseudoElementStyle() const | 2027 inline bool ComputedStyle::hasPseudoElementStyle() const |
2032 { | 2028 { |
2033 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 2029 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; |
2034 } | 2030 } |
2035 | 2031 |
2036 } // namespace blink | 2032 } // namespace blink |
2037 | 2033 |
2038 #endif // ComputedStyle_h | 2034 #endif // ComputedStyle_h |
OLD | NEW |