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 : 3; // 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; | |
285 | |
286 unsigned affectedByFocus : 1; | 284 unsigned affectedByFocus : 1; |
287 unsigned affectedByHover : 1; | 285 unsigned affectedByHover : 1; |
288 unsigned affectedByActive : 1; | 286 unsigned affectedByActive : 1; |
289 unsigned affectedByDrag : 1; | 287 unsigned affectedByDrag : 1; |
290 | 288 |
| 289 // 64 bits |
| 290 |
| 291 unsigned emptyState : 1; |
291 unsigned isLink : 1; | 292 unsigned isLink : 1; |
292 | 293 |
293 mutable unsigned hasRemUnits : 1; | 294 mutable unsigned hasRemUnits : 1; |
294 // If you add more style bits here, you will also need to update Compute
dStyle::copyNonInheritedFromCached() | 295 // If you add more style bits here, you will also need to update Compute
dStyle::copyNonInheritedFromCached() |
295 // 62 bits | 296 // 67 bits |
296 } noninherited_flags; | 297 } noninherited_flags; |
297 | 298 |
298 // !END SYNC! | 299 // !END SYNC! |
299 | 300 |
300 protected: | 301 protected: |
301 void setBitDefaults() | 302 void setBitDefaults() |
302 { | 303 { |
303 inherited_flags._empty_cells = initialEmptyCells(); | 304 inherited_flags._empty_cells = initialEmptyCells(); |
304 inherited_flags._caption_side = initialCaptionSide(); | 305 inherited_flags._caption_side = initialCaptionSide(); |
305 inherited_flags._list_style_type = initialListStyleType(); | 306 inherited_flags._list_style_type = initialListStyleType(); |
(...skipping 15 matching lines...) Expand all Loading... |
321 | 322 |
322 noninherited_flags.effectiveDisplay = noninherited_flags.originalDisplay
= initialDisplay(); | 323 noninherited_flags.effectiveDisplay = noninherited_flags.originalDisplay
= initialDisplay(); |
323 noninherited_flags.overflowX = initialOverflowX(); | 324 noninherited_flags.overflowX = initialOverflowX(); |
324 noninherited_flags.overflowY = initialOverflowY(); | 325 noninherited_flags.overflowY = initialOverflowY(); |
325 noninherited_flags.verticalAlign = initialVerticalAlign(); | 326 noninherited_flags.verticalAlign = initialVerticalAlign(); |
326 noninherited_flags.clear = initialClear(); | 327 noninherited_flags.clear = initialClear(); |
327 noninherited_flags.position = initialPosition(); | 328 noninherited_flags.position = initialPosition(); |
328 noninherited_flags.floating = initialFloating(); | 329 noninherited_flags.floating = initialFloating(); |
329 noninherited_flags.tableLayout = initialTableLayout(); | 330 noninherited_flags.tableLayout = initialTableLayout(); |
330 noninherited_flags.unicodeBidi = initialUnicodeBidi(); | 331 noninherited_flags.unicodeBidi = initialUnicodeBidi(); |
331 noninherited_flags.pageBreakBefore = initialPageBreak(); | 332 noninherited_flags.breakBefore = initialBreakBefore(); |
332 noninherited_flags.pageBreakAfter = initialPageBreak(); | 333 noninherited_flags.breakAfter = initialBreakAfter(); |
333 noninherited_flags.pageBreakInside = initialPageBreak(); | 334 noninherited_flags.breakInside = initialBreakInside(); |
334 noninherited_flags.styleType = NOPSEUDO; | 335 noninherited_flags.styleType = NOPSEUDO; |
335 noninherited_flags.pseudoBits = 0; | 336 noninherited_flags.pseudoBits = 0; |
336 noninherited_flags.explicitInheritance = false; | 337 noninherited_flags.explicitInheritance = false; |
337 noninherited_flags.variableReference = false; | 338 noninherited_flags.variableReference = false; |
338 noninherited_flags.unique = false; | 339 noninherited_flags.unique = false; |
339 noninherited_flags.emptyState = false; | 340 noninherited_flags.emptyState = false; |
340 noninherited_flags.hasViewportUnits = false; | 341 noninherited_flags.hasViewportUnits = false; |
341 noninherited_flags.affectedByFocus = false; | 342 noninherited_flags.affectedByFocus = false; |
342 noninherited_flags.affectedByHover = false; | 343 noninherited_flags.affectedByHover = false; |
343 noninherited_flags.affectedByActive = false; | 344 noninherited_flags.affectedByActive = false; |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 ECursor cursor() const { return static_cast<ECursor>(inherited_flags._cursor
_style); } | 740 ECursor cursor() const { return static_cast<ECursor>(inherited_flags._cursor
_style); } |
740 CursorList* cursors() const { return rareInheritedData->cursorData.get(); } | 741 CursorList* cursors() const { return rareInheritedData->cursorData.get(); } |
741 | 742 |
742 EInsideLink insideLink() const { return static_cast<EInsideLink>(inherited_f
lags._insideLink); } | 743 EInsideLink insideLink() const { return static_cast<EInsideLink>(inherited_f
lags._insideLink); } |
743 bool isLink() const { return noninherited_flags.isLink; } | 744 bool isLink() const { return noninherited_flags.isLink; } |
744 | 745 |
745 short widows() const { return rareInheritedData->widows; } | 746 short widows() const { return rareInheritedData->widows; } |
746 short orphans() const { return rareInheritedData->orphans; } | 747 short orphans() const { return rareInheritedData->orphans; } |
747 bool hasAutoWidows() const { return rareInheritedData->widows == 1; } | 748 bool hasAutoWidows() const { return rareInheritedData->widows == 1; } |
748 bool hasAutoOrphans() const { return rareInheritedData->m_hasAutoOrphans; } | 749 bool hasAutoOrphans() const { return rareInheritedData->m_hasAutoOrphans; } |
749 EPageBreak pageBreakInside() const { return static_cast<EPageBreak>(noninher
ited_flags.pageBreakInside); } | 750 EBreak breakAfter() const { return static_cast<EBreak>(noninherited_flags.br
eakAfter); } |
750 EPageBreak pageBreakBefore() const { return static_cast<EPageBreak>(noninher
ited_flags.pageBreakBefore); } | 751 EBreak breakBefore() const { return static_cast<EBreak>(noninherited_flags.b
reakBefore); } |
751 EPageBreak pageBreakAfter() const { return static_cast<EPageBreak>(noninheri
ted_flags.pageBreakAfter); } | 752 EBreak breakInside() const { return static_cast<EBreak>(noninherited_flags.b
reakInside); } |
752 | 753 |
753 // CSS3 Getter Methods | 754 // CSS3 Getter Methods |
754 | 755 |
755 int outlineOffset() const | 756 int outlineOffset() const |
756 { | 757 { |
757 if (m_background->outline().style() == BNONE) | 758 if (m_background->outline().style() == BNONE) |
758 return 0; | 759 return 0; |
759 return m_background->outline().offset(); | 760 return m_background->outline().offset(); |
760 } | 761 } |
761 | 762 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m
_autoCount; } | 872 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m
_autoCount; } |
872 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu
mnWidth(); } | 873 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu
mnWidth(); } |
873 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri
tedData->m_multiCol->m_fill); } | 874 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri
tedData->m_multiCol->m_fill); } |
874 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } | 875 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } |
875 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m
_normalGap; } | 876 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m
_normalGap; } |
876 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } | 877 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } |
877 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } | 878 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } |
878 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } | 879 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } |
879 bool columnRuleEquivalent(const ComputedStyle* otherStyle) const; | 880 bool columnRuleEquivalent(const ComputedStyle* otherStyle) const; |
880 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri
tedData->m_multiCol->m_columnSpan); } | 881 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri
tedData->m_multiCol->m_columnSpan); } |
881 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakBefore); } | |
882 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakInside); } | |
883 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon
InheritedData->m_multiCol->m_breakAfter); } | |
884 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr
ansform; } | 882 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr
ansform; } |
885 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit
orProxy; } | 883 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit
orProxy; } |
886 const TransformOperations& transform() const { return rareNonInheritedData->
m_transform->m_operations; } | 884 const TransformOperations& transform() const { return rareNonInheritedData->
m_transform->m_operations; } |
887 const TransformOrigin& transformOrigin() const { return rareNonInheritedData
->m_transform->m_origin; } | 885 const TransformOrigin& transformOrigin() const { return rareNonInheritedData
->m_transform->m_origin; } |
888 const Length& transformOriginX() const { return transformOrigin().x(); } | 886 const Length& transformOriginX() const { return transformOrigin().x(); } |
889 const Length& transformOriginY() const { return transformOrigin().y(); } | 887 const Length& transformOriginY() const { return transformOrigin().y(); } |
890 TranslateTransformOperation* translate() const { return rareNonInheritedData
->m_transform->m_translate.get(); } | 888 TranslateTransformOperation* translate() const { return rareNonInheritedData
->m_transform->m_translate.get(); } |
891 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr
ansform->m_rotate.get(); } | 889 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr
ansform->m_rotate.get(); } |
892 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran
sform->m_scale.get(); } | 890 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran
sform->m_scale.get(); } |
893 float transformOriginZ() const { return transformOrigin().z(); } | 891 float transformOriginZ() const { return transformOrigin().z(); } |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b
ox, m_zIndex, 0); } | 1289 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b
ox, m_zIndex, 0); } |
1292 int zIndex() const { return m_box->zIndex(); } | 1290 int zIndex() const { return m_box->zIndex(); } |
1293 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo
x, m_zIndex, v); } | 1291 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo
x, m_zIndex, v); } |
1294 | 1292 |
1295 void setHasAutoWidows() { SET_VAR(rareInheritedData, widows, initialWidows()
); } | 1293 void setHasAutoWidows() { SET_VAR(rareInheritedData, widows, initialWidows()
); } |
1296 void setWidows(short w) { SET_VAR(rareInheritedData, widows, w); } | 1294 void setWidows(short w) { SET_VAR(rareInheritedData, widows, w); } |
1297 | 1295 |
1298 void setHasAutoOrphans() { SET_VAR(rareInheritedData, m_hasAutoOrphans, true
); SET_VAR(rareInheritedData, orphans, initialOrphans()); } | 1296 void setHasAutoOrphans() { SET_VAR(rareInheritedData, m_hasAutoOrphans, true
); SET_VAR(rareInheritedData, orphans, initialOrphans()); } |
1299 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals
e); SET_VAR(rareInheritedData, orphans, o); } | 1297 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals
e); SET_VAR(rareInheritedData, orphans, o); } |
1300 | 1298 |
1301 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page
.html#page-break-props | 1299 void setBreakAfter(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakAfte
rAndBefore); noninherited_flags.breakAfter = b; } |
1302 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID);
noninherited_flags.pageBreakInside = b; } | 1300 void setBreakBefore(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakAft
erAndBefore); noninherited_flags.breakBefore = b; } |
1303 void setPageBreakBefore(EPageBreak b) { noninherited_flags.pageBreakBefore =
b; } | 1301 void setBreakInside(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakIns
ide); noninherited_flags.breakInside = b; } |
1304 void setPageBreakAfter(EPageBreak b) { noninherited_flags.pageBreakAfter = b
; } | |
1305 | 1302 |
1306 // CSS3 Setters | 1303 // CSS3 Setters |
1307 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} | 1304 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} |
1308 void setTextShadow(PassRefPtr<ShadowList>); | 1305 void setTextShadow(PassRefPtr<ShadowList>); |
1309 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInher
itedData, textStrokeColor, setTextStrokeColor, c); } | 1306 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInher
itedData, textStrokeColor, setTextStrokeColor, c); } |
1310 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } | 1307 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } |
1311 void setTextFillColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInherit
edData, textFillColor, setTextFillColor, c); } | 1308 void setTextFillColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInherit
edData, textFillColor, setTextFillColor, c); } |
1312 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo
nInheritedData, opacity, v); } | 1309 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo
nInheritedData, opacity, v); } |
1313 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan
ce, a); } | 1310 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan
ce, a); } |
1314 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb
ox-20090723/#alignment | 1311 // 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... |
1390 void setHasAutoColumnWidth() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoWidth, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_width
, 0); } | 1387 void setHasAutoColumnWidth() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoWidth, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_width
, 0); } |
1391 void setColumnCount(unsigned short c) { SET_NESTED_VAR(rareNonInheritedData,
m_multiCol, m_autoCount, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCo
l, m_count, c); } | 1388 void setColumnCount(unsigned short c) { SET_NESTED_VAR(rareNonInheritedData,
m_multiCol, m_autoCount, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCo
l, m_count, c); } |
1392 void setHasAutoColumnCount() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoCount, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_count
, initialColumnCount()); } | 1389 void setHasAutoColumnCount() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoCount, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_count
, initialColumnCount()); } |
1393 void setColumnFill(ColumnFill columnFill) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_fill, columnFill); } | 1390 void setColumnFill(ColumnFill columnFill) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_fill, columnFill); } |
1394 void setColumnGap(float f) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol
, m_normalGap, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap, f
); } | 1391 void setColumnGap(float f) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol
, m_normalGap, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap, f
); } |
1395 void setHasNormalColumnGap() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_normalGap, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap,
0); } | 1392 void setHasNormalColumnGap() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_normalGap, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap,
0); } |
1396 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon
InheritedData.access()->m_multiCol, m_rule, c); } | 1393 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon
InheritedData.access()->m_multiCol, m_rule, c); } |
1397 void setColumnRuleStyle(EBorderStyle b) { SET_NESTED_VAR(rareNonInheritedDat
a, m_multiCol, m_rule.m_style, b); } | 1394 void setColumnRuleStyle(EBorderStyle b) { SET_NESTED_VAR(rareNonInheritedDat
a, m_multiCol, m_rule.m_style, b); } |
1398 void setColumnRuleWidth(unsigned short w) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_rule.m_width, w); } | 1395 void setColumnRuleWidth(unsigned short w) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_rule.m_width, w); } |
1399 void setColumnSpan(ColumnSpan columnSpan) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_columnSpan, columnSpan); } | 1396 void setColumnSpan(ColumnSpan columnSpan) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_columnSpan, columnSpan); } |
1400 void setColumnBreakBefore(EPageBreak p) { SET_NESTED_VAR(rareNonInheritedDat
a, m_multiCol, m_breakBefore, p); } | |
1401 // For valid values of column-break-inside see http://www.w3.org/TR/css3-mul
ticol/#break-before-break-after-break-inside | |
1402 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID
); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_breakInside, p); } | |
1403 void setColumnBreakAfter(EPageBreak p) { SET_NESTED_VAR(rareNonInheritedData
, m_multiCol, m_breakAfter, p); } | |
1404 void inheritColumnPropertiesFrom(const ComputedStyle& parent) { rareNonInher
itedData.access()->m_multiCol = parent.rareNonInheritedData->m_multiCol; } | 1397 void inheritColumnPropertiesFrom(const ComputedStyle& parent) { rareNonInher
itedData.access()->m_multiCol = parent.rareNonInheritedData->m_multiCol; } |
1405 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli
neTransform, b); } | 1398 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli
neTransform, b); } |
1406 void setHasCompositorProxy(bool b) { SET_VAR(rareNonInheritedData, m_hasComp
ositorProxy, b); } | 1399 void setHasCompositorProxy(bool b) { SET_VAR(rareNonInheritedData, m_hasComp
ositorProxy, b); } |
1407 void setTransform(const TransformOperations& ops) { SET_NESTED_VAR(rareNonIn
heritedData, m_transform, m_operations, ops); } | 1400 void setTransform(const TransformOperations& ops) { SET_NESTED_VAR(rareNonIn
heritedData, m_transform, m_operations, ops); } |
1408 void setTransformOriginX(const Length& v) { setTransformOrigin(TransformOrig
in(v, transformOriginY(), transformOriginZ())); } | 1401 void setTransformOriginX(const Length& v) { setTransformOrigin(TransformOrig
in(v, transformOriginY(), transformOriginZ())); } |
1409 void setTransformOriginY(const Length& v) { setTransformOrigin(TransformOrig
in(transformOriginX(), v, transformOriginZ())); } | 1402 void setTransformOriginY(const Length& v) { setTransformOrigin(TransformOrig
in(transformOriginX(), v, transformOriginZ())); } |
1410 void setTransformOriginZ(float f) { setTransformOrigin(TransformOrigin(trans
formOriginX(), transformOriginY(), f)); } | 1403 void setTransformOriginZ(float f) { setTransformOrigin(TransformOrigin(trans
formOriginX(), transformOriginY(), f)); } |
1411 void setTransformOrigin(const TransformOrigin& o) { SET_NESTED_VAR(rareNonIn
heritedData, m_transform, m_origin, o); } | 1404 void setTransformOrigin(const TransformOrigin& o) { SET_NESTED_VAR(rareNonIn
heritedData, m_transform, m_origin, o); } |
1412 void setTranslate(PassRefPtr<TranslateTransformOperation> v) { rareNonInheri
tedData.access()->m_transform.access()->m_translate = v; } | 1405 void setTranslate(PassRefPtr<TranslateTransformOperation> v) { rareNonInheri
tedData.access()->m_transform.access()->m_translate = v; } |
1413 void setRotate(PassRefPtr<RotateTransformOperation> v) { rareNonInheritedDat
a.access()->m_transform.access()->m_rotate = v; } | 1406 void setRotate(PassRefPtr<RotateTransformOperation> v) { rareNonInheritedDat
a.access()->m_transform.access()->m_rotate = v; } |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 static TextOrientation initialTextOrientation() { return TextOrientationMixe
d; } | 1646 static TextOrientation initialTextOrientation() { return TextOrientationMixe
d; } |
1654 static ObjectFit initialObjectFit() { return ObjectFitFill; } | 1647 static ObjectFit initialObjectFit() { return ObjectFitFill; } |
1655 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0,
Percent), Length(50.0, Percent)); } | 1648 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0,
Percent), Length(50.0, Percent)); } |
1656 static EDisplay initialDisplay() { return INLINE; } | 1649 static EDisplay initialDisplay() { return INLINE; } |
1657 static EEmptyCell initialEmptyCells() { return SHOW; } | 1650 static EEmptyCell initialEmptyCells() { return SHOW; } |
1658 static EFloat initialFloating() { return NoFloat; } | 1651 static EFloat initialFloating() { return NoFloat; } |
1659 static EListStylePosition initialListStylePosition() { return OUTSIDE; } | 1652 static EListStylePosition initialListStylePosition() { return OUTSIDE; } |
1660 static EListStyleType initialListStyleType() { return Disc; } | 1653 static EListStyleType initialListStyleType() { return Disc; } |
1661 static EOverflow initialOverflowX() { return OVISIBLE; } | 1654 static EOverflow initialOverflowX() { return OVISIBLE; } |
1662 static EOverflow initialOverflowY() { return OVISIBLE; } | 1655 static EOverflow initialOverflowY() { return OVISIBLE; } |
1663 static EPageBreak initialPageBreak() { return PBAUTO; } | 1656 static EBreak initialBreakAfter() { return BreakAuto; } |
| 1657 static EBreak initialBreakBefore() { return BreakAuto; } |
| 1658 static EBreak initialBreakInside() { return BreakAuto; } |
1664 static EPosition initialPosition() { return StaticPosition; } | 1659 static EPosition initialPosition() { return StaticPosition; } |
1665 static ETableLayout initialTableLayout() { return TAUTO; } | 1660 static ETableLayout initialTableLayout() { return TAUTO; } |
1666 static EUnicodeBidi initialUnicodeBidi() { return UBNormal; } | 1661 static EUnicodeBidi initialUnicodeBidi() { return UBNormal; } |
1667 static ETextTransform initialTextTransform() { return TTNONE; } | 1662 static ETextTransform initialTextTransform() { return TTNONE; } |
1668 static EVisibility initialVisibility() { return VISIBLE; } | 1663 static EVisibility initialVisibility() { return VISIBLE; } |
1669 static EWhiteSpace initialWhiteSpace() { return NORMAL; } | 1664 static EWhiteSpace initialWhiteSpace() { return NORMAL; } |
1670 static short initialHorizontalBorderSpacing() { return 0; } | 1665 static short initialHorizontalBorderSpacing() { return 0; } |
1671 static short initialVerticalBorderSpacing() { return 0; } | 1666 static short initialVerticalBorderSpacing() { return 0; } |
1672 static ECursor initialCursor() { return CURSOR_AUTO; } | 1667 static ECursor initialCursor() { return CURSOR_AUTO; } |
1673 static Color initialColor() { return Color::black; } | 1668 static Color initialColor() { return Color::black; } |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2018 } | 2013 } |
2019 | 2014 |
2020 inline bool ComputedStyle::hasPseudoElementStyle() const | 2015 inline bool ComputedStyle::hasPseudoElementStyle() const |
2021 { | 2016 { |
2022 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 2017 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; |
2023 } | 2018 } |
2024 | 2019 |
2025 } // namespace blink | 2020 } // namespace blink |
2026 | 2021 |
2027 #endif // ComputedStyle_h | 2022 #endif // ComputedStyle_h |
OLD | NEW |