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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // FIXME: When we stop resolving currentColor at style time, these can be re
moved. | 136 // FIXME: When we stop resolving currentColor at style time, these can be re
moved. |
137 friend class CSSToStyleMap; | 137 friend class CSSToStyleMap; |
138 friend class FilterOperationResolver; | 138 friend class FilterOperationResolver; |
139 friend class StyleBuilderConverter; | 139 friend class StyleBuilderConverter; |
140 friend class StyleResolverState; | 140 friend class StyleResolverState; |
141 friend class StyleResolver; | 141 friend class StyleResolver; |
142 protected: | 142 protected: |
143 | 143 |
144 // non-inherited attributes | 144 // non-inherited attributes |
145 DataRef<StyleBoxData> m_box; | 145 DataRef<StyleBoxData> m_box; |
146 DataRef<StyleVisualData> visual; | 146 DataRef<StyleVisualData> m_visual; |
147 DataRef<StyleBackgroundData> m_background; | 147 DataRef<StyleBackgroundData> m_background; |
148 DataRef<StyleSurroundData> surround; | 148 DataRef<StyleSurroundData> m_surround; |
149 DataRef<StyleRareNonInheritedData> rareNonInheritedData; | 149 DataRef<StyleRareNonInheritedData> m_rareNonInheritedData; |
150 | 150 |
151 // inherited attributes | 151 // inherited attributes |
152 DataRef<StyleRareInheritedData> rareInheritedData; | 152 DataRef<StyleRareInheritedData> m_rareInheritedData; |
153 DataRef<StyleInheritedData> inherited; | 153 DataRef<StyleInheritedData> m_styleInheritedData; |
154 | 154 |
155 // list of associated pseudo styles | 155 // list of associated pseudo styles |
156 std::unique_ptr<PseudoStyleCache> m_cachedPseudoStyles; | 156 std::unique_ptr<PseudoStyleCache> m_cachedPseudoStyles; |
157 | 157 |
158 DataRef<SVGComputedStyle> m_svgStyle; | 158 DataRef<SVGComputedStyle> m_svgStyle; |
159 | 159 |
160 // !START SYNC!: Keep this in sync with the copy constructor in ComputedStyle.cp
p and implicitlyInherited() in StyleResolver.cpp | 160 // !START SYNC!: Keep this in sync with the copy constructor in ComputedStyle.cp
p and implicitlyInherited() in StyleResolver.cpp |
161 | 161 |
162 // inherit | 162 // inherit |
163 struct InheritedData { | 163 struct InheritedData { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 202 |
203 // non CSS2 inherited | 203 // non CSS2 inherited |
204 unsigned m_rtlOrdering : 1; // Order | 204 unsigned m_rtlOrdering : 1; // Order |
205 unsigned m_printColorAdjust : PrintColorAdjustBits; | 205 unsigned m_printColorAdjust : PrintColorAdjustBits; |
206 unsigned m_pointerEvents : 4; // EPointerEvents | 206 unsigned m_pointerEvents : 4; // EPointerEvents |
207 unsigned m_insideLink : 2; // EInsideLink | 207 unsigned m_insideLink : 2; // EInsideLink |
208 | 208 |
209 // CSS Text Layout Module Level 3: Vertical writing support | 209 // CSS Text Layout Module Level 3: Vertical writing support |
210 unsigned m_writingMode : 2; // WritingMode | 210 unsigned m_writingMode : 2; // WritingMode |
211 // 42 bits | 211 // 42 bits |
212 } inherited_data; | 212 } m_inheritedData; |
213 | 213 |
214 // don't inherit | 214 // don't inherit |
215 struct NonInheritedData { | 215 struct NonInheritedData { |
216 // Compare computed styles, differences in other flags should not cause
an inequality. | 216 // Compare computed styles, differences in other flags should not cause
an inequality. |
217 bool operator==(const NonInheritedData& other) const | 217 bool operator==(const NonInheritedData& other) const |
218 { | 218 { |
219 return m_effectiveDisplay == other.m_effectiveDisplay | 219 return m_effectiveDisplay == other.m_effectiveDisplay |
220 && m_originalDisplay == other.m_originalDisplay | 220 && m_originalDisplay == other.m_originalDisplay |
221 && m_overflowX == other.m_overflowX | 221 && m_overflowX == other.m_overflowX |
222 && m_overflowY == other.m_overflowY | 222 && m_overflowY == other.m_overflowY |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 unsigned m_affectedByActive : 1; | 278 unsigned m_affectedByActive : 1; |
279 unsigned m_affectedByDrag : 1; | 279 unsigned m_affectedByDrag : 1; |
280 | 280 |
281 // 64 bits | 281 // 64 bits |
282 | 282 |
283 unsigned m_isLink : 1; | 283 unsigned m_isLink : 1; |
284 | 284 |
285 mutable unsigned m_hasRemUnits : 1; | 285 mutable unsigned m_hasRemUnits : 1; |
286 // If you add more style bits here, you will also need to update Compute
dStyle::copyNonInheritedFromCached() | 286 // If you add more style bits here, you will also need to update Compute
dStyle::copyNonInheritedFromCached() |
287 // 66 bits | 287 // 66 bits |
288 } noninherited_data; | 288 } m_nonInheritedData; |
289 | 289 |
290 // !END SYNC! | 290 // !END SYNC! |
291 | 291 |
292 protected: | 292 protected: |
293 void setBitDefaults() | 293 void setBitDefaults() |
294 { | 294 { |
295 inherited_data.m_emptyCells = initialEmptyCells(); | 295 m_inheritedData.m_emptyCells = initialEmptyCells(); |
296 inherited_data.m_captionSide = initialCaptionSide(); | 296 m_inheritedData.m_captionSide = initialCaptionSide(); |
297 inherited_data.m_listStyleType = initialListStyleType(); | 297 m_inheritedData.m_listStyleType = initialListStyleType(); |
298 inherited_data.m_listStylePosition = initialListStylePosition(); | 298 m_inheritedData.m_listStylePosition = initialListStylePosition(); |
299 inherited_data.m_visibility = initialVisibility(); | 299 m_inheritedData.m_visibility = initialVisibility(); |
300 inherited_data.m_textAlign = initialTextAlign(); | 300 m_inheritedData.m_textAlign = initialTextAlign(); |
301 inherited_data.m_textTransform = initialTextTransform(); | 301 m_inheritedData.m_textTransform = initialTextTransform(); |
302 inherited_data.m_textUnderline = false; | 302 m_inheritedData.m_textUnderline = false; |
303 inherited_data.m_cursorStyle = initialCursor(); | 303 m_inheritedData.m_cursorStyle = initialCursor(); |
304 inherited_data.m_direction = initialDirection(); | 304 m_inheritedData.m_direction = initialDirection(); |
305 inherited_data.m_whiteSpace = initialWhiteSpace(); | 305 m_inheritedData.m_whiteSpace = initialWhiteSpace(); |
306 inherited_data.m_borderCollapse = initialBorderCollapse(); | 306 m_inheritedData.m_borderCollapse = initialBorderCollapse(); |
307 inherited_data.m_rtlOrdering = initialRTLOrdering(); | 307 m_inheritedData.m_rtlOrdering = initialRTLOrdering(); |
308 inherited_data.m_boxDirection = initialBoxDirection(); | 308 m_inheritedData.m_boxDirection = initialBoxDirection(); |
309 inherited_data.m_printColorAdjust = initialPrintColorAdjust(); | 309 m_inheritedData.m_printColorAdjust = initialPrintColorAdjust(); |
310 inherited_data.m_pointerEvents = initialPointerEvents(); | 310 m_inheritedData.m_pointerEvents = initialPointerEvents(); |
311 inherited_data.m_insideLink = NotInsideLink; | 311 m_inheritedData.m_insideLink = NotInsideLink; |
312 inherited_data.m_writingMode = initialWritingMode(); | 312 m_inheritedData.m_writingMode = initialWritingMode(); |
313 | 313 |
314 noninherited_data.m_effectiveDisplay = noninherited_data.m_originalDispl
ay = initialDisplay(); | 314 m_nonInheritedData.m_effectiveDisplay = m_nonInheritedData.m_originalDis
play = initialDisplay(); |
315 noninherited_data.m_overflowX = initialOverflowX(); | 315 m_nonInheritedData.m_overflowX = initialOverflowX(); |
316 noninherited_data.m_overflowY = initialOverflowY(); | 316 m_nonInheritedData.m_overflowY = initialOverflowY(); |
317 noninherited_data.m_verticalAlign = initialVerticalAlign(); | 317 m_nonInheritedData.m_verticalAlign = initialVerticalAlign(); |
318 noninherited_data.m_clear = initialClear(); | 318 m_nonInheritedData.m_clear = initialClear(); |
319 noninherited_data.m_position = initialPosition(); | 319 m_nonInheritedData.m_position = initialPosition(); |
320 noninherited_data.m_floating = initialFloating(); | 320 m_nonInheritedData.m_floating = initialFloating(); |
321 noninherited_data.m_tableLayout = initialTableLayout(); | 321 m_nonInheritedData.m_tableLayout = initialTableLayout(); |
322 noninherited_data.m_unicodeBidi = initialUnicodeBidi(); | 322 m_nonInheritedData.m_unicodeBidi = initialUnicodeBidi(); |
323 noninherited_data.m_breakBefore = initialBreakBefore(); | 323 m_nonInheritedData.m_breakBefore = initialBreakBefore(); |
324 noninherited_data.m_breakAfter = initialBreakAfter(); | 324 m_nonInheritedData.m_breakAfter = initialBreakAfter(); |
325 noninherited_data.m_breakInside = initialBreakInside(); | 325 m_nonInheritedData.m_breakInside = initialBreakInside(); |
326 noninherited_data.m_styleType = PseudoIdNone; | 326 m_nonInheritedData.m_styleType = PseudoIdNone; |
327 noninherited_data.m_pseudoBits = 0; | 327 m_nonInheritedData.m_pseudoBits = 0; |
328 noninherited_data.m_explicitInheritance = false; | 328 m_nonInheritedData.m_explicitInheritance = false; |
329 noninherited_data.m_variableReference = false; | 329 m_nonInheritedData.m_variableReference = false; |
330 noninherited_data.m_unique = false; | 330 m_nonInheritedData.m_unique = false; |
331 noninherited_data.m_emptyState = false; | 331 m_nonInheritedData.m_emptyState = false; |
332 noninherited_data.m_hasViewportUnits = false; | 332 m_nonInheritedData.m_hasViewportUnits = false; |
333 noninherited_data.m_affectedByFocus = false; | 333 m_nonInheritedData.m_affectedByFocus = false; |
334 noninherited_data.m_affectedByHover = false; | 334 m_nonInheritedData.m_affectedByHover = false; |
335 noninherited_data.m_affectedByActive = false; | 335 m_nonInheritedData.m_affectedByActive = false; |
336 noninherited_data.m_affectedByDrag = false; | 336 m_nonInheritedData.m_affectedByDrag = false; |
337 noninherited_data.m_isLink = false; | 337 m_nonInheritedData.m_isLink = false; |
338 noninherited_data.m_hasRemUnits = false; | 338 m_nonInheritedData.m_hasRemUnits = false; |
339 } | 339 } |
340 | 340 |
341 private: | 341 private: |
342 ALWAYS_INLINE ComputedStyle(); | 342 ALWAYS_INLINE ComputedStyle(); |
343 | 343 |
344 enum InitialStyleTag { | 344 enum InitialStyleTag { |
345 InitialStyle | 345 InitialStyle |
346 }; | 346 }; |
347 ALWAYS_INLINE explicit ComputedStyle(InitialStyleTag); | 347 ALWAYS_INLINE explicit ComputedStyle(InitialStyleTag); |
348 ALWAYS_INLINE ComputedStyle(const ComputedStyle&); | 348 ALWAYS_INLINE ComputedStyle(const ComputedStyle&); |
(...skipping 27 matching lines...) Expand all Loading... |
376 StyleDifference visualInvalidationDiff(const ComputedStyle&) const; | 376 StyleDifference visualInvalidationDiff(const ComputedStyle&) const; |
377 | 377 |
378 enum IsAtShadowBoundary { | 378 enum IsAtShadowBoundary { |
379 AtShadowBoundary, | 379 AtShadowBoundary, |
380 NotAtShadowBoundary, | 380 NotAtShadowBoundary, |
381 }; | 381 }; |
382 | 382 |
383 void inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary = No
tAtShadowBoundary); | 383 void inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary = No
tAtShadowBoundary); |
384 void copyNonInheritedFromCached(const ComputedStyle&); | 384 void copyNonInheritedFromCached(const ComputedStyle&); |
385 | 385 |
386 PseudoId styleType() const { return static_cast<PseudoId>(noninherited_data.
m_styleType); } | 386 PseudoId styleType() const { return static_cast<PseudoId>(m_nonInheritedData
.m_styleType); } |
387 void setStyleType(PseudoId styleType) { noninherited_data.m_styleType = styl
eType; } | 387 void setStyleType(PseudoId styleType) { m_nonInheritedData.m_styleType = sty
leType; } |
388 | 388 |
389 ComputedStyle* getCachedPseudoStyle(PseudoId) const; | 389 ComputedStyle* getCachedPseudoStyle(PseudoId) const; |
390 ComputedStyle* addCachedPseudoStyle(PassRefPtr<ComputedStyle>); | 390 ComputedStyle* addCachedPseudoStyle(PassRefPtr<ComputedStyle>); |
391 void removeCachedPseudoStyle(PseudoId); | 391 void removeCachedPseudoStyle(PseudoId); |
392 | 392 |
393 const PseudoStyleCache* cachedPseudoStyles() const { return m_cachedPseudoSt
yles.get(); } | 393 const PseudoStyleCache* cachedPseudoStyles() const { return m_cachedPseudoSt
yles.get(); } |
394 | 394 |
395 void setHasViewportUnits(bool hasViewportUnits = true) const { noninherited_
data.m_hasViewportUnits = hasViewportUnits; } | 395 void setHasViewportUnits(bool hasViewportUnits = true) const { m_nonInherite
dData.m_hasViewportUnits = hasViewportUnits; } |
396 bool hasViewportUnits() const { return noninherited_data.m_hasViewportUnits;
} | 396 bool hasViewportUnits() const { return m_nonInheritedData.m_hasViewportUnits
; } |
397 | 397 |
398 void setHasRemUnits() const { noninherited_data.m_hasRemUnits = true; } | 398 void setHasRemUnits() const { m_nonInheritedData.m_hasRemUnits = true; } |
399 bool hasRemUnits() const { return noninherited_data.m_hasRemUnits; } | 399 bool hasRemUnits() const { return m_nonInheritedData.m_hasRemUnits; } |
400 | 400 |
401 bool affectedByFocus() const { return noninherited_data.m_affectedByFocus; } | 401 bool affectedByFocus() const { return m_nonInheritedData.m_affectedByFocus;
} |
402 bool affectedByHover() const { return noninherited_data.m_affectedByHover; } | 402 bool affectedByHover() const { return m_nonInheritedData.m_affectedByHover;
} |
403 bool affectedByActive() const { return noninherited_data.m_affectedByActive;
} | 403 bool affectedByActive() const { return m_nonInheritedData.m_affectedByActive
; } |
404 bool affectedByDrag() const { return noninherited_data.m_affectedByDrag; } | 404 bool affectedByDrag() const { return m_nonInheritedData.m_affectedByDrag; } |
405 | 405 |
406 void setAffectedByFocus() { noninherited_data.m_affectedByFocus = true; } | 406 void setAffectedByFocus() { m_nonInheritedData.m_affectedByFocus = true; } |
407 void setAffectedByHover() { noninherited_data.m_affectedByHover = true; } | 407 void setAffectedByHover() { m_nonInheritedData.m_affectedByHover = true; } |
408 void setAffectedByActive() { noninherited_data.m_affectedByActive = true; } | 408 void setAffectedByActive() { m_nonInheritedData.m_affectedByActive = true; } |
409 void setAffectedByDrag() { noninherited_data.m_affectedByDrag = true; } | 409 void setAffectedByDrag() { m_nonInheritedData.m_affectedByDrag = true; } |
410 | 410 |
411 bool operator==(const ComputedStyle& other) const; | 411 bool operator==(const ComputedStyle& other) const; |
412 bool operator!=(const ComputedStyle& other) const { return !(*this == other)
; } | 412 bool operator!=(const ComputedStyle& other) const { return !(*this == other)
; } |
413 bool isFloating() const { return noninherited_data.m_floating != NoFloat; } | 413 bool isFloating() const { return m_nonInheritedData.m_floating != NoFloat; } |
414 bool hasMargin() const { return surround->margin.nonZero(); } | 414 bool hasMargin() const { return m_surround->margin.nonZero(); } |
415 bool hasBorderFill() const { return surround->border.hasBorderFill(); } | 415 bool hasBorderFill() const { return m_surround->border.hasBorderFill(); } |
416 bool hasBorder() const { return surround->border.hasBorder(); } | 416 bool hasBorder() const { return m_surround->border.hasBorder(); } |
417 bool hasBorderDecoration() const { return hasBorder() || hasBorderFill(); } | 417 bool hasBorderDecoration() const { return hasBorder() || hasBorderFill(); } |
418 bool hasPadding() const { return surround->padding.nonZero(); } | 418 bool hasPadding() const { return m_surround->padding.nonZero(); } |
419 bool hasMarginBeforeQuirk() const { return marginBefore().quirk(); } | 419 bool hasMarginBeforeQuirk() const { return marginBefore().quirk(); } |
420 bool hasMarginAfterQuirk() const { return marginAfter().quirk(); } | 420 bool hasMarginAfterQuirk() const { return marginAfter().quirk(); } |
421 | 421 |
422 bool hasBackgroundImage() const { return m_background->background().hasImage
(); } | 422 bool hasBackgroundImage() const { return m_background->background().hasImage
(); } |
423 bool hasFixedBackgroundImage() const { return m_background->background().has
FixedImage(); } | 423 bool hasFixedBackgroundImage() const { return m_background->background().has
FixedImage(); } |
424 | 424 |
425 bool hasEntirelyFixedBackground() const; | 425 bool hasEntirelyFixedBackground() const; |
426 | 426 |
427 bool hasAppearance() const { return appearance() != NoControlPart; } | 427 bool hasAppearance() const { return appearance() != NoControlPart; } |
428 | 428 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 // of creating stacking contexts. | 461 // of creating stacking contexts. |
462 bool hasNonInitialOpacity() const { return hasOpacity() || hasWillChangeOpac
ityHint() || hasCurrentOpacityAnimation(); } | 462 bool hasNonInitialOpacity() const { return hasOpacity() || hasWillChangeOpac
ityHint() || hasCurrentOpacityAnimation(); } |
463 | 463 |
464 // Returns whether this style contains any grouping property as defined by [
css-transforms]. | 464 // Returns whether this style contains any grouping property as defined by [
css-transforms]. |
465 // The main purpose of this is to adjust the used value of transform-style p
roperty. | 465 // The main purpose of this is to adjust the used value of transform-style p
roperty. |
466 // Note: We currently don't include every grouping property on the spec to m
aintain | 466 // Note: We currently don't include every grouping property on the spec to m
aintain |
467 // backward compatibility. | 467 // backward compatibility. |
468 // [css-transforms] https://drafts.csswg.org/css-transforms/#grouping-proper
ty-values | 468 // [css-transforms] https://drafts.csswg.org/css-transforms/#grouping-proper
ty-values |
469 bool hasGroupingProperty() const { return !isOverflowVisible() || hasFilterI
nducingProperty() || hasNonInitialOpacity(); } | 469 bool hasGroupingProperty() const { return !isOverflowVisible() || hasFilterI
nducingProperty() || hasNonInitialOpacity(); } |
470 | 470 |
471 Order rtlOrdering() const { return static_cast<Order>(inherited_data.m_rtlOr
dering); } | 471 Order rtlOrdering() const { return static_cast<Order>(m_inheritedData.m_rtlO
rdering); } |
472 void setRTLOrdering(Order o) { inherited_data.m_rtlOrdering = o; } | 472 void setRTLOrdering(Order o) { m_inheritedData.m_rtlOrdering = o; } |
473 | 473 |
474 bool isStyleAvailable() const; | 474 bool isStyleAvailable() const; |
475 | 475 |
476 bool hasAnyPublicPseudoStyles() const; | 476 bool hasAnyPublicPseudoStyles() const; |
477 bool hasPseudoStyle(PseudoId) const; | 477 bool hasPseudoStyle(PseudoId) const; |
478 void setHasPseudoStyle(PseudoId); | 478 void setHasPseudoStyle(PseudoId); |
479 bool hasUniquePseudoStyle() const; | 479 bool hasUniquePseudoStyle() const; |
480 bool hasPseudoElementStyle() const; | 480 bool hasPseudoElementStyle() const; |
481 | 481 |
482 bool canContainAbsolutePositionObjects() const { return position() != Static
Position; } | 482 bool canContainAbsolutePositionObjects() const { return position() != Static
Position; } |
483 bool canContainFixedPositionObjects() const { return hasTransformRelatedProp
erty() || containsPaint();} | 483 bool canContainFixedPositionObjects() const { return hasTransformRelatedProp
erty() || containsPaint();} |
484 | 484 |
485 // attribute getter methods | 485 // attribute getter methods |
486 | 486 |
487 EDisplay display() const { return static_cast<EDisplay>(noninherited_data.m_
effectiveDisplay); } | 487 EDisplay display() const { return static_cast<EDisplay>(m_nonInheritedData.m
_effectiveDisplay); } |
488 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited
_data.m_originalDisplay); } | 488 EDisplay originalDisplay() const { return static_cast<EDisplay>(m_nonInherit
edData.m_originalDisplay); } |
489 | 489 |
490 const Length& left() const { return surround->offset.left(); } | 490 const Length& left() const { return m_surround->offset.left(); } |
491 const Length& right() const { return surround->offset.right(); } | 491 const Length& right() const { return m_surround->offset.right(); } |
492 const Length& top() const { return surround->offset.top(); } | 492 const Length& top() const { return m_surround->offset.top(); } |
493 const Length& bottom() const { return surround->offset.bottom(); } | 493 const Length& bottom() const { return m_surround->offset.bottom(); } |
494 | 494 |
495 // Accessors for positioned object edges that take into account writing mode
. | 495 // Accessors for positioned object edges that take into account writing mode
. |
496 const Length& logicalLeft() const { return surround->offset.logicalLeft(getW
ritingMode()); } | 496 const Length& logicalLeft() const { return m_surround->offset.logicalLeft(ge
tWritingMode()); } |
497 const Length& logicalRight() const { return surround->offset.logicalRight(ge
tWritingMode()); } | 497 const Length& logicalRight() const { return m_surround->offset.logicalRight(
getWritingMode()); } |
498 const Length& logicalTop() const { return surround->offset.before(getWriting
Mode()); } | 498 const Length& logicalTop() const { return m_surround->offset.before(getWriti
ngMode()); } |
499 const Length& logicalBottom() const { return surround->offset.after(getWriti
ngMode()); } | 499 const Length& logicalBottom() const { return m_surround->offset.after(getWri
tingMode()); } |
500 | 500 |
501 // Whether or not a positioned element requires normal flow x/y to be comput
ed | 501 // Whether or not a positioned element requires normal flow x/y to be comput
ed |
502 // to determine its position. | 502 // to determine its position. |
503 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } | 503 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } |
504 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } | 504 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } |
505 bool hasStaticInlinePosition(bool horizontal) const { return horizontal ? ha
sAutoLeftAndRight() : hasAutoTopAndBottom(); } | 505 bool hasStaticInlinePosition(bool horizontal) const { return horizontal ? ha
sAutoLeftAndRight() : hasAutoTopAndBottom(); } |
506 bool hasStaticBlockPosition(bool horizontal) const { return horizontal ? has
AutoTopAndBottom() : hasAutoLeftAndRight(); } | 506 bool hasStaticBlockPosition(bool horizontal) const { return horizontal ? has
AutoTopAndBottom() : hasAutoLeftAndRight(); } |
507 | 507 |
508 EPosition position() const { return static_cast<EPosition>(noninherited_data
.m_position); } | 508 EPosition position() const { return static_cast<EPosition>(m_nonInheritedDat
a.m_position); } |
509 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition ||
position() == FixedPosition; } | 509 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition ||
position() == FixedPosition; } |
510 bool hasInFlowPosition() const { return position() == RelativePosition || po
sition() == StickyPosition; } | 510 bool hasInFlowPosition() const { return position() == RelativePosition || po
sition() == StickyPosition; } |
511 bool hasViewportConstrainedPosition() const { return position() == FixedPosi
tion || position() == StickyPosition; } | 511 bool hasViewportConstrainedPosition() const { return position() == FixedPosi
tion || position() == StickyPosition; } |
512 EFloat floating() const { return static_cast<EFloat>(noninherited_data.m_flo
ating); } | 512 EFloat floating() const { return static_cast<EFloat>(m_nonInheritedData.m_fl
oating); } |
513 | 513 |
514 const Length& width() const { return m_box->width(); } | 514 const Length& width() const { return m_box->width(); } |
515 const Length& height() const { return m_box->height(); } | 515 const Length& height() const { return m_box->height(); } |
516 const Length& minWidth() const { return m_box->minWidth(); } | 516 const Length& minWidth() const { return m_box->minWidth(); } |
517 const Length& maxWidth() const { return m_box->maxWidth(); } | 517 const Length& maxWidth() const { return m_box->maxWidth(); } |
518 const Length& minHeight() const { return m_box->minHeight(); } | 518 const Length& minHeight() const { return m_box->minHeight(); } |
519 const Length& maxHeight() const { return m_box->maxHeight(); } | 519 const Length& maxHeight() const { return m_box->maxHeight(); } |
520 | 520 |
521 const Length& logicalWidth() const { return isHorizontalWritingMode() ? widt
h() : height(); } | 521 const Length& logicalWidth() const { return isHorizontalWritingMode() ? widt
h() : height(); } |
522 const Length& logicalHeight() const { return isHorizontalWritingMode() ? hei
ght() : width(); } | 522 const Length& logicalHeight() const { return isHorizontalWritingMode() ? hei
ght() : width(); } |
523 const Length& logicalMinWidth() const { return isHorizontalWritingMode() ? m
inWidth() : minHeight(); } | 523 const Length& logicalMinWidth() const { return isHorizontalWritingMode() ? m
inWidth() : minHeight(); } |
524 const Length& logicalMaxWidth() const { return isHorizontalWritingMode() ? m
axWidth() : maxHeight(); } | 524 const Length& logicalMaxWidth() const { return isHorizontalWritingMode() ? m
axWidth() : maxHeight(); } |
525 const Length& logicalMinHeight() const { return isHorizontalWritingMode() ?
minHeight() : minWidth(); } | 525 const Length& logicalMinHeight() const { return isHorizontalWritingMode() ?
minHeight() : minWidth(); } |
526 const Length& logicalMaxHeight() const { return isHorizontalWritingMode() ?
maxHeight() : maxWidth(); } | 526 const Length& logicalMaxHeight() const { return isHorizontalWritingMode() ?
maxHeight() : maxWidth(); } |
527 | 527 |
528 const BorderData& border() const { return surround->border; } | 528 const BorderData& border() const { return m_surround->border; } |
529 const BorderValue& borderLeft() const { return surround->border.left(); } | 529 const BorderValue& borderLeft() const { return m_surround->border.left(); } |
530 const BorderValue& borderRight() const { return surround->border.right(); } | 530 const BorderValue& borderRight() const { return m_surround->border.right();
} |
531 const BorderValue& borderTop() const { return surround->border.top(); } | 531 const BorderValue& borderTop() const { return m_surround->border.top(); } |
532 const BorderValue& borderBottom() const { return surround->border.bottom();
} | 532 const BorderValue& borderBottom() const { return m_surround->border.bottom()
; } |
533 | 533 |
534 const BorderValue& borderBefore() const; | 534 const BorderValue& borderBefore() const; |
535 const BorderValue& borderAfter() const; | 535 const BorderValue& borderAfter() const; |
536 const BorderValue& borderStart() const; | 536 const BorderValue& borderStart() const; |
537 const BorderValue& borderEnd() const; | 537 const BorderValue& borderEnd() const; |
538 | 538 |
539 const NinePieceImage& borderImage() const { return surround->border.image();
} | 539 const NinePieceImage& borderImage() const { return m_surround->border.image(
); } |
540 StyleImage* borderImageSource() const { return surround->border.image().imag
e(); } | 540 StyleImage* borderImageSource() const { return m_surround->border.image().im
age(); } |
541 const LengthBox& borderImageSlices() const { return surround->border.image()
.imageSlices(); } | 541 const LengthBox& borderImageSlices() const { return m_surround->border.image
().imageSlices(); } |
542 bool borderImageSlicesFill() const { return surround->border.image().fill();
} | 542 bool borderImageSlicesFill() const { return m_surround->border.image().fill(
); } |
543 const BorderImageLengthBox& borderImageWidth() const { return surround->bord
er.image().borderSlices(); } | 543 const BorderImageLengthBox& borderImageWidth() const { return m_surround->bo
rder.image().borderSlices(); } |
544 const BorderImageLengthBox& borderImageOutset() const { return surround->bor
der.image().outset(); } | 544 const BorderImageLengthBox& borderImageOutset() const { return m_surround->b
order.image().outset(); } |
545 | 545 |
546 const LengthSize& borderTopLeftRadius() const { return surround->border.topL
eft(); } | 546 const LengthSize& borderTopLeftRadius() const { return m_surround->border.to
pLeft(); } |
547 const LengthSize& borderTopRightRadius() const { return surround->border.top
Right(); } | 547 const LengthSize& borderTopRightRadius() const { return m_surround->border.t
opRight(); } |
548 const LengthSize& borderBottomLeftRadius() const { return surround->border.b
ottomLeft(); } | 548 const LengthSize& borderBottomLeftRadius() const { return m_surround->border
.bottomLeft(); } |
549 const LengthSize& borderBottomRightRadius() const { return surround->border.
bottomRight(); } | 549 const LengthSize& borderBottomRightRadius() const { return m_surround->borde
r.bottomRight(); } |
550 bool hasBorderRadius() const { return surround->border.hasBorderRadius(); } | 550 bool hasBorderRadius() const { return m_surround->border.hasBorderRadius();
} |
551 | 551 |
552 int borderLeftWidth() const { return surround->border.borderLeftWidth(); } | 552 int borderLeftWidth() const { return m_surround->border.borderLeftWidth(); } |
553 EBorderStyle borderLeftStyle() const { return surround->border.left().style(
); } | 553 EBorderStyle borderLeftStyle() const { return m_surround->border.left().styl
e(); } |
554 int borderRightWidth() const { return surround->border.borderRightWidth(); } | 554 int borderRightWidth() const { return m_surround->border.borderRightWidth();
} |
555 EBorderStyle borderRightStyle() const { return surround->border.right().styl
e(); } | 555 EBorderStyle borderRightStyle() const { return m_surround->border.right().st
yle(); } |
556 int borderTopWidth() const { return surround->border.borderTopWidth(); } | 556 int borderTopWidth() const { return m_surround->border.borderTopWidth(); } |
557 EBorderStyle borderTopStyle() const { return surround->border.top().style();
} | 557 EBorderStyle borderTopStyle() const { return m_surround->border.top().style(
); } |
558 int borderBottomWidth() const { return surround->border.borderBottomWidth();
} | 558 int borderBottomWidth() const { return m_surround->border.borderBottomWidth(
); } |
559 EBorderStyle borderBottomStyle() const { return surround->border.bottom().st
yle(); } | 559 EBorderStyle borderBottomStyle() const { return m_surround->border.bottom().
style(); } |
560 | 560 |
561 int borderBeforeWidth() const; | 561 int borderBeforeWidth() const; |
562 int borderAfterWidth() const; | 562 int borderAfterWidth() const; |
563 int borderStartWidth() const; | 563 int borderStartWidth() const; |
564 int borderEndWidth() const; | 564 int borderEndWidth() const; |
565 int borderOverWidth() const; | 565 int borderOverWidth() const; |
566 int borderUnderWidth() const; | 566 int borderUnderWidth() const; |
567 | 567 |
568 int outlineWidth() const | 568 int outlineWidth() const |
569 { | 569 { |
570 if (m_background->outline().style() == BorderStyleNone) | 570 if (m_background->outline().style() == BorderStyleNone) |
571 return 0; | 571 return 0; |
572 return m_background->outline().width(); | 572 return m_background->outline().width(); |
573 } | 573 } |
574 bool hasOutline() const { return outlineWidth() > 0 && outlineStyle() > Bord
erStyleHidden; } | 574 bool hasOutline() const { return outlineWidth() > 0 && outlineStyle() > Bord
erStyleHidden; } |
575 EBorderStyle outlineStyle() const { return m_background->outline().style();
} | 575 EBorderStyle outlineStyle() const { return m_background->outline().style();
} |
576 OutlineIsAuto outlineStyleIsAuto() const { return static_cast<OutlineIsAuto>
(m_background->outline().isAuto()); } | 576 OutlineIsAuto outlineStyleIsAuto() const { return static_cast<OutlineIsAuto>
(m_background->outline().isAuto()); } |
577 int outlineOutsetExtent() const; | 577 int outlineOutsetExtent() const; |
578 | 578 |
579 EOverflow overflowX() const { return static_cast<EOverflow>(noninherited_dat
a.m_overflowX); } | 579 EOverflow overflowX() const { return static_cast<EOverflow>(m_nonInheritedDa
ta.m_overflowX); } |
580 EOverflow overflowY() const { return static_cast<EOverflow>(noninherited_dat
a.m_overflowY); } | 580 EOverflow overflowY() const { return static_cast<EOverflow>(m_nonInheritedDa
ta.m_overflowY); } |
581 // It's sufficient to just check one direction, since it's illegal to have v
isible on only one overflow value. | 581 // It's sufficient to just check one direction, since it's illegal to have v
isible on only one overflow value. |
582 bool isOverflowVisible() const { ASSERT(overflowX() != OverflowVisible || ov
erflowX() == overflowY()); return overflowX() == OverflowVisible; } | 582 bool isOverflowVisible() const { ASSERT(overflowX() != OverflowVisible || ov
erflowX() == overflowY()); return overflowX() == OverflowVisible; } |
583 bool isOverflowPaged() const { return overflowY() == OverflowPagedX || overf
lowY() == OverflowPagedY; } | 583 bool isOverflowPaged() const { return overflowY() == OverflowPagedX || overf
lowY() == OverflowPagedY; } |
584 | 584 |
585 EVisibility visibility() const { return static_cast<EVisibility>(inherited_d
ata.m_visibility); } | 585 EVisibility visibility() const { return static_cast<EVisibility>(m_inherited
Data.m_visibility); } |
586 EVerticalAlign verticalAlign() const { return static_cast<EVerticalAlign>(no
ninherited_data.m_verticalAlign); } | 586 EVerticalAlign verticalAlign() const { return static_cast<EVerticalAlign>(m_
nonInheritedData.m_verticalAlign); } |
587 const Length& getVerticalAlignLength() const { return m_box->verticalAlign()
; } | 587 const Length& getVerticalAlignLength() const { return m_box->verticalAlign()
; } |
588 | 588 |
589 const Length& clipLeft() const { return visual->clip.left(); } | 589 const Length& clipLeft() const { return m_visual->clip.left(); } |
590 const Length& clipRight() const { return visual->clip.right(); } | 590 const Length& clipRight() const { return m_visual->clip.right(); } |
591 const Length& clipTop() const { return visual->clip.top(); } | 591 const Length& clipTop() const { return m_visual->clip.top(); } |
592 const Length& clipBottom() const { return visual->clip.bottom(); } | 592 const Length& clipBottom() const { return m_visual->clip.bottom(); } |
593 const LengthBox& clip() const { return visual->clip; } | 593 const LengthBox& clip() const { return m_visual->clip; } |
594 bool hasAutoClip() const { return visual->hasAutoClip; } | 594 bool hasAutoClip() const { return m_visual->hasAutoClip; } |
595 | 595 |
596 EUnicodeBidi unicodeBidi() const { return static_cast<EUnicodeBidi>(noninher
ited_data.m_unicodeBidi); } | 596 EUnicodeBidi unicodeBidi() const { return static_cast<EUnicodeBidi>(m_nonInh
eritedData.m_unicodeBidi); } |
597 | 597 |
598 EClear clear() const { return static_cast<EClear>(noninherited_data.m_clear)
; } | 598 EClear clear() const { return static_cast<EClear>(m_nonInheritedData.m_clear
); } |
599 ETableLayout tableLayout() const { return static_cast<ETableLayout>(noninher
ited_data.m_tableLayout); } | 599 ETableLayout tableLayout() const { return static_cast<ETableLayout>(m_nonInh
eritedData.m_tableLayout); } |
600 bool isFixedTableLayout() const { return tableLayout() == TableLayoutFixed &
& !logicalWidth().isAuto(); } | 600 bool isFixedTableLayout() const { return tableLayout() == TableLayoutFixed &
& !logicalWidth().isAuto(); } |
601 | 601 |
602 const Font& font() const; | 602 const Font& font() const; |
603 const FontMetrics& getFontMetrics() const; | 603 const FontMetrics& getFontMetrics() const; |
604 const FontDescription& getFontDescription() const; | 604 const FontDescription& getFontDescription() const; |
605 float specifiedFontSize() const; | 605 float specifiedFontSize() const; |
606 float computedFontSize() const; | 606 float computedFontSize() const; |
607 int fontSize() const; | 607 int fontSize() const; |
608 float fontSizeAdjust() const; | 608 float fontSizeAdjust() const; |
609 bool hasFontSizeAdjust() const; | 609 bool hasFontSizeAdjust() const; |
610 FontWeight fontWeight() const; | 610 FontWeight fontWeight() const; |
611 FontStretch fontStretch() const; | 611 FontStretch fontStretch() const; |
612 | 612 |
613 float textAutosizingMultiplier() const { return inherited->textAutosizingMul
tiplier; } | 613 float textAutosizingMultiplier() const { return m_styleInheritedData->textAu
tosizingMultiplier; } |
614 | 614 |
615 const Length& textIndent() const { return rareInheritedData->indent; } | 615 const Length& textIndent() const { return m_rareInheritedData->indent; } |
616 TextIndentLine getTextIndentLine() const { return static_cast<TextIndentLine
>(rareInheritedData->m_textIndentLine); } | 616 TextIndentLine getTextIndentLine() const { return static_cast<TextIndentLine
>(m_rareInheritedData->m_textIndentLine); } |
617 TextIndentType getTextIndentType() const { return static_cast<TextIndentType
>(rareInheritedData->m_textIndentType); } | 617 TextIndentType getTextIndentType() const { return static_cast<TextIndentType
>(m_rareInheritedData->m_textIndentType); } |
618 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_data
.m_textAlign); } | 618 ETextAlign textAlign() const { return static_cast<ETextAlign>(m_inheritedDat
a.m_textAlign); } |
619 TextAlignLast getTextAlignLast() const { return static_cast<TextAlignLast>(r
areInheritedData->m_textAlignLast); } | 619 TextAlignLast getTextAlignLast() const { return static_cast<TextAlignLast>(m
_rareInheritedData->m_textAlignLast); } |
620 TextJustify getTextJustify() const { return static_cast<TextJustify>(rareInh
eritedData->m_textJustify); } | 620 TextJustify getTextJustify() const { return static_cast<TextJustify>(m_rareI
nheritedData->m_textJustify); } |
621 ETextTransform textTransform() const { return static_cast<ETextTransform>(in
herited_data.m_textTransform); } | 621 ETextTransform textTransform() const { return static_cast<ETextTransform>(m_
inheritedData.m_textTransform); } |
622 TextDecoration textDecorationsInEffect() const; | 622 TextDecoration textDecorationsInEffect() const; |
623 const Vector<AppliedTextDecoration>& appliedTextDecorations() const; | 623 const Vector<AppliedTextDecoration>& appliedTextDecorations() const; |
624 TextDecoration getTextDecoration() const { return static_cast<TextDecoration
>(visual->textDecoration); } | 624 TextDecoration getTextDecoration() const { return static_cast<TextDecoration
>(m_visual->textDecoration); } |
625 TextUnderlinePosition getTextUnderlinePosition() const { return static_cast<
TextUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); } | 625 TextUnderlinePosition getTextUnderlinePosition() const { return static_cast<
TextUnderlinePosition>(m_rareInheritedData->m_textUnderlinePosition); } |
626 TextDecorationStyle getTextDecorationStyle() const { return static_cast<Text
DecorationStyle>(rareNonInheritedData->m_textDecorationStyle); } | 626 TextDecorationStyle getTextDecorationStyle() const { return static_cast<Text
DecorationStyle>(m_rareNonInheritedData->m_textDecorationStyle); } |
627 float wordSpacing() const; | 627 float wordSpacing() const; |
628 float letterSpacing() const; | 628 float letterSpacing() const; |
629 StyleVariableData* variables() const; | 629 StyleVariableData* variables() const; |
630 | 630 |
631 void setVariable(const AtomicString&, PassRefPtr<CSSVariableData>); | 631 void setVariable(const AtomicString&, PassRefPtr<CSSVariableData>); |
632 void removeVariable(const AtomicString&); | 632 void removeVariable(const AtomicString&); |
633 | 633 |
634 float zoom() const { return visual->m_zoom; } | 634 float zoom() const { return m_visual->m_zoom; } |
635 float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; } | 635 float effectiveZoom() const { return m_rareInheritedData->m_effectiveZoom; } |
636 | 636 |
637 TextDirection direction() const { return static_cast<TextDirection>(inherite
d_data.m_direction); } | 637 TextDirection direction() const { return static_cast<TextDirection>(m_inheri
tedData.m_direction); } |
638 bool isLeftToRightDirection() const { return direction() == LTR; } | 638 bool isLeftToRightDirection() const { return direction() == LTR; } |
639 bool selfOrAncestorHasDirAutoAttribute() const { return rareInheritedData->m
_selfOrAncestorHasDirAutoAttribute; } | 639 bool selfOrAncestorHasDirAutoAttribute() const { return m_rareInheritedData-
>m_selfOrAncestorHasDirAutoAttribute; } |
640 | 640 |
641 const Length& specifiedLineHeight() const; | 641 const Length& specifiedLineHeight() const; |
642 Length lineHeight() const; | 642 Length lineHeight() const; |
643 int computedLineHeight() const; | 643 int computedLineHeight() const; |
644 | 644 |
645 EWhiteSpace whiteSpace() const { return static_cast<EWhiteSpace>(inherited_d
ata.m_whiteSpace); } | 645 EWhiteSpace whiteSpace() const { return static_cast<EWhiteSpace>(m_inherited
Data.m_whiteSpace); } |
646 static bool autoWrap(EWhiteSpace ws) | 646 static bool autoWrap(EWhiteSpace ws) |
647 { | 647 { |
648 // Nowrap and pre don't automatically wrap. | 648 // Nowrap and pre don't automatically wrap. |
649 return ws != NOWRAP && ws != PRE; | 649 return ws != NOWRAP && ws != PRE; |
650 } | 650 } |
651 | 651 |
652 bool autoWrap() const | 652 bool autoWrap() const |
653 { | 653 { |
654 return autoWrap(whiteSpace()); | 654 return autoWrap(whiteSpace()); |
655 } | 655 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 bool breakWords() const | 696 bool breakWords() const |
697 { | 697 { |
698 return (wordBreak() == BreakWordBreak || overflowWrap() == BreakOverflow
Wrap) | 698 return (wordBreak() == BreakWordBreak || overflowWrap() == BreakOverflow
Wrap) |
699 && whiteSpace() != PRE && whiteSpace() != NOWRAP; | 699 && whiteSpace() != PRE && whiteSpace() != NOWRAP; |
700 } | 700 } |
701 | 701 |
702 EFillBox backgroundClip() const { return static_cast<EFillBox>(m_background-
>background().clip()); } | 702 EFillBox backgroundClip() const { return static_cast<EFillBox>(m_background-
>background().clip()); } |
703 FillLayer& accessBackgroundLayers() { return m_background.access()->m_backgr
ound; } | 703 FillLayer& accessBackgroundLayers() { return m_background.access()->m_backgr
ound; } |
704 const FillLayer& backgroundLayers() const { return m_background->background(
); } | 704 const FillLayer& backgroundLayers() const { return m_background->background(
); } |
705 | 705 |
706 StyleImage* maskImage() const { return rareNonInheritedData->m_mask.image();
} | 706 StyleImage* maskImage() const { return m_rareNonInheritedData->m_mask.image(
); } |
707 FillLayer& accessMaskLayers() { return rareNonInheritedData.access()->m_mask
; } | 707 FillLayer& accessMaskLayers() { return m_rareNonInheritedData.access()->m_ma
sk; } |
708 const FillLayer& maskLayers() const { return rareNonInheritedData->m_mask; } | 708 const FillLayer& maskLayers() const { return m_rareNonInheritedData->m_mask;
} |
709 | 709 |
710 const NinePieceImage& maskBoxImage() const { return rareNonInheritedData->m_
maskBoxImage; } | 710 const NinePieceImage& maskBoxImage() const { return m_rareNonInheritedData->
m_maskBoxImage; } |
711 StyleImage* maskBoxImageSource() const { return rareNonInheritedData->m_mask
BoxImage.image(); } | 711 StyleImage* maskBoxImageSource() const { return m_rareNonInheritedData->m_ma
skBoxImage.image(); } |
712 const LengthBox& maskBoxImageSlices() const { return rareNonInheritedData->m
_maskBoxImage.imageSlices(); } | 712 const LengthBox& maskBoxImageSlices() const { return m_rareNonInheritedData-
>m_maskBoxImage.imageSlices(); } |
713 bool maskBoxImageSlicesFill() const { return rareNonInheritedData->m_maskBox
Image.fill(); } | 713 bool maskBoxImageSlicesFill() const { return m_rareNonInheritedData->m_maskB
oxImage.fill(); } |
714 const BorderImageLengthBox& maskBoxImageWidth() const { return rareNonInheri
tedData->m_maskBoxImage.borderSlices(); } | 714 const BorderImageLengthBox& maskBoxImageWidth() const { return m_rareNonInhe
ritedData->m_maskBoxImage.borderSlices(); } |
715 const BorderImageLengthBox& maskBoxImageOutset() const { return rareNonInher
itedData->m_maskBoxImage.outset(); } | 715 const BorderImageLengthBox& maskBoxImageOutset() const { return m_rareNonInh
eritedData->m_maskBoxImage.outset(); } |
716 | 716 |
717 EBorderCollapse borderCollapse() const { return static_cast<EBorderCollapse>
(inherited_data.m_borderCollapse); } | 717 EBorderCollapse borderCollapse() const { return static_cast<EBorderCollapse>
(m_inheritedData.m_borderCollapse); } |
718 short horizontalBorderSpacing() const; | 718 short horizontalBorderSpacing() const; |
719 short verticalBorderSpacing() const; | 719 short verticalBorderSpacing() const; |
720 EEmptyCells emptyCells() const { return static_cast<EEmptyCells>(inherited_d
ata.m_emptyCells); } | 720 EEmptyCells emptyCells() const { return static_cast<EEmptyCells>(m_inherited
Data.m_emptyCells); } |
721 ECaptionSide captionSide() const { return static_cast<ECaptionSide>(inherite
d_data.m_captionSide); } | 721 ECaptionSide captionSide() const { return static_cast<ECaptionSide>(m_inheri
tedData.m_captionSide); } |
722 | 722 |
723 EListStyleType listStyleType() const { return static_cast<EListStyleType>(in
herited_data.m_listStyleType); } | 723 EListStyleType listStyleType() const { return static_cast<EListStyleType>(m_
inheritedData.m_listStyleType); } |
724 StyleImage* listStyleImage() const; | 724 StyleImage* listStyleImage() const; |
725 EListStylePosition listStylePosition() const { return static_cast<EListStyle
Position>(inherited_data.m_listStylePosition); } | 725 EListStylePosition listStylePosition() const { return static_cast<EListStyle
Position>(m_inheritedData.m_listStylePosition); } |
726 | 726 |
727 const Length& marginTop() const { return surround->margin.top(); } | 727 const Length& marginTop() const { return m_surround->margin.top(); } |
728 const Length& marginBottom() const { return surround->margin.bottom(); } | 728 const Length& marginBottom() const { return m_surround->margin.bottom(); } |
729 const Length& marginLeft() const { return surround->margin.left(); } | 729 const Length& marginLeft() const { return m_surround->margin.left(); } |
730 const Length& marginRight() const { return surround->margin.right(); } | 730 const Length& marginRight() const { return m_surround->margin.right(); } |
731 const Length& marginBefore() const { return surround->margin.before(getWriti
ngMode()); } | 731 const Length& marginBefore() const { return m_surround->margin.before(getWri
tingMode()); } |
732 const Length& marginAfter() const { return surround->margin.after(getWriting
Mode()); } | 732 const Length& marginAfter() const { return m_surround->margin.after(getWriti
ngMode()); } |
733 const Length& marginStart() const { return surround->margin.start(getWriting
Mode(), direction()); } | 733 const Length& marginStart() const { return m_surround->margin.start(getWriti
ngMode(), direction()); } |
734 const Length& marginEnd() const { return surround->margin.end(getWritingMode
(), direction()); } | 734 const Length& marginEnd() const { return m_surround->margin.end(getWritingMo
de(), direction()); } |
735 const Length& marginOver() const { return surround->margin.over(getWritingMo
de()); } | 735 const Length& marginOver() const { return m_surround->margin.over(getWriting
Mode()); } |
736 const Length& marginUnder() const { return surround->margin.under(getWriting
Mode()); } | 736 const Length& marginUnder() const { return m_surround->margin.under(getWriti
ngMode()); } |
737 const Length& marginStartUsing(const ComputedStyle* otherStyle) const { retu
rn surround->margin.start(otherStyle->getWritingMode(), otherStyle->direction())
; } | 737 const Length& marginStartUsing(const ComputedStyle* otherStyle) const { retu
rn m_surround->margin.start(otherStyle->getWritingMode(), otherStyle->direction(
)); } |
738 const Length& marginEndUsing(const ComputedStyle* otherStyle) const { return
surround->margin.end(otherStyle->getWritingMode(), otherStyle->direction()); } | 738 const Length& marginEndUsing(const ComputedStyle* otherStyle) const { return
m_surround->margin.end(otherStyle->getWritingMode(), otherStyle->direction());
} |
739 const Length& marginBeforeUsing(const ComputedStyle* otherStyle) const { ret
urn surround->margin.before(otherStyle->getWritingMode()); } | 739 const Length& marginBeforeUsing(const ComputedStyle* otherStyle) const { ret
urn m_surround->margin.before(otherStyle->getWritingMode()); } |
740 const Length& marginAfterUsing(const ComputedStyle* otherStyle) const { retu
rn surround->margin.after(otherStyle->getWritingMode()); } | 740 const Length& marginAfterUsing(const ComputedStyle* otherStyle) const { retu
rn m_surround->margin.after(otherStyle->getWritingMode()); } |
741 | 741 |
742 const LengthBox& paddingBox() const { return surround->padding; } | 742 const LengthBox& paddingBox() const { return m_surround->padding; } |
743 const Length& paddingTop() const { return surround->padding.top(); } | 743 const Length& paddingTop() const { return m_surround->padding.top(); } |
744 const Length& paddingBottom() const { return surround->padding.bottom(); } | 744 const Length& paddingBottom() const { return m_surround->padding.bottom(); } |
745 const Length& paddingLeft() const { return surround->padding.left(); } | 745 const Length& paddingLeft() const { return m_surround->padding.left(); } |
746 const Length& paddingRight() const { return surround->padding.right(); } | 746 const Length& paddingRight() const { return m_surround->padding.right(); } |
747 const Length& paddingBefore() const { return surround->padding.before(getWri
tingMode()); } | 747 const Length& paddingBefore() const { return m_surround->padding.before(getW
ritingMode()); } |
748 const Length& paddingAfter() const { return surround->padding.after(getWriti
ngMode()); } | 748 const Length& paddingAfter() const { return m_surround->padding.after(getWri
tingMode()); } |
749 const Length& paddingStart() const { return surround->padding.start(getWriti
ngMode(), direction()); } | 749 const Length& paddingStart() const { return m_surround->padding.start(getWri
tingMode(), direction()); } |
750 const Length& paddingEnd() const { return surround->padding.end(getWritingMo
de(), direction()); } | 750 const Length& paddingEnd() const { return m_surround->padding.end(getWriting
Mode(), direction()); } |
751 const Length& paddingOver() const { return surround->padding.over(getWriting
Mode()); } | 751 const Length& paddingOver() const { return m_surround->padding.over(getWriti
ngMode()); } |
752 const Length& paddingUnder() const { return surround->padding.under(getWriti
ngMode()); } | 752 const Length& paddingUnder() const { return m_surround->padding.under(getWri
tingMode()); } |
753 | 753 |
754 ECursor cursor() const { return static_cast<ECursor>(inherited_data.m_cursor
Style); } | 754 ECursor cursor() const { return static_cast<ECursor>(m_inheritedData.m_curso
rStyle); } |
755 CursorList* cursors() const { return rareInheritedData->cursorData.get(); } | 755 CursorList* cursors() const { return m_rareInheritedData->cursorData.get();
} |
756 | 756 |
757 EInsideLink insideLink() const { return static_cast<EInsideLink>(inherited_d
ata.m_insideLink); } | 757 EInsideLink insideLink() const { return static_cast<EInsideLink>(m_inherited
Data.m_insideLink); } |
758 bool isLink() const { return noninherited_data.m_isLink; } | 758 bool isLink() const { return m_nonInheritedData.m_isLink; } |
759 | 759 |
760 short widows() const { return rareInheritedData->widows; } | 760 short widows() const { return m_rareInheritedData->widows; } |
761 short orphans() const { return rareInheritedData->orphans; } | 761 short orphans() const { return m_rareInheritedData->orphans; } |
762 EBreak breakAfter() const { return static_cast<EBreak>(noninherited_data.m_b
reakAfter); } | 762 EBreak breakAfter() const { return static_cast<EBreak>(m_nonInheritedData.m_
breakAfter); } |
763 EBreak breakBefore() const { return static_cast<EBreak>(noninherited_data.m_
breakBefore); } | 763 EBreak breakBefore() const { return static_cast<EBreak>(m_nonInheritedData.m
_breakBefore); } |
764 EBreak breakInside() const { return static_cast<EBreak>(noninherited_data.m_
breakInside); } | 764 EBreak breakInside() const { return static_cast<EBreak>(m_nonInheritedData.m
_breakInside); } |
765 | 765 |
766 TextSizeAdjust getTextSizeAdjust() const { return rareInheritedData->m_textS
izeAdjust; } | 766 TextSizeAdjust getTextSizeAdjust() const { return m_rareInheritedData->m_tex
tSizeAdjust; } |
767 | 767 |
768 // CSS3 Getter Methods | 768 // CSS3 Getter Methods |
769 | 769 |
770 int outlineOffset() const | 770 int outlineOffset() const |
771 { | 771 { |
772 if (m_background->outline().style() == BorderStyleNone) | 772 if (m_background->outline().style() == BorderStyleNone) |
773 return 0; | 773 return 0; |
774 return m_background->outline().offset(); | 774 return m_background->outline().offset(); |
775 } | 775 } |
776 | 776 |
777 ShadowList* textShadow() const { return rareInheritedData->textShadow.get();
} | 777 ShadowList* textShadow() const { return m_rareInheritedData->textShadow.get(
); } |
778 | 778 |
779 float textStrokeWidth() const { return rareInheritedData->textStrokeWidth; } | 779 float textStrokeWidth() const { return m_rareInheritedData->textStrokeWidth;
} |
780 float opacity() const { return rareNonInheritedData->opacity; } | 780 float opacity() const { return m_rareNonInheritedData->opacity; } |
781 bool hasOpacity() const { return opacity() < 1.0f; } | 781 bool hasOpacity() const { return opacity() < 1.0f; } |
782 ControlPart appearance() const { return static_cast<ControlPart>(rareNonInhe
ritedData->m_appearance); } | 782 ControlPart appearance() const { return static_cast<ControlPart>(m_rareNonIn
heritedData->m_appearance); } |
783 EBoxAlignment boxAlign() const { return static_cast<EBoxAlignment>(rareNonIn
heritedData->m_deprecatedFlexibleBox->align); } | 783 EBoxAlignment boxAlign() const { return static_cast<EBoxAlignment>(m_rareNon
InheritedData->m_deprecatedFlexibleBox->align); } |
784 EBoxDirection boxDirection() const { return static_cast<EBoxDirection>(inher
ited_data.m_boxDirection); } | 784 EBoxDirection boxDirection() const { return static_cast<EBoxDirection>(m_inh
eritedData.m_boxDirection); } |
785 float boxFlex() const { return rareNonInheritedData->m_deprecatedFlexibleBox
->flex; } | 785 float boxFlex() const { return m_rareNonInheritedData->m_deprecatedFlexibleB
ox->flex; } |
786 unsigned boxFlexGroup() const { return rareNonInheritedData->m_deprecatedFle
xibleBox->flexGroup; } | 786 unsigned boxFlexGroup() const { return m_rareNonInheritedData->m_deprecatedF
lexibleBox->flexGroup; } |
787 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD
ata->m_deprecatedFlexibleBox->lines); } | 787 EBoxLines boxLines() const { return static_cast<EBoxLines>(m_rareNonInherite
dData->m_deprecatedFlexibleBox->lines); } |
788 unsigned boxOrdinalGroup() const { return rareNonInheritedData->m_deprecated
FlexibleBox->ordinalGroup; } | 788 unsigned boxOrdinalGroup() const { return m_rareNonInheritedData->m_deprecat
edFlexibleBox->ordinalGroup; } |
789 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit
edData->m_deprecatedFlexibleBox->orient); } | 789 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(m_rareNonInher
itedData->m_deprecatedFlexibleBox->orient); } |
790 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData
->m_deprecatedFlexibleBox->pack); } | 790 EBoxPack boxPack() const { return static_cast<EBoxPack>(m_rareNonInheritedDa
ta->m_deprecatedFlexibleBox->pack); } |
791 | 791 |
792 int order() const { return rareNonInheritedData->m_order; } | 792 int order() const { return m_rareNonInheritedData->m_order; } |
793 const Vector<String>& callbackSelectors() const { return rareNonInheritedDat
a->m_callbackSelectors; } | 793 const Vector<String>& callbackSelectors() const { return m_rareNonInheritedD
ata->m_callbackSelectors; } |
794 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG
row; } | 794 float flexGrow() const { return m_rareNonInheritedData->m_flexibleBox->m_fle
xGrow; } |
795 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle
xShrink; } | 795 float flexShrink() const { return m_rareNonInheritedData->m_flexibleBox->m_f
lexShrink; } |
796 const Length& flexBasis() const { return rareNonInheritedData->m_flexibleBox
->m_flexBasis; } | 796 const Length& flexBasis() const { return m_rareNonInheritedData->m_flexibleB
ox->m_flexBasis; } |
797 const StyleContentAlignmentData& alignContent() const { return rareNonInheri
tedData->m_alignContent; } | 797 const StyleContentAlignmentData& alignContent() const { return m_rareNonInhe
ritedData->m_alignContent; } |
798 ContentPosition alignContentPosition() const { return rareNonInheritedData->
m_alignContent.position(); } | 798 ContentPosition alignContentPosition() const { return m_rareNonInheritedData
->m_alignContent.position(); } |
799 ContentDistributionType alignContentDistribution() const { return rareNonInh
eritedData->m_alignContent.distribution(); } | 799 ContentDistributionType alignContentDistribution() const { return m_rareNonI
nheritedData->m_alignContent.distribution(); } |
800 OverflowAlignment alignContentOverflowAlignment() const { return rareNonInhe
ritedData->m_alignContent.overflow(); } | 800 OverflowAlignment alignContentOverflowAlignment() const { return m_rareNonIn
heritedData->m_alignContent.overflow(); } |
801 const StyleSelfAlignmentData& alignItems() const { return rareNonInheritedDa
ta->m_alignItems; } | 801 const StyleSelfAlignmentData& alignItems() const { return m_rareNonInherited
Data->m_alignItems; } |
802 ItemPosition alignItemsPosition() const { return rareNonInheritedData->m_ali
gnItems.position(); } | 802 ItemPosition alignItemsPosition() const { return m_rareNonInheritedData->m_a
lignItems.position(); } |
803 OverflowAlignment alignItemsOverflowAlignment() const { return rareNonInheri
tedData->m_alignItems.overflow(); } | 803 OverflowAlignment alignItemsOverflowAlignment() const { return m_rareNonInhe
ritedData->m_alignItems.overflow(); } |
804 const StyleSelfAlignmentData& alignSelf() const { return rareNonInheritedDat
a->m_alignSelf; } | 804 const StyleSelfAlignmentData& alignSelf() const { return m_rareNonInheritedD
ata->m_alignSelf; } |
805 ItemPosition alignSelfPosition() const { return rareNonInheritedData->m_alig
nSelf.position(); } | 805 ItemPosition alignSelfPosition() const { return m_rareNonInheritedData->m_al
ignSelf.position(); } |
806 OverflowAlignment alignSelfOverflowAlignment() const { return rareNonInherit
edData->m_alignSelf.overflow(); } | 806 OverflowAlignment alignSelfOverflowAlignment() const { return m_rareNonInher
itedData->m_alignSelf.overflow(); } |
807 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra
reNonInheritedData->m_flexibleBox->m_flexDirection); } | 807 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(m_
rareNonInheritedData->m_flexibleBox->m_flexDirection); } |
808 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn ||
flexDirection() == FlowColumnReverse; } | 808 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn ||
flexDirection() == FlowColumnReverse; } |
809 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } | 809 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } |
810 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD
ata->m_flexibleBox->m_flexWrap); } | 810 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(m_rareNonInherite
dData->m_flexibleBox->m_flexWrap); } |
811 const StyleContentAlignmentData& justifyContent() const { return rareNonInhe
ritedData->m_justifyContent; } | 811 const StyleContentAlignmentData& justifyContent() const { return m_rareNonIn
heritedData->m_justifyContent; } |
812 ContentPosition justifyContentPosition() const { return rareNonInheritedData
->m_justifyContent.position(); } | 812 ContentPosition justifyContentPosition() const { return m_rareNonInheritedDa
ta->m_justifyContent.position(); } |
813 ContentDistributionType justifyContentDistribution() const { return rareNonI
nheritedData->m_justifyContent.distribution(); } | 813 ContentDistributionType justifyContentDistribution() const { return m_rareNo
nInheritedData->m_justifyContent.distribution(); } |
814 OverflowAlignment justifyContentOverflowAlignment() const { return rareNonIn
heritedData->m_justifyContent.overflow(); } | 814 OverflowAlignment justifyContentOverflowAlignment() const { return m_rareNon
InheritedData->m_justifyContent.overflow(); } |
815 const StyleSelfAlignmentData& justifyItems() const { return rareNonInherited
Data->m_justifyItems; } | 815 const StyleSelfAlignmentData& justifyItems() const { return m_rareNonInherit
edData->m_justifyItems; } |
816 ItemPosition justifyItemsPosition() const { return rareNonInheritedData->m_j
ustifyItems.position(); } | 816 ItemPosition justifyItemsPosition() const { return m_rareNonInheritedData->m
_justifyItems.position(); } |
817 OverflowAlignment justifyItemsOverflowAlignment() const { return rareNonInhe
ritedData->m_justifyItems.overflow(); } | 817 OverflowAlignment justifyItemsOverflowAlignment() const { return m_rareNonIn
heritedData->m_justifyItems.overflow(); } |
818 ItemPositionType justifyItemsPositionType() const { return rareNonInheritedD
ata->m_justifyItems.positionType(); } | 818 ItemPositionType justifyItemsPositionType() const { return m_rareNonInherite
dData->m_justifyItems.positionType(); } |
819 const StyleSelfAlignmentData& justifySelf() const { return rareNonInheritedD
ata->m_justifySelf; } | 819 const StyleSelfAlignmentData& justifySelf() const { return m_rareNonInherite
dData->m_justifySelf; } |
820 ItemPosition justifySelfPosition() const { return rareNonInheritedData->m_ju
stifySelf.position(); } | 820 ItemPosition justifySelfPosition() const { return m_rareNonInheritedData->m_
justifySelf.position(); } |
821 OverflowAlignment justifySelfOverflowAlignment() const { return rareNonInher
itedData->m_justifySelf.overflow(); } | 821 OverflowAlignment justifySelfOverflowAlignment() const { return m_rareNonInh
eritedData->m_justifySelf.overflow(); } |
822 | 822 |
823 const Vector<GridTrackSize>& gridTemplateColumns() const { return rareNonInh
eritedData->m_grid->m_gridTemplateColumns; } | 823 const Vector<GridTrackSize>& gridTemplateColumns() const { return m_rareNonI
nheritedData->m_grid->m_gridTemplateColumns; } |
824 const Vector<GridTrackSize>& gridTemplateRows() const { return rareNonInheri
tedData->m_grid->m_gridTemplateRows; } | 824 const Vector<GridTrackSize>& gridTemplateRows() const { return m_rareNonInhe
ritedData->m_grid->m_gridTemplateRows; } |
825 const Vector<GridTrackSize>& gridAutoRepeatColumns() const { return rareNonI
nheritedData->m_grid->m_gridAutoRepeatColumns; } | 825 const Vector<GridTrackSize>& gridAutoRepeatColumns() const { return m_rareNo
nInheritedData->m_grid->m_gridAutoRepeatColumns; } |
826 const Vector<GridTrackSize>& gridAutoRepeatRows() const { return rareNonInhe
ritedData->m_grid->m_gridAutoRepeatRows; } | 826 const Vector<GridTrackSize>& gridAutoRepeatRows() const { return m_rareNonIn
heritedData->m_grid->m_gridAutoRepeatRows; } |
827 size_t gridAutoRepeatColumnsInsertionPoint() const { return rareNonInherited
Data->m_grid->m_autoRepeatColumnsInsertionPoint; } | 827 size_t gridAutoRepeatColumnsInsertionPoint() const { return m_rareNonInherit
edData->m_grid->m_autoRepeatColumnsInsertionPoint; } |
828 size_t gridAutoRepeatRowsInsertionPoint() const { return rareNonInheritedDat
a->m_grid->m_autoRepeatRowsInsertionPoint; } | 828 size_t gridAutoRepeatRowsInsertionPoint() const { return m_rareNonInheritedD
ata->m_grid->m_autoRepeatRowsInsertionPoint; } |
829 AutoRepeatType gridAutoRepeatColumnsType() const { return rareNonInheritedD
ata->m_grid->m_autoRepeatColumnsType; } | 829 AutoRepeatType gridAutoRepeatColumnsType() const { return m_rareNonInherite
dData->m_grid->m_autoRepeatColumnsType; } |
830 AutoRepeatType gridAutoRepeatRowsType() const { return rareNonInheritedData
->m_grid->m_autoRepeatRowsType; } | 830 AutoRepeatType gridAutoRepeatRowsType() const { return m_rareNonInheritedDa
ta->m_grid->m_autoRepeatRowsType; } |
831 const NamedGridLinesMap& namedGridColumnLines() const { return rareNonInheri
tedData->m_grid->m_namedGridColumnLines; } | 831 const NamedGridLinesMap& namedGridColumnLines() const { return m_rareNonInhe
ritedData->m_grid->m_namedGridColumnLines; } |
832 const NamedGridLinesMap& namedGridRowLines() const { return rareNonInherited
Data->m_grid->m_namedGridRowLines; } | 832 const NamedGridLinesMap& namedGridRowLines() const { return m_rareNonInherit
edData->m_grid->m_namedGridRowLines; } |
833 const OrderedNamedGridLines& orderedNamedGridColumnLines() const { return ra
reNonInheritedData->m_grid->m_orderedNamedGridColumnLines; } | 833 const OrderedNamedGridLines& orderedNamedGridColumnLines() const { return m_
rareNonInheritedData->m_grid->m_orderedNamedGridColumnLines; } |
834 const OrderedNamedGridLines& orderedNamedGridRowLines() const { return rareN
onInheritedData->m_grid->m_orderedNamedGridRowLines; } | 834 const OrderedNamedGridLines& orderedNamedGridRowLines() const { return m_rar
eNonInheritedData->m_grid->m_orderedNamedGridRowLines; } |
835 const NamedGridLinesMap& autoRepeatNamedGridColumnLines() const { return rar
eNonInheritedData->m_grid->m_autoRepeatNamedGridColumnLines; } | 835 const NamedGridLinesMap& autoRepeatNamedGridColumnLines() const { return m_r
areNonInheritedData->m_grid->m_autoRepeatNamedGridColumnLines; } |
836 const NamedGridLinesMap& autoRepeatNamedGridRowLines() const { return rareNo
nInheritedData->m_grid->m_autoRepeatNamedGridRowLines; } | 836 const NamedGridLinesMap& autoRepeatNamedGridRowLines() const { return m_rare
NonInheritedData->m_grid->m_autoRepeatNamedGridRowLines; } |
837 const OrderedNamedGridLines& autoRepeatOrderedNamedGridColumnLines() const {
return rareNonInheritedData->m_grid->m_autoRepeatOrderedNamedGridColumnLines; } | 837 const OrderedNamedGridLines& autoRepeatOrderedNamedGridColumnLines() const {
return m_rareNonInheritedData->m_grid->m_autoRepeatOrderedNamedGridColumnLines;
} |
838 const OrderedNamedGridLines& autoRepeatOrderedNamedGridRowLines() const { re
turn rareNonInheritedData->m_grid->m_autoRepeatOrderedNamedGridRowLines; } | 838 const OrderedNamedGridLines& autoRepeatOrderedNamedGridRowLines() const { re
turn m_rareNonInheritedData->m_grid->m_autoRepeatOrderedNamedGridRowLines; } |
839 const NamedGridAreaMap& namedGridArea() const { return rareNonInheritedData-
>m_grid->m_namedGridArea; } | 839 const NamedGridAreaMap& namedGridArea() const { return m_rareNonInheritedDat
a->m_grid->m_namedGridArea; } |
840 size_t namedGridAreaRowCount() const { return rareNonInheritedData->m_grid->
m_namedGridAreaRowCount; } | 840 size_t namedGridAreaRowCount() const { return m_rareNonInheritedData->m_grid
->m_namedGridAreaRowCount; } |
841 size_t namedGridAreaColumnCount() const { return rareNonInheritedData->m_gri
d->m_namedGridAreaColumnCount; } | 841 size_t namedGridAreaColumnCount() const { return m_rareNonInheritedData->m_g
rid->m_namedGridAreaColumnCount; } |
842 GridAutoFlow getGridAutoFlow() const { return static_cast<GridAutoFlow>(rare
NonInheritedData->m_grid->m_gridAutoFlow); } | 842 GridAutoFlow getGridAutoFlow() const { return static_cast<GridAutoFlow>(m_ra
reNonInheritedData->m_grid->m_gridAutoFlow); } |
843 bool isGridAutoFlowDirectionRow() const { return (rareNonInheritedData->m_gr
id->m_gridAutoFlow & InternalAutoFlowDirectionRow) == InternalAutoFlowDirectionR
ow; } | 843 bool isGridAutoFlowDirectionRow() const { return (m_rareNonInheritedData->m_
grid->m_gridAutoFlow & InternalAutoFlowDirectionRow) == InternalAutoFlowDirectio
nRow; } |
844 bool isGridAutoFlowDirectionColumn() const { return (rareNonInheritedData->m
_grid->m_gridAutoFlow & InternalAutoFlowDirectionColumn) == InternalAutoFlowDire
ctionColumn; } | 844 bool isGridAutoFlowDirectionColumn() const { return (m_rareNonInheritedData-
>m_grid->m_gridAutoFlow & InternalAutoFlowDirectionColumn) == InternalAutoFlowDi
rectionColumn; } |
845 bool isGridAutoFlowAlgorithmSparse() const { return (rareNonInheritedData->m
_grid->m_gridAutoFlow & InternalAutoFlowAlgorithmSparse) == InternalAutoFlowAlgo
rithmSparse; } | 845 bool isGridAutoFlowAlgorithmSparse() const { return (m_rareNonInheritedData-
>m_grid->m_gridAutoFlow & InternalAutoFlowAlgorithmSparse) == InternalAutoFlowAl
gorithmSparse; } |
846 bool isGridAutoFlowAlgorithmDense() const { return (rareNonInheritedData->m_
grid->m_gridAutoFlow & InternalAutoFlowAlgorithmDense) == InternalAutoFlowAlgori
thmDense; } | 846 bool isGridAutoFlowAlgorithmDense() const { return (m_rareNonInheritedData->
m_grid->m_gridAutoFlow & InternalAutoFlowAlgorithmDense) == InternalAutoFlowAlgo
rithmDense; } |
847 const GridTrackSize& gridAutoColumns() const { return rareNonInheritedData->
m_grid->m_gridAutoColumns; } | 847 const GridTrackSize& gridAutoColumns() const { return m_rareNonInheritedData
->m_grid->m_gridAutoColumns; } |
848 const GridTrackSize& gridAutoRows() const { return rareNonInheritedData->m_g
rid->m_gridAutoRows; } | 848 const GridTrackSize& gridAutoRows() const { return m_rareNonInheritedData->m
_grid->m_gridAutoRows; } |
849 const Length& gridColumnGap() const { return rareNonInheritedData->m_grid->m
_gridColumnGap; } | 849 const Length& gridColumnGap() const { return m_rareNonInheritedData->m_grid-
>m_gridColumnGap; } |
850 const Length& gridRowGap() const { return rareNonInheritedData->m_grid->m_gr
idRowGap; } | 850 const Length& gridRowGap() const { return m_rareNonInheritedData->m_grid->m_
gridRowGap; } |
851 | 851 |
852 const GridPosition& gridColumnStart() const { return rareNonInheritedData->m
_gridItem->m_gridColumnStart; } | 852 const GridPosition& gridColumnStart() const { return m_rareNonInheritedData-
>m_gridItem->m_gridColumnStart; } |
853 const GridPosition& gridColumnEnd() const { return rareNonInheritedData->m_g
ridItem->m_gridColumnEnd; } | 853 const GridPosition& gridColumnEnd() const { return m_rareNonInheritedData->m
_gridItem->m_gridColumnEnd; } |
854 const GridPosition& gridRowStart() const { return rareNonInheritedData->m_gr
idItem->m_gridRowStart; } | 854 const GridPosition& gridRowStart() const { return m_rareNonInheritedData->m_
gridItem->m_gridRowStart; } |
855 const GridPosition& gridRowEnd() const { return rareNonInheritedData->m_grid
Item->m_gridRowEnd; } | 855 const GridPosition& gridRowEnd() const { return m_rareNonInheritedData->m_gr
idItem->m_gridRowEnd; } |
856 | 856 |
857 ShadowList* boxShadow() const { return rareNonInheritedData->m_boxShadow.get
(); } | 857 ShadowList* boxShadow() const { return m_rareNonInheritedData->m_boxShadow.g
et(); } |
858 | 858 |
859 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration
Break(); } | 859 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration
Break(); } |
860 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl
ect.get(); } | 860 StyleReflection* boxReflect() const { return m_rareNonInheritedData->m_boxRe
flect.get(); } |
861 bool hasBoxReflect() const { return boxReflect(); } | 861 bool hasBoxReflect() const { return boxReflect(); } |
862 bool reflectionDataEquivalent(const ComputedStyle* otherStyle) const { retur
n rareNonInheritedData->reflectionDataEquivalent(*otherStyle->rareNonInheritedDa
ta); } | 862 bool reflectionDataEquivalent(const ComputedStyle* otherStyle) const { retur
n m_rareNonInheritedData->reflectionDataEquivalent(*otherStyle->m_rareNonInherit
edData); } |
863 | 863 |
864 // FIXME: reflections should belong to this helper function but they are cur
rently handled | 864 // FIXME: reflections should belong to this helper function but they are cur
rently handled |
865 // through their self-painting layers. So the layout code doesn't account fo
r them. | 865 // through their self-painting layers. So the layout code doesn't account fo
r them. |
866 bool hasVisualOverflowingEffect() const { return boxShadow() || hasBorderIma
geOutsets() || hasOutline(); } | 866 bool hasVisualOverflowingEffect() const { return boxShadow() || hasBorderIma
geOutsets() || hasOutline(); } |
867 | 867 |
868 Containment contain() const { return static_cast<Containment>(rareNonInherit
edData->m_contain); } | 868 Containment contain() const { return static_cast<Containment>(m_rareNonInher
itedData->m_contain); } |
869 bool containsPaint() const { return rareNonInheritedData->m_contain & Contai
nsPaint; } | 869 bool containsPaint() const { return m_rareNonInheritedData->m_contain & Cont
ainsPaint; } |
870 bool containsStyle() const { return rareNonInheritedData->m_contain & Contai
nsStyle; } | 870 bool containsStyle() const { return m_rareNonInheritedData->m_contain & Cont
ainsStyle; } |
871 bool containsLayout() const { return rareNonInheritedData->m_contain & Conta
insLayout; } | 871 bool containsLayout() const { return m_rareNonInheritedData->m_contain & Con
tainsLayout; } |
872 bool containsSize() const { return rareNonInheritedData->m_contain & Contain
sSize; } | 872 bool containsSize() const { return m_rareNonInheritedData->m_contain & Conta
insSize; } |
873 | 873 |
874 EBoxSizing boxSizing() const { return m_box->boxSizing(); } | 874 EBoxSizing boxSizing() const { return m_box->boxSizing(); } |
875 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit
edData->userModify); } | 875 EUserModify userModify() const { return static_cast<EUserModify>(m_rareInher
itedData->userModify); } |
876 EUserDrag userDrag() const { return static_cast<EUserDrag>(rareNonInheritedD
ata->userDrag); } | 876 EUserDrag userDrag() const { return static_cast<EUserDrag>(m_rareNonInherite
dData->userDrag); } |
877 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit
edData->userSelect); } | 877 EUserSelect userSelect() const { return static_cast<EUserSelect>(m_rareInher
itedData->userSelect); } |
878 TextOverflow getTextOverflow() const { return static_cast<TextOverflow>(rare
NonInheritedData->textOverflow); } | 878 TextOverflow getTextOverflow() const { return static_cast<TextOverflow>(m_ra
reNonInheritedData->textOverflow); } |
879 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol
lapse>(rareNonInheritedData->marginBeforeCollapse); } | 879 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol
lapse>(m_rareNonInheritedData->marginBeforeCollapse); } |
880 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl
apse>(rareNonInheritedData->marginAfterCollapse); } | 880 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl
apse>(m_rareNonInheritedData->marginAfterCollapse); } |
881 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD
ata->wordBreak); } | 881 EWordBreak wordBreak() const { return static_cast<EWordBreak>(m_rareInherite
dData->wordBreak); } |
882 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI
nheritedData->overflowWrap); } | 882 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(m_rar
eInheritedData->overflowWrap); } |
883 LineBreak getLineBreak() const { return static_cast<LineBreak>(rareInherited
Data->lineBreak); } | 883 LineBreak getLineBreak() const { return static_cast<LineBreak>(m_rareInherit
edData->lineBreak); } |
884 const AtomicString& highlight() const { return rareInheritedData->highlight;
} | 884 const AtomicString& highlight() const { return m_rareInheritedData->highligh
t; } |
885 Hyphens getHyphens() const { return static_cast<Hyphens>(rareInheritedData->
hyphens); } | 885 Hyphens getHyphens() const { return static_cast<Hyphens>(m_rareInheritedData
->hyphens); } |
886 const AtomicString& hyphenationString() const { return rareInheritedData->hy
phenationString; } | 886 const AtomicString& hyphenationString() const { return m_rareInheritedData->
hyphenationString; } |
887 const AtomicString& locale() const { return getFontDescription().locale(fals
e); } | 887 const AtomicString& locale() const { return getFontDescription().locale(fals
e); } |
888 EResize resize() const { return static_cast<EResize>(rareNonInheritedData->m
_resize); } | 888 EResize resize() const { return static_cast<EResize>(m_rareNonInheritedData-
>m_resize); } |
889 bool hasInlinePaginationAxis() const | 889 bool hasInlinePaginationAxis() const |
890 { | 890 { |
891 // If the pagination axis is parallel with the writing mode inline axis,
columns may be laid | 891 // If the pagination axis is parallel with the writing mode inline axis,
columns may be laid |
892 // out along the inline axis, just like for regular multicol. Otherwise,
we need to lay out | 892 // out along the inline axis, just like for regular multicol. Otherwise,
we need to lay out |
893 // along the block axis. | 893 // along the block axis. |
894 if (isOverflowPaged()) | 894 if (isOverflowPaged()) |
895 return (overflowY() == OverflowPagedX) == isHorizontalWritingMode(); | 895 return (overflowY() == OverflowPagedX) == isHorizontalWritingMode(); |
896 return false; | 896 return false; |
897 } | 897 } |
898 float columnWidth() const { return rareNonInheritedData->m_multiCol->m_width
; } | 898 float columnWidth() const { return m_rareNonInheritedData->m_multiCol->m_wid
th; } |
899 bool hasAutoColumnWidth() const { return rareNonInheritedData->m_multiCol->m
_autoWidth; } | 899 bool hasAutoColumnWidth() const { return m_rareNonInheritedData->m_multiCol-
>m_autoWidth; } |
900 unsigned short columnCount() const { return rareNonInheritedData->m_multiCol
->m_count; } | 900 unsigned short columnCount() const { return m_rareNonInheritedData->m_multiC
ol->m_count; } |
901 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m
_autoCount; } | 901 bool hasAutoColumnCount() const { return m_rareNonInheritedData->m_multiCol-
>m_autoCount; } |
902 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu
mnWidth(); } | 902 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu
mnWidth(); } |
903 ColumnFill getColumnFill() const { return static_cast<ColumnFill>(rareNonInh
eritedData->m_multiCol->m_fill); } | 903 ColumnFill getColumnFill() const { return static_cast<ColumnFill>(m_rareNonI
nheritedData->m_multiCol->m_fill); } |
904 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } | 904 float columnGap() const { return m_rareNonInheritedData->m_multiCol->m_gap;
} |
905 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m
_normalGap; } | 905 bool hasNormalColumnGap() const { return m_rareNonInheritedData->m_multiCol-
>m_normalGap; } |
906 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } | 906 EBorderStyle columnRuleStyle() const { return m_rareNonInheritedData->m_mult
iCol->m_rule.style(); } |
907 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } | 907 unsigned short columnRuleWidth() const { return m_rareNonInheritedData->m_mu
ltiCol->ruleWidth(); } |
908 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } | 908 bool columnRuleIsTransparent() const { return m_rareNonInheritedData->m_mult
iCol->m_rule.isTransparent(); } |
909 bool columnRuleEquivalent(const ComputedStyle* otherStyle) const; | 909 bool columnRuleEquivalent(const ComputedStyle* otherStyle) const; |
910 ColumnSpan getColumnSpan() const { return static_cast<ColumnSpan>(rareNonInh
eritedData->m_multiCol->m_columnSpan); } | 910 ColumnSpan getColumnSpan() const { return static_cast<ColumnSpan>(m_rareNonI
nheritedData->m_multiCol->m_columnSpan); } |
911 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr
ansform; } | 911 bool hasInlineTransform() const { return m_rareNonInheritedData->m_hasInline
Transform; } |
912 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit
orProxy; } | 912 bool hasCompositorProxy() const { return m_rareNonInheritedData->m_hasCompos
itorProxy; } |
913 const TransformOperations& transform() const { return rareNonInheritedData->
m_transform->m_operations; } | 913 const TransformOperations& transform() const { return m_rareNonInheritedData
->m_transform->m_operations; } |
914 const TransformOrigin& transformOrigin() const { return rareNonInheritedData
->m_transform->m_origin; } | 914 const TransformOrigin& transformOrigin() const { return m_rareNonInheritedDa
ta->m_transform->m_origin; } |
915 const Length& transformOriginX() const { return transformOrigin().x(); } | 915 const Length& transformOriginX() const { return transformOrigin().x(); } |
916 const Length& transformOriginY() const { return transformOrigin().y(); } | 916 const Length& transformOriginY() const { return transformOrigin().y(); } |
917 TranslateTransformOperation* translate() const { return rareNonInheritedData
->m_transform->m_translate.get(); } | 917 TranslateTransformOperation* translate() const { return m_rareNonInheritedDa
ta->m_transform->m_translate.get(); } |
918 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr
ansform->m_rotate.get(); } | 918 RotateTransformOperation* rotate() const { return m_rareNonInheritedData->m_
transform->m_rotate.get(); } |
919 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran
sform->m_scale.get(); } | 919 ScaleTransformOperation* scale() const { return m_rareNonInheritedData->m_tr
ansform->m_scale.get(); } |
920 float transformOriginZ() const { return transformOrigin().z(); } | 920 float transformOriginZ() const { return transformOrigin().z(); } |
921 bool has3DTransform() const { return rareNonInheritedData->m_transform->has3
DTransform(); } | 921 bool has3DTransform() const { return m_rareNonInheritedData->m_transform->ha
s3DTransform(); } |
922 bool hasTransform() const { return hasTransformOperations() || hasMotionPath
() || hasCurrentTransformAnimation() || translate() || rotate() || scale(); } | 922 bool hasTransform() const { return hasTransformOperations() || hasMotionPath
() || hasCurrentTransformAnimation() || translate() || rotate() || scale(); } |
923 bool hasTransformOperations() const { return !rareNonInheritedData->m_transf
orm->m_operations.operations().isEmpty(); } | 923 bool hasTransformOperations() const { return !m_rareNonInheritedData->m_tran
sform->m_operations.operations().isEmpty(); } |
924 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return
rareNonInheritedData->m_transform == otherStyle.rareNonInheritedData->m_transfo
rm; } | 924 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return
m_rareNonInheritedData->m_transform == otherStyle.m_rareNonInheritedData->m_tra
nsform; } |
925 | 925 |
926 StylePath* motionPath() const { return rareNonInheritedData->m_transform->m_
motion.m_path.get(); } | 926 StylePath* motionPath() const { return m_rareNonInheritedData->m_transform->
m_motion.m_path.get(); } |
927 bool hasMotionPath() const { return motionPath(); } | 927 bool hasMotionPath() const { return motionPath(); } |
928 const Length& motionOffset() const { return rareNonInheritedData->m_transfor
m->m_motion.m_offset; } | 928 const Length& motionOffset() const { return m_rareNonInheritedData->m_transf
orm->m_motion.m_offset; } |
929 const StyleMotionRotation& motionRotation() const { return rareNonInheritedD
ata->m_transform->m_motion.m_rotation; } | 929 const StyleMotionRotation& motionRotation() const { return m_rareNonInherite
dData->m_transform->m_motion.m_rotation; } |
930 | 930 |
931 TextEmphasisFill getTextEmphasisFill() const { return static_cast<TextEmphas
isFill>(rareInheritedData->textEmphasisFill); } | 931 TextEmphasisFill getTextEmphasisFill() const { return static_cast<TextEmphas
isFill>(m_rareInheritedData->textEmphasisFill); } |
932 TextEmphasisMark getTextEmphasisMark() const; | 932 TextEmphasisMark getTextEmphasisMark() const; |
933 const AtomicString& textEmphasisCustomMark() const { return rareInheritedDat
a->textEmphasisCustomMark; } | 933 const AtomicString& textEmphasisCustomMark() const { return m_rareInheritedD
ata->textEmphasisCustomMark; } |
934 TextEmphasisPosition getTextEmphasisPosition() const { return static_cast<Te
xtEmphasisPosition>(rareInheritedData->textEmphasisPosition); } | 934 TextEmphasisPosition getTextEmphasisPosition() const { return static_cast<Te
xtEmphasisPosition>(m_rareInheritedData->textEmphasisPosition); } |
935 const AtomicString& textEmphasisMarkString() const; | 935 const AtomicString& textEmphasisMarkString() const; |
936 | 936 |
937 RubyPosition getRubyPosition() const { return static_cast<RubyPosition>(rare
InheritedData->m_rubyPosition); } | 937 RubyPosition getRubyPosition() const { return static_cast<RubyPosition>(m_ra
reInheritedData->m_rubyPosition); } |
938 | 938 |
939 TextOrientation getTextOrientation() const { return static_cast<TextOrientat
ion>(rareInheritedData->m_textOrientation); } | 939 TextOrientation getTextOrientation() const { return static_cast<TextOrientat
ion>(m_rareInheritedData->m_textOrientation); } |
940 | 940 |
941 ObjectFit getObjectFit() const { return static_cast<ObjectFit>(rareNonInheri
tedData->m_objectFit); } | 941 ObjectFit getObjectFit() const { return static_cast<ObjectFit>(m_rareNonInhe
ritedData->m_objectFit); } |
942 LengthPoint objectPosition() const { return rareNonInheritedData->m_objectPo
sition; } | 942 LengthPoint objectPosition() const { return m_rareNonInheritedData->m_object
Position; } |
943 | 943 |
944 // Return true if any transform related property (currently transform/motion
Path, transformStyle3D, perspective, | 944 // Return true if any transform related property (currently transform/motion
Path, transformStyle3D, perspective, |
945 // or will-change:transform) indicates that we are transforming. will-change
:transform should result in | 945 // or will-change:transform) indicates that we are transforming. will-change
:transform should result in |
946 // the same rendering behavior as having a transform, including the creation
of a containing block | 946 // the same rendering behavior as having a transform, including the creation
of a containing block |
947 // for fixed position descendants. | 947 // for fixed position descendants. |
948 bool hasTransformRelatedProperty() const { return hasTransform() || preserve
s3D() || hasPerspective() || hasWillChangeTransformHint(); } | 948 bool hasTransformRelatedProperty() const { return hasTransform() || preserve
s3D() || hasPerspective() || hasWillChangeTransformHint(); } |
949 | 949 |
950 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }
; | 950 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }
; |
951 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; | 951 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; |
952 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper
ties , ExcludeIndependentTransformProperties }; | 952 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper
ties , ExcludeIndependentTransformProperties }; |
953 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize,
ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons
t; | 953 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize,
ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons
t; |
954 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App
lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const; | 954 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App
lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const; |
955 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar
eNonInheritedData->m_maskBoxImage.hasImage(); } | 955 bool hasMask() const { return m_rareNonInheritedData->m_mask.hasImage() || m
_rareNonInheritedData->m_maskBoxImage.hasImage(); } |
956 | 956 |
957 TextCombine getTextCombine() const { return static_cast<TextCombine>(rareInh
eritedData->m_textCombine); } | 957 TextCombine getTextCombine() const { return static_cast<TextCombine>(m_rareI
nheritedData->m_textCombine); } |
958 bool hasTextCombine() const { return getTextCombine() != TextCombineNone; } | 958 bool hasTextCombine() const { return getTextCombine() != TextCombineNone; } |
959 | 959 |
960 uint8_t snapHeightPosition() const { return rareInheritedData->m_snapHeightP
osition; } | 960 uint8_t snapHeightPosition() const { return m_rareInheritedData->m_snapHeigh
tPosition; } |
961 uint8_t snapHeightUnit() const { return rareInheritedData->m_snapHeightUnit;
} | 961 uint8_t snapHeightUnit() const { return m_rareInheritedData->m_snapHeightUni
t; } |
962 | 962 |
963 TabSize getTabSize() const { return rareInheritedData->m_tabSize; } | 963 TabSize getTabSize() const { return m_rareInheritedData->m_tabSize; } |
964 | 964 |
965 RespectImageOrientationEnum respectImageOrientation() const { return static_
cast<RespectImageOrientationEnum>(rareInheritedData->m_respectImageOrientation);
} | 965 RespectImageOrientationEnum respectImageOrientation() const { return static_
cast<RespectImageOrientationEnum>(m_rareInheritedData->m_respectImageOrientation
); } |
966 | 966 |
967 // End CSS3 Getters | 967 // End CSS3 Getters |
968 | 968 |
969 // Apple-specific property getter methods | 969 // Apple-specific property getter methods |
970 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in
herited_data.m_pointerEvents); } | 970 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(m_
inheritedData.m_pointerEvents); } |
971 const CSSAnimationData* animations() const { return rareNonInheritedData->m_
animations.get(); } | 971 const CSSAnimationData* animations() const { return m_rareNonInheritedData->
m_animations.get(); } |
972 const CSSTransitionData* transitions() const { return rareNonInheritedData->
m_transitions.get(); } | 972 const CSSTransitionData* transitions() const { return m_rareNonInheritedData
->m_transitions.get(); } |
973 | 973 |
974 CSSAnimationData& accessAnimations(); | 974 CSSAnimationData& accessAnimations(); |
975 CSSTransitionData& accessTransitions(); | 975 CSSTransitionData& accessTransitions(); |
976 | 976 |
977 ETransformStyle3D transformStyle3D() const { return static_cast<ETransformSt
yle3D>(rareNonInheritedData->m_transformStyle3D); } | 977 ETransformStyle3D transformStyle3D() const { return static_cast<ETransformSt
yle3D>(m_rareNonInheritedData->m_transformStyle3D); } |
978 ETransformStyle3D usedTransformStyle3D() const { return hasGroupingProperty(
) ? TransformStyle3DFlat : transformStyle3D(); } | 978 ETransformStyle3D usedTransformStyle3D() const { return hasGroupingProperty(
) ? TransformStyle3DFlat : transformStyle3D(); } |
979 bool preserves3D() const { return usedTransformStyle3D() != TransformStyle3D
Flat; } | 979 bool preserves3D() const { return usedTransformStyle3D() != TransformStyle3D
Flat; } |
980 | 980 |
981 EBackfaceVisibility backfaceVisibility() const { return static_cast<EBackfac
eVisibility>(rareNonInheritedData->m_backfaceVisibility); } | 981 EBackfaceVisibility backfaceVisibility() const { return static_cast<EBackfac
eVisibility>(m_rareNonInheritedData->m_backfaceVisibility); } |
982 float perspective() const { return rareNonInheritedData->m_perspective; } | 982 float perspective() const { return m_rareNonInheritedData->m_perspective; } |
983 bool hasPerspective() const { return rareNonInheritedData->m_perspective > 0
; } | 983 bool hasPerspective() const { return m_rareNonInheritedData->m_perspective >
0; } |
984 const LengthPoint& perspectiveOrigin() const { return rareNonInheritedData->
m_perspectiveOrigin; } | 984 const LengthPoint& perspectiveOrigin() const { return m_rareNonInheritedData
->m_perspectiveOrigin; } |
985 const Length& perspectiveOriginX() const { return perspectiveOrigin().x(); } | 985 const Length& perspectiveOriginX() const { return perspectiveOrigin().x(); } |
986 const Length& perspectiveOriginY() const { return perspectiveOrigin().y(); } | 986 const Length& perspectiveOriginY() const { return perspectiveOrigin().y(); } |
987 const FloatSize& pageSize() const { return rareNonInheritedData->m_pageSize;
} | 987 const FloatSize& pageSize() const { return m_rareNonInheritedData->m_pageSiz
e; } |
988 PageSizeType getPageSizeType() const { return static_cast<PageSizeType>(rare
NonInheritedData->m_pageSizeType); } | 988 PageSizeType getPageSizeType() const { return static_cast<PageSizeType>(m_ra
reNonInheritedData->m_pageSizeType); } |
989 | 989 |
990 bool hasCurrentOpacityAnimation() const { return rareNonInheritedData->m_has
CurrentOpacityAnimation; } | 990 bool hasCurrentOpacityAnimation() const { return m_rareNonInheritedData->m_h
asCurrentOpacityAnimation; } |
991 bool hasCurrentTransformAnimation() const { return rareNonInheritedData->m_h
asCurrentTransformAnimation; } | 991 bool hasCurrentTransformAnimation() const { return m_rareNonInheritedData->m
_hasCurrentTransformAnimation; } |
992 bool hasCurrentFilterAnimation() const { return rareNonInheritedData->m_hasC
urrentFilterAnimation; } | 992 bool hasCurrentFilterAnimation() const { return m_rareNonInheritedData->m_ha
sCurrentFilterAnimation; } |
993 bool hasCurrentBackdropFilterAnimation() const { return rareNonInheritedData
->m_hasCurrentBackdropFilterAnimation; } | 993 bool hasCurrentBackdropFilterAnimation() const { return m_rareNonInheritedDa
ta->m_hasCurrentBackdropFilterAnimation; } |
994 bool shouldCompositeForCurrentAnimations() const { return hasCurrentOpacityA
nimation() || hasCurrentTransformAnimation() || hasCurrentFilterAnimation() || h
asCurrentBackdropFilterAnimation(); } | 994 bool shouldCompositeForCurrentAnimations() const { return hasCurrentOpacityA
nimation() || hasCurrentTransformAnimation() || hasCurrentFilterAnimation() || h
asCurrentBackdropFilterAnimation(); } |
995 | 995 |
996 bool isRunningOpacityAnimationOnCompositor() const { return rareNonInherited
Data->m_runningOpacityAnimationOnCompositor; } | 996 bool isRunningOpacityAnimationOnCompositor() const { return m_rareNonInherit
edData->m_runningOpacityAnimationOnCompositor; } |
997 bool isRunningTransformAnimationOnCompositor() const { return rareNonInherit
edData->m_runningTransformAnimationOnCompositor; } | 997 bool isRunningTransformAnimationOnCompositor() const { return m_rareNonInher
itedData->m_runningTransformAnimationOnCompositor; } |
998 bool isRunningFilterAnimationOnCompositor() const { return rareNonInheritedD
ata->m_runningFilterAnimationOnCompositor; } | 998 bool isRunningFilterAnimationOnCompositor() const { return m_rareNonInherite
dData->m_runningFilterAnimationOnCompositor; } |
999 bool isRunningBackdropFilterAnimationOnCompositor() const { return rareNonIn
heritedData->m_runningBackdropFilterAnimationOnCompositor; } | 999 bool isRunningBackdropFilterAnimationOnCompositor() const { return m_rareNon
InheritedData->m_runningBackdropFilterAnimationOnCompositor; } |
1000 bool isRunningAnimationOnCompositor() const { return isRunningOpacityAnimati
onOnCompositor() || isRunningTransformAnimationOnCompositor() || isRunningFilter
AnimationOnCompositor() || isRunningBackdropFilterAnimationOnCompositor(); } | 1000 bool isRunningAnimationOnCompositor() const { return isRunningOpacityAnimati
onOnCompositor() || isRunningTransformAnimationOnCompositor() || isRunningFilter
AnimationOnCompositor() || isRunningBackdropFilterAnimationOnCompositor(); } |
1001 | 1001 |
1002 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } | 1002 const LineClampValue& lineClamp() const { return m_rareNonInheritedData->lin
eClamp; } |
1003 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } | 1003 Color tapHighlightColor() const { return m_rareInheritedData->tapHighlightCo
lor; } |
1004 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } | 1004 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(m_rar
eInheritedData->textSecurity); } |
1005 | 1005 |
1006 WritingMode getWritingMode() const { return static_cast<WritingMode>(inherit
ed_data.m_writingMode); } | 1006 WritingMode getWritingMode() const { return static_cast<WritingMode>(m_inher
itedData.m_writingMode); } |
1007 bool isHorizontalWritingMode() const { return blink::isHorizontalWritingMode
(getWritingMode()); } | 1007 bool isHorizontalWritingMode() const { return blink::isHorizontalWritingMode
(getWritingMode()); } |
1008 bool isFlippedLinesWritingMode() const { return blink::isFlippedLinesWriting
Mode(getWritingMode()); } | 1008 bool isFlippedLinesWritingMode() const { return blink::isFlippedLinesWriting
Mode(getWritingMode()); } |
1009 bool isFlippedBlocksWritingMode() const { return blink::isFlippedBlocksWriti
ngMode(getWritingMode()); } | 1009 bool isFlippedBlocksWritingMode() const { return blink::isFlippedBlocksWriti
ngMode(getWritingMode()); } |
1010 | 1010 |
1011 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } | 1011 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(m_rareInheritedData->m_imageRendering); } |
1012 | 1012 |
1013 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} | 1013 ESpeak speak() const { return static_cast<ESpeak>(m_rareInheritedData->speak
); } |
1014 | 1014 |
1015 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } | 1015 FilterOperations& mutableFilter() { return m_rareNonInheritedData.access()->
m_filter.access()->m_operations; } |
1016 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } | 1016 const FilterOperations& filter() const { return m_rareNonInheritedData->m_fi
lter->m_operations; } |
1017 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } | 1017 bool hasFilter() const { return !m_rareNonInheritedData->m_filter->m_operati
ons.operations().isEmpty(); } |
1018 | 1018 |
1019 FilterOperations& mutableBackdropFilter() { return rareNonInheritedData.acce
ss()->m_backdropFilter.access()->m_operations; } | 1019 FilterOperations& mutableBackdropFilter() { return m_rareNonInheritedData.ac
cess()->m_backdropFilter.access()->m_operations; } |
1020 const FilterOperations& backdropFilter() const { return rareNonInheritedData
->m_backdropFilter->m_operations; } | 1020 const FilterOperations& backdropFilter() const { return m_rareNonInheritedDa
ta->m_backdropFilter->m_operations; } |
1021 bool hasBackdropFilter() const { return !rareNonInheritedData->m_backdropFil
ter->m_operations.operations().isEmpty(); } | 1021 bool hasBackdropFilter() const { return !m_rareNonInheritedData->m_backdropF
ilter->m_operations.operations().isEmpty(); } |
1022 | 1022 |
1023 WebBlendMode blendMode() const { return static_cast<WebBlendMode>(rareNonInh
eritedData->m_effectiveBlendMode); } | 1023 WebBlendMode blendMode() const { return static_cast<WebBlendMode>(m_rareNonI
nheritedData->m_effectiveBlendMode); } |
1024 void setBlendMode(WebBlendMode v) { rareNonInheritedData.access()->m_effecti
veBlendMode = v; } | 1024 void setBlendMode(WebBlendMode v) { m_rareNonInheritedData.access()->m_effec
tiveBlendMode = v; } |
1025 bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; } | 1025 bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; } |
1026 | 1026 |
1027 EIsolation isolation() const { return static_cast<EIsolation>(rareNonInherit
edData->m_isolation); } | 1027 EIsolation isolation() const { return static_cast<EIsolation>(m_rareNonInher
itedData->m_isolation); } |
1028 void setIsolation(EIsolation v) { rareNonInheritedData.access()->m_isolation
= v; } | 1028 void setIsolation(EIsolation v) { m_rareNonInheritedData.access()->m_isolati
on = v; } |
1029 bool hasIsolation() const { return isolation() != IsolationAuto; } | 1029 bool hasIsolation() const { return isolation() != IsolationAuto; } |
1030 | 1030 |
1031 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } | 1031 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef
tToRightDirection() && isHorizontalWritingMode(); } |
1032 | 1032 |
1033 TouchAction getTouchAction() const { return static_cast<TouchAction>(rareNon
InheritedData->m_touchAction); } | 1033 TouchAction getTouchAction() const { return static_cast<TouchAction>(m_rareN
onInheritedData->m_touchAction); } |
1034 | 1034 |
1035 ScrollBehavior getScrollBehavior() const { return static_cast<ScrollBehavior
>(rareNonInheritedData->m_scrollBehavior); } | 1035 ScrollBehavior getScrollBehavior() const { return static_cast<ScrollBehavior
>(m_rareNonInheritedData->m_scrollBehavior); } |
1036 | 1036 |
1037 ScrollSnapType getScrollSnapType() const { return static_cast<ScrollSnapType
>(rareNonInheritedData->m_scrollSnapType); } | 1037 ScrollSnapType getScrollSnapType() const { return static_cast<ScrollSnapType
>(m_rareNonInheritedData->m_scrollSnapType); } |
1038 const ScrollSnapPoints& scrollSnapPointsX() const { return rareNonInheritedD
ata->m_scrollSnap->m_xPoints; } | 1038 const ScrollSnapPoints& scrollSnapPointsX() const { return m_rareNonInherite
dData->m_scrollSnap->m_xPoints; } |
1039 const ScrollSnapPoints& scrollSnapPointsY() const { return rareNonInheritedD
ata->m_scrollSnap->m_yPoints; } | 1039 const ScrollSnapPoints& scrollSnapPointsY() const { return m_rareNonInherite
dData->m_scrollSnap->m_yPoints; } |
1040 const Vector<LengthPoint>& scrollSnapCoordinate() const { return rareNonInhe
ritedData->m_scrollSnap->m_coordinates; } | 1040 const Vector<LengthPoint>& scrollSnapCoordinate() const { return m_rareNonIn
heritedData->m_scrollSnap->m_coordinates; } |
1041 const LengthPoint& scrollSnapDestination() const { return rareNonInheritedDa
ta->m_scrollSnap->m_destination; } | 1041 const LengthPoint& scrollSnapDestination() const { return m_rareNonInherited
Data->m_scrollSnap->m_destination; } |
1042 | 1042 |
1043 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn
heritedData->m_willChange->m_properties; } | 1043 const Vector<CSSPropertyID>& willChangeProperties() const { return m_rareNon
InheritedData->m_willChange->m_properties; } |
1044 bool willChangeContents() const { return rareNonInheritedData->m_willChange-
>m_contents; } | 1044 bool willChangeContents() const { return m_rareNonInheritedData->m_willChang
e->m_contents; } |
1045 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC
hange->m_scrollPosition; } | 1045 bool willChangeScrollPosition() const { return m_rareNonInheritedData->m_wil
lChange->m_scrollPosition; } |
1046 bool hasWillChangeCompositingHint() const; | 1046 bool hasWillChangeCompositingHint() const; |
1047 bool hasWillChangeOpacityHint() const { return willChangeProperties().contai
ns(CSSPropertyOpacity); } | 1047 bool hasWillChangeOpacityHint() const { return willChangeProperties().contai
ns(CSSPropertyOpacity); } |
1048 bool hasWillChangeTransformHint() const; | 1048 bool hasWillChangeTransformHint() const; |
1049 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree
WillChangeContents; } | 1049 bool subtreeWillChangeContents() const { return m_rareInheritedData->m_subtr
eeWillChangeContents; } |
1050 | 1050 |
1051 // attribute setter methods | 1051 // attribute setter methods |
1052 | 1052 |
1053 void setDisplay(EDisplay v) { noninherited_data.m_effectiveDisplay = v; } | 1053 void setDisplay(EDisplay v) { m_nonInheritedData.m_effectiveDisplay = v; } |
1054 void setOriginalDisplay(EDisplay v) { noninherited_data.m_originalDisplay =
v; } | 1054 void setOriginalDisplay(EDisplay v) { m_nonInheritedData.m_originalDisplay =
v; } |
1055 void setPosition(EPosition v) { noninherited_data.m_position = v; } | 1055 void setPosition(EPosition v) { m_nonInheritedData.m_position = v; } |
1056 void setFloating(EFloat v) { noninherited_data.m_floating = v; } | 1056 void setFloating(EFloat v) { m_nonInheritedData.m_floating = v; } |
1057 | 1057 |
1058 void setLeft(const Length& v) { SET_VAR(surround, offset.m_left, v); } | 1058 void setLeft(const Length& v) { SET_VAR(m_surround, offset.m_left, v); } |
1059 void setRight(const Length& v) { SET_VAR(surround, offset.m_right, v); } | 1059 void setRight(const Length& v) { SET_VAR(m_surround, offset.m_right, v); } |
1060 void setTop(const Length& v) { SET_VAR(surround, offset.m_top, v); } | 1060 void setTop(const Length& v) { SET_VAR(m_surround, offset.m_top, v); } |
1061 void setBottom(const Length& v) { SET_VAR(surround, offset.m_bottom, v); } | 1061 void setBottom(const Length& v) { SET_VAR(m_surround, offset.m_bottom, v); } |
1062 | 1062 |
1063 void setWidth(const Length& v) { SET_VAR(m_box, m_width, v); } | 1063 void setWidth(const Length& v) { SET_VAR(m_box, m_width, v); } |
1064 void setHeight(const Length& v) { SET_VAR(m_box, m_height, v); } | 1064 void setHeight(const Length& v) { SET_VAR(m_box, m_height, v); } |
1065 | 1065 |
1066 void setLogicalWidth(const Length& v) | 1066 void setLogicalWidth(const Length& v) |
1067 { | 1067 { |
1068 if (isHorizontalWritingMode()) { | 1068 if (isHorizontalWritingMode()) { |
1069 SET_VAR(m_box, m_width, v); | 1069 SET_VAR(m_box, m_width, v); |
1070 } else { | 1070 } else { |
1071 SET_VAR(m_box, m_height, v); | 1071 SET_VAR(m_box, m_height, v); |
1072 } | 1072 } |
1073 } | 1073 } |
1074 | 1074 |
1075 void setLogicalHeight(const Length& v) | 1075 void setLogicalHeight(const Length& v) |
1076 { | 1076 { |
1077 if (isHorizontalWritingMode()) { | 1077 if (isHorizontalWritingMode()) { |
1078 SET_VAR(m_box, m_height, v); | 1078 SET_VAR(m_box, m_height, v); |
1079 } else { | 1079 } else { |
1080 SET_VAR(m_box, m_width, v); | 1080 SET_VAR(m_box, m_width, v); |
1081 } | 1081 } |
1082 } | 1082 } |
1083 | 1083 |
1084 void setMinWidth(const Length& v) { SET_VAR(m_box, m_minWidth, v); } | 1084 void setMinWidth(const Length& v) { SET_VAR(m_box, m_minWidth, v); } |
1085 void setMaxWidth(const Length& v) { SET_VAR(m_box, m_maxWidth, v); } | 1085 void setMaxWidth(const Length& v) { SET_VAR(m_box, m_maxWidth, v); } |
1086 void setMinHeight(const Length& v) { SET_VAR(m_box, m_minHeight, v); } | 1086 void setMinHeight(const Length& v) { SET_VAR(m_box, m_minHeight, v); } |
1087 void setMaxHeight(const Length& v) { SET_VAR(m_box, m_maxHeight, v); } | 1087 void setMaxHeight(const Length& v) { SET_VAR(m_box, m_maxHeight, v); } |
1088 | 1088 |
1089 DraggableRegionMode getDraggableRegionMode() const { return rareNonInherited
Data->m_draggableRegionMode; } | 1089 DraggableRegionMode getDraggableRegionMode() const { return m_rareNonInherit
edData->m_draggableRegionMode; } |
1090 void setDraggableRegionMode(DraggableRegionMode v) { SET_VAR(rareNonInherite
dData, m_draggableRegionMode, v); } | 1090 void setDraggableRegionMode(DraggableRegionMode v) { SET_VAR(m_rareNonInheri
tedData, m_draggableRegionMode, v); } |
1091 | 1091 |
1092 void resetBorder() | 1092 void resetBorder() |
1093 { | 1093 { |
1094 resetBorderImage(); | 1094 resetBorderImage(); |
1095 resetBorderTop(); | 1095 resetBorderTop(); |
1096 resetBorderRight(); | 1096 resetBorderRight(); |
1097 resetBorderBottom(); | 1097 resetBorderBottom(); |
1098 resetBorderLeft(); | 1098 resetBorderLeft(); |
1099 resetBorderTopLeftRadius(); | 1099 resetBorderTopLeftRadius(); |
1100 resetBorderTopRightRadius(); | 1100 resetBorderTopRightRadius(); |
1101 resetBorderBottomLeftRadius(); | 1101 resetBorderBottomLeftRadius(); |
1102 resetBorderBottomRightRadius(); | 1102 resetBorderBottomRightRadius(); |
1103 } | 1103 } |
1104 void resetBorderTop() { SET_VAR(surround, border.m_top, BorderValue()); } | 1104 void resetBorderTop() { SET_VAR(m_surround, border.m_top, BorderValue()); } |
1105 void resetBorderRight() { SET_VAR(surround, border.m_right, BorderValue());
} | 1105 void resetBorderRight() { SET_VAR(m_surround, border.m_right, BorderValue())
; } |
1106 void resetBorderBottom() { SET_VAR(surround, border.m_bottom, BorderValue())
; } | 1106 void resetBorderBottom() { SET_VAR(m_surround, border.m_bottom, BorderValue(
)); } |
1107 void resetBorderLeft() { SET_VAR(surround, border.m_left, BorderValue()); } | 1107 void resetBorderLeft() { SET_VAR(m_surround, border.m_left, BorderValue());
} |
1108 void resetBorderImage() { SET_VAR(surround, border.m_image, NinePieceImage()
); } | 1108 void resetBorderImage() { SET_VAR(m_surround, border.m_image, NinePieceImage
()); } |
1109 void resetBorderTopLeftRadius() { SET_VAR(surround, border.m_topLeft, initia
lBorderRadius()); } | 1109 void resetBorderTopLeftRadius() { SET_VAR(m_surround, border.m_topLeft, init
ialBorderRadius()); } |
1110 void resetBorderTopRightRadius() { SET_VAR(surround, border.m_topRight, init
ialBorderRadius()); } | 1110 void resetBorderTopRightRadius() { SET_VAR(m_surround, border.m_topRight, in
itialBorderRadius()); } |
1111 void resetBorderBottomLeftRadius() { SET_VAR(surround, border.m_bottomLeft,
initialBorderRadius()); } | 1111 void resetBorderBottomLeftRadius() { SET_VAR(m_surround, border.m_bottomLeft
, initialBorderRadius()); } |
1112 void resetBorderBottomRightRadius() { SET_VAR(surround, border.m_bottomRight
, initialBorderRadius()); } | 1112 void resetBorderBottomRightRadius() { SET_VAR(m_surround, border.m_bottomRig
ht, initialBorderRadius()); } |
1113 | 1113 |
1114 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color
, v); } | 1114 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color
, v); } |
1115 | 1115 |
1116 void setBorderImage(const NinePieceImage& b) { SET_VAR(surround, border.m_im
age, b); } | 1116 void setBorderImage(const NinePieceImage& b) { SET_VAR(m_surround, border.m_
image, b); } |
1117 void setBorderImageSource(StyleImage*); | 1117 void setBorderImageSource(StyleImage*); |
1118 void setBorderImageSlices(const LengthBox&); | 1118 void setBorderImageSlices(const LengthBox&); |
1119 void setBorderImageSlicesFill(bool); | 1119 void setBorderImageSlicesFill(bool); |
1120 void setBorderImageWidth(const BorderImageLengthBox&); | 1120 void setBorderImageWidth(const BorderImageLengthBox&); |
1121 void setBorderImageOutset(const BorderImageLengthBox&); | 1121 void setBorderImageOutset(const BorderImageLengthBox&); |
1122 | 1122 |
1123 void setBorderTopLeftRadius(const LengthSize& s) { SET_VAR(surround, border.
m_topLeft, s); } | 1123 void setBorderTopLeftRadius(const LengthSize& s) { SET_VAR(m_surround, borde
r.m_topLeft, s); } |
1124 void setBorderTopRightRadius(const LengthSize& s) { SET_VAR(surround, border
.m_topRight, s); } | 1124 void setBorderTopRightRadius(const LengthSize& s) { SET_VAR(m_surround, bord
er.m_topRight, s); } |
1125 void setBorderBottomLeftRadius(const LengthSize& s) { SET_VAR(surround, bord
er.m_bottomLeft, s); } | 1125 void setBorderBottomLeftRadius(const LengthSize& s) { SET_VAR(m_surround, bo
rder.m_bottomLeft, s); } |
1126 void setBorderBottomRightRadius(const LengthSize& s) { SET_VAR(surround, bor
der.m_bottomRight, s); } | 1126 void setBorderBottomRightRadius(const LengthSize& s) { SET_VAR(m_surround, b
order.m_bottomRight, s); } |
1127 | 1127 |
1128 void setBorderRadius(const LengthSize& s) | 1128 void setBorderRadius(const LengthSize& s) |
1129 { | 1129 { |
1130 setBorderTopLeftRadius(s); | 1130 setBorderTopLeftRadius(s); |
1131 setBorderTopRightRadius(s); | 1131 setBorderTopRightRadius(s); |
1132 setBorderBottomLeftRadius(s); | 1132 setBorderBottomLeftRadius(s); |
1133 setBorderBottomRightRadius(s); | 1133 setBorderBottomRightRadius(s); |
1134 } | 1134 } |
1135 void setBorderRadius(const IntSize& s) | 1135 void setBorderRadius(const IntSize& s) |
1136 { | 1136 { |
1137 setBorderRadius(LengthSize(Length(s.width(), Fixed), Length(s.height(),
Fixed))); | 1137 setBorderRadius(LengthSize(Length(s.width(), Fixed), Length(s.height(),
Fixed))); |
1138 } | 1138 } |
1139 | 1139 |
1140 FloatRoundedRect getRoundedBorderFor(const LayoutRect& borderRect, bool incl
udeLogicalLeftEdge = true, | 1140 FloatRoundedRect getRoundedBorderFor(const LayoutRect& borderRect, bool incl
udeLogicalLeftEdge = true, |
1141 bool includeLogicalRightEdge = true) const; | 1141 bool includeLogicalRightEdge = true) const; |
1142 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, bool
includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; | 1142 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, bool
includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; |
1143 | 1143 |
1144 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, | 1144 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, |
1145 const LayoutRectOutsets insets, bool includeLogicalLeftEdge, bool includ
eLogicalRightEdge) const; | 1145 const LayoutRectOutsets insets, bool includeLogicalLeftEdge, bool includ
eLogicalRightEdge) const; |
1146 | 1146 |
1147 void setBorderLeftWidth(unsigned v) { SET_VAR(surround, border.m_left.m_widt
h, v); } | 1147 void setBorderLeftWidth(unsigned v) { SET_VAR(m_surround, border.m_left.m_wi
dth, v); } |
1148 void setBorderLeftStyle(EBorderStyle v) { SET_VAR(surround, border.m_left.m_
style, v); } | 1148 void setBorderLeftStyle(EBorderStyle v) { SET_VAR(m_surround, border.m_left.
m_style, v); } |
1149 void setBorderLeftColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surroun
d, border.m_left, v); } | 1149 void setBorderLeftColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(m_surro
und, border.m_left, v); } |
1150 void setBorderRightWidth(unsigned v) { SET_VAR(surround, border.m_right.m_wi
dth, v); } | 1150 void setBorderRightWidth(unsigned v) { SET_VAR(m_surround, border.m_right.m_
width, v); } |
1151 void setBorderRightStyle(EBorderStyle v) { SET_VAR(surround, border.m_right.
m_style, v); } | 1151 void setBorderRightStyle(EBorderStyle v) { SET_VAR(m_surround, border.m_righ
t.m_style, v); } |
1152 void setBorderRightColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surrou
nd, border.m_right, v); } | 1152 void setBorderRightColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(m_surr
ound, border.m_right, v); } |
1153 void setBorderTopWidth(unsigned v) { SET_VAR(surround, border.m_top.m_width,
v); } | 1153 void setBorderTopWidth(unsigned v) { SET_VAR(m_surround, border.m_top.m_widt
h, v); } |
1154 void setBorderTopStyle(EBorderStyle v) { SET_VAR(surround, border.m_top.m_st
yle, v); } | 1154 void setBorderTopStyle(EBorderStyle v) { SET_VAR(m_surround, border.m_top.m_
style, v); } |
1155 void setBorderTopColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surround
, border.m_top, v); } | 1155 void setBorderTopColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(m_surrou
nd, border.m_top, v); } |
1156 void setBorderBottomWidth(unsigned v) { SET_VAR(surround, border.m_bottom.m_
width, v); } | 1156 void setBorderBottomWidth(unsigned v) { SET_VAR(m_surround, border.m_bottom.
m_width, v); } |
1157 void setBorderBottomStyle(EBorderStyle v) { SET_VAR(surround, border.m_botto
m.m_style, v); } | 1157 void setBorderBottomStyle(EBorderStyle v) { SET_VAR(m_surround, border.m_bot
tom.m_style, v); } |
1158 void setBorderBottomColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surro
und, border.m_bottom, v); } | 1158 void setBorderBottomColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(m_sur
round, border.m_bottom, v); } |
1159 | 1159 |
1160 void setOutlineWidth(unsigned short v) { SET_VAR(m_background, m_outline.m_w
idth, v); } | 1160 void setOutlineWidth(unsigned short v) { SET_VAR(m_background, m_outline.m_w
idth, v); } |
1161 void setOutlineStyleIsAuto(OutlineIsAuto isAuto) { SET_VAR(m_background, m_o
utline.m_isAuto, isAuto); } | 1161 void setOutlineStyleIsAuto(OutlineIsAuto isAuto) { SET_VAR(m_background, m_o
utline.m_isAuto, isAuto); } |
1162 void setOutlineStyle(EBorderStyle v) { SET_VAR(m_background, m_outline.m_sty
le, v); } | 1162 void setOutlineStyle(EBorderStyle v) { SET_VAR(m_background, m_outline.m_sty
le, v); } |
1163 void setOutlineColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(m_backgrou
nd, m_outline, v); } | 1163 void setOutlineColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(m_backgrou
nd, m_outline, v); } |
1164 bool isOutlineEquivalent(const ComputedStyle* otherStyle) const | 1164 bool isOutlineEquivalent(const ComputedStyle* otherStyle) const |
1165 { | 1165 { |
1166 // No other style, so we don't have an outline then we consider them to
be the same. | 1166 // No other style, so we don't have an outline then we consider them to
be the same. |
1167 if (!otherStyle) | 1167 if (!otherStyle) |
1168 return !hasOutline(); | 1168 return !hasOutline(); |
1169 return m_background->outline().visuallyEqual(otherStyle->m_background->o
utline()); | 1169 return m_background->outline().visuallyEqual(otherStyle->m_background->o
utline()); |
1170 } | 1170 } |
1171 void setOutlineFromStyle(const ComputedStyle& o) | 1171 void setOutlineFromStyle(const ComputedStyle& o) |
1172 { | 1172 { |
1173 ASSERT(!isOutlineEquivalent(&o)); | 1173 ASSERT(!isOutlineEquivalent(&o)); |
1174 m_background.access()->m_outline = o.m_background->m_outline; | 1174 m_background.access()->m_outline = o.m_background->m_outline; |
1175 } | 1175 } |
1176 | 1176 |
1177 void setOverflowX(EOverflow v) { noninherited_data.m_overflowX = v; } | 1177 void setOverflowX(EOverflow v) { m_nonInheritedData.m_overflowX = v; } |
1178 void setOverflowY(EOverflow v) { noninherited_data.m_overflowY = v; } | 1178 void setOverflowY(EOverflow v) { m_nonInheritedData.m_overflowY = v; } |
1179 void setVisibility(EVisibility v) { inherited_data.m_visibility = v; } | 1179 void setVisibility(EVisibility v) { m_inheritedData.m_visibility = v; } |
1180 void setVerticalAlign(EVerticalAlign v) { noninherited_data.m_verticalAlign
= v; } | 1180 void setVerticalAlign(EVerticalAlign v) { m_nonInheritedData.m_verticalAlign
= v; } |
1181 void setVerticalAlignLength(const Length& length) { setVerticalAlign(Vertica
lAlignLength); SET_VAR(m_box, m_verticalAlign, length); } | 1181 void setVerticalAlignLength(const Length& length) { setVerticalAlign(Vertica
lAlignLength); SET_VAR(m_box, m_verticalAlign, length); } |
1182 | 1182 |
1183 void setHasAutoClip() { SET_VAR(visual, hasAutoClip, true); SET_VAR(visual,
clip, ComputedStyle::initialClip()); } | 1183 void setHasAutoClip() { SET_VAR(m_visual, hasAutoClip, true); SET_VAR(m_visu
al, clip, ComputedStyle::initialClip()); } |
1184 void setClip(const LengthBox& box) { SET_VAR(visual, hasAutoClip, false); SE
T_VAR(visual, clip, box); } | 1184 void setClip(const LengthBox& box) { SET_VAR(m_visual, hasAutoClip, false);
SET_VAR(m_visual, clip, box); } |
1185 | 1185 |
1186 void setUnicodeBidi(EUnicodeBidi b) { noninherited_data.m_unicodeBidi = b; } | 1186 void setUnicodeBidi(EUnicodeBidi b) { m_nonInheritedData.m_unicodeBidi = b;
} |
1187 | 1187 |
1188 void setClear(EClear v) { noninherited_data.m_clear = v; } | 1188 void setClear(EClear v) { m_nonInheritedData.m_clear = v; } |
1189 void setTableLayout(ETableLayout v) { noninherited_data.m_tableLayout = v; } | 1189 void setTableLayout(ETableLayout v) { m_nonInheritedData.m_tableLayout = v;
} |
1190 | 1190 |
1191 bool setFontDescription(const FontDescription&); | 1191 bool setFontDescription(const FontDescription&); |
1192 void setFont(const Font&); | 1192 void setFont(const Font&); |
1193 | 1193 |
1194 void setTextAutosizingMultiplier(float); | 1194 void setTextAutosizingMultiplier(float); |
1195 | 1195 |
1196 void setColor(const Color&); | 1196 void setColor(const Color&); |
1197 void setTextIndent(const Length& v) { SET_VAR(rareInheritedData, indent, v);
} | 1197 void setTextIndent(const Length& v) { SET_VAR(m_rareInheritedData, indent, v
); } |
1198 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } | 1198 void setTextIndentLine(TextIndentLine v) { SET_VAR(m_rareInheritedData, m_te
xtIndentLine, v); } |
1199 void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_text
IndentType, v); } | 1199 void setTextIndentType(TextIndentType v) { SET_VAR(m_rareInheritedData, m_te
xtIndentType, v); } |
1200 void setTextAlign(ETextAlign v) { inherited_data.m_textAlign = v; } | 1200 void setTextAlign(ETextAlign v) { m_inheritedData.m_textAlign = v; } |
1201 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } | 1201 void setTextAlignLast(TextAlignLast v) { SET_VAR(m_rareInheritedData, m_text
AlignLast, v); } |
1202 void setTextJustify(TextJustify v) { SET_VAR(rareInheritedData, m_textJustif
y, v); } | 1202 void setTextJustify(TextJustify v) { SET_VAR(m_rareInheritedData, m_textJust
ify, v); } |
1203 void setTextTransform(ETextTransform v) { inherited_data.m_textTransform = v
; } | 1203 void setTextTransform(ETextTransform v) { m_inheritedData.m_textTransform =
v; } |
1204 void applyTextDecorations(); | 1204 void applyTextDecorations(); |
1205 void clearAppliedTextDecorations(); | 1205 void clearAppliedTextDecorations(); |
1206 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v
); } | 1206 void setTextDecoration(TextDecoration v) { SET_VAR(m_visual, textDecoration,
v); } |
1207 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit
edData, m_textUnderlinePosition, v); } | 1207 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(m_rareInher
itedData, m_textUnderlinePosition, v); } |
1208 void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(rareNonInherite
dData, m_textDecorationStyle, v); } | 1208 void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(m_rareNonInheri
tedData, m_textDecorationStyle, v); } |
1209 void setDirection(TextDirection v) { inherited_data.m_direction = v; } | 1209 void setDirection(TextDirection v) { m_inheritedData.m_direction = v; } |
1210 void setSelfOrAncestorHasDirAutoAttribute(bool v) { SET_VAR(rareInheritedDat
a, m_selfOrAncestorHasDirAutoAttribute, v); } | 1210 void setSelfOrAncestorHasDirAutoAttribute(bool v) { SET_VAR(m_rareInheritedD
ata, m_selfOrAncestorHasDirAutoAttribute, v); } |
1211 void setLineHeight(const Length& specifiedLineHeight); | 1211 void setLineHeight(const Length& specifiedLineHeight); |
1212 bool setZoom(float); | 1212 bool setZoom(float); |
1213 bool setEffectiveZoom(float); | 1213 bool setEffectiveZoom(float); |
1214 void clearMultiCol(); | 1214 void clearMultiCol(); |
1215 | 1215 |
1216 void setImageRendering(EImageRendering v) { SET_VAR(rareInheritedData, m_ima
geRendering, v); } | 1216 void setImageRendering(EImageRendering v) { SET_VAR(m_rareInheritedData, m_i
mageRendering, v); } |
1217 | 1217 |
1218 void setWhiteSpace(EWhiteSpace v) { inherited_data.m_whiteSpace = v; } | 1218 void setWhiteSpace(EWhiteSpace v) { m_inheritedData.m_whiteSpace = v; } |
1219 | 1219 |
1220 // FIXME: Remove these two and replace them with respective FontBuilder call
s. | 1220 // FIXME: Remove these two and replace them with respective FontBuilder call
s. |
1221 void setWordSpacing(float); | 1221 void setWordSpacing(float); |
1222 void setLetterSpacing(float); | 1222 void setLetterSpacing(float); |
1223 | 1223 |
1224 void adjustBackgroundLayers() | 1224 void adjustBackgroundLayers() |
1225 { | 1225 { |
1226 if (backgroundLayers().next()) { | 1226 if (backgroundLayers().next()) { |
1227 accessBackgroundLayers().cullEmptyLayers(); | 1227 accessBackgroundLayers().cullEmptyLayers(); |
1228 accessBackgroundLayers().fillUnsetProperties(); | 1228 accessBackgroundLayers().fillUnsetProperties(); |
1229 } | 1229 } |
1230 } | 1230 } |
1231 | 1231 |
1232 void adjustMaskLayers() | 1232 void adjustMaskLayers() |
1233 { | 1233 { |
1234 if (maskLayers().next()) { | 1234 if (maskLayers().next()) { |
1235 accessMaskLayers().cullEmptyLayers(); | 1235 accessMaskLayers().cullEmptyLayers(); |
1236 accessMaskLayers().fillUnsetProperties(); | 1236 accessMaskLayers().fillUnsetProperties(); |
1237 } | 1237 } |
1238 } | 1238 } |
1239 | 1239 |
1240 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(rareNonInheritedData
, m_maskBoxImage, b); } | 1240 void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(m_rareNonInheritedDa
ta, m_maskBoxImage, b); } |
1241 void setMaskBoxImageSource(StyleImage* v) { rareNonInheritedData.access()->m
_maskBoxImage.setImage(v); } | 1241 void setMaskBoxImageSource(StyleImage* v) { m_rareNonInheritedData.access()-
>m_maskBoxImage.setImage(v); } |
1242 void setMaskBoxImageSlices(const LengthBox& slices) | 1242 void setMaskBoxImageSlices(const LengthBox& slices) |
1243 { | 1243 { |
1244 rareNonInheritedData.access()->m_maskBoxImage.setImageSlices(slices); | 1244 m_rareNonInheritedData.access()->m_maskBoxImage.setImageSlices(slices); |
1245 } | 1245 } |
1246 void setMaskBoxImageSlicesFill(bool fill) | 1246 void setMaskBoxImageSlicesFill(bool fill) |
1247 { | 1247 { |
1248 rareNonInheritedData.access()->m_maskBoxImage.setFill(fill); | 1248 m_rareNonInheritedData.access()->m_maskBoxImage.setFill(fill); |
1249 } | 1249 } |
1250 void setMaskBoxImageWidth(const BorderImageLengthBox& slices) | 1250 void setMaskBoxImageWidth(const BorderImageLengthBox& slices) |
1251 { | 1251 { |
1252 rareNonInheritedData.access()->m_maskBoxImage.setBorderSlices(slices); | 1252 m_rareNonInheritedData.access()->m_maskBoxImage.setBorderSlices(slices); |
1253 } | 1253 } |
1254 void setMaskBoxImageOutset(const BorderImageLengthBox& outset) | 1254 void setMaskBoxImageOutset(const BorderImageLengthBox& outset) |
1255 { | 1255 { |
1256 rareNonInheritedData.access()->m_maskBoxImage.setOutset(outset); | 1256 m_rareNonInheritedData.access()->m_maskBoxImage.setOutset(outset); |
1257 } | 1257 } |
1258 | 1258 |
1259 void setBorderCollapse(EBorderCollapse collapse) { inherited_data.m_borderCo
llapse = collapse; } | 1259 void setBorderCollapse(EBorderCollapse collapse) { m_inheritedData.m_borderC
ollapse = collapse; } |
1260 void setHorizontalBorderSpacing(short); | 1260 void setHorizontalBorderSpacing(short); |
1261 void setVerticalBorderSpacing(short); | 1261 void setVerticalBorderSpacing(short); |
1262 void setEmptyCells(EEmptyCells v) { inherited_data.m_emptyCells = v; } | 1262 void setEmptyCells(EEmptyCells v) { m_inheritedData.m_emptyCells = v; } |
1263 void setCaptionSide(ECaptionSide v) { inherited_data.m_captionSide = v; } | 1263 void setCaptionSide(ECaptionSide v) { m_inheritedData.m_captionSide = v; } |
1264 | 1264 |
1265 void setListStyleType(EListStyleType v) { inherited_data.m_listStyleType = v
; } | 1265 void setListStyleType(EListStyleType v) { m_inheritedData.m_listStyleType =
v; } |
1266 void setListStyleImage(StyleImage*); | 1266 void setListStyleImage(StyleImage*); |
1267 void setListStylePosition(EListStylePosition v) { inherited_data.m_listStyle
Position = v; } | 1267 void setListStylePosition(EListStylePosition v) { m_inheritedData.m_listStyl
ePosition = v; } |
1268 | 1268 |
1269 void setMarginTop(const Length& v) { SET_VAR(surround, margin.m_top, v); } | 1269 void setMarginTop(const Length& v) { SET_VAR(m_surround, margin.m_top, v); } |
1270 void setMarginBottom(const Length& v) { SET_VAR(surround, margin.m_bottom, v
); } | 1270 void setMarginBottom(const Length& v) { SET_VAR(m_surround, margin.m_bottom,
v); } |
1271 void setMarginLeft(const Length& v) { SET_VAR(surround, margin.m_left, v); } | 1271 void setMarginLeft(const Length& v) { SET_VAR(m_surround, margin.m_left, v);
} |
1272 void setMarginRight(const Length& v) { SET_VAR(surround, margin.m_right, v);
} | 1272 void setMarginRight(const Length& v) { SET_VAR(m_surround, margin.m_right, v
); } |
1273 void setMarginStart(const Length&); | 1273 void setMarginStart(const Length&); |
1274 void setMarginEnd(const Length&); | 1274 void setMarginEnd(const Length&); |
1275 | 1275 |
1276 void resetPadding() { SET_VAR(surround, padding, LengthBox(Fixed)); } | 1276 void resetPadding() { SET_VAR(m_surround, padding, LengthBox(Fixed)); } |
1277 void setPaddingBox(const LengthBox& b) { SET_VAR(surround, padding, b); } | 1277 void setPaddingBox(const LengthBox& b) { SET_VAR(m_surround, padding, b); } |
1278 void setPaddingTop(const Length& v) { SET_VAR(surround, padding.m_top, v); } | 1278 void setPaddingTop(const Length& v) { SET_VAR(m_surround, padding.m_top, v);
} |
1279 void setPaddingBottom(const Length& v) { SET_VAR(surround, padding.m_bottom,
v); } | 1279 void setPaddingBottom(const Length& v) { SET_VAR(m_surround, padding.m_botto
m, v); } |
1280 void setPaddingLeft(const Length& v) { SET_VAR(surround, padding.m_left, v);
} | 1280 void setPaddingLeft(const Length& v) { SET_VAR(m_surround, padding.m_left, v
); } |
1281 void setPaddingRight(const Length& v) { SET_VAR(surround, padding.m_right, v
); } | 1281 void setPaddingRight(const Length& v) { SET_VAR(m_surround, padding.m_right,
v); } |
1282 | 1282 |
1283 void setCursor(ECursor c) { inherited_data.m_cursorStyle = c; } | 1283 void setCursor(ECursor c) { m_inheritedData.m_cursorStyle = c; } |
1284 void addCursor(StyleImage*, bool hotSpotSpecified, const IntPoint& hotSpot =
IntPoint()); | 1284 void addCursor(StyleImage*, bool hotSpotSpecified, const IntPoint& hotSpot =
IntPoint()); |
1285 void setCursorList(CursorList*); | 1285 void setCursorList(CursorList*); |
1286 void clearCursorList(); | 1286 void clearCursorList(); |
1287 | 1287 |
1288 void setInsideLink(EInsideLink insideLink) { inherited_data.m_insideLink = i
nsideLink; } | 1288 void setInsideLink(EInsideLink insideLink) { m_inheritedData.m_insideLink =
insideLink; } |
1289 void setIsLink(bool b) { noninherited_data.m_isLink = b; } | 1289 void setIsLink(bool b) { m_nonInheritedData.m_isLink = b; } |
1290 | 1290 |
1291 PrintColorAdjust getPrintColorAdjust() const { return static_cast<PrintColor
Adjust>(inherited_data.m_printColorAdjust); } | 1291 PrintColorAdjust getPrintColorAdjust() const { return static_cast<PrintColor
Adjust>(m_inheritedData.m_printColorAdjust); } |
1292 void setPrintColorAdjust(PrintColorAdjust value) { inherited_data.m_printCol
orAdjust = value; } | 1292 void setPrintColorAdjust(PrintColorAdjust value) { m_inheritedData.m_printCo
lorAdjust = value; } |
1293 | 1293 |
1294 // A stacking context is painted atomically and defines a stacking order, wh
ereas | 1294 // A stacking context is painted atomically and defines a stacking order, wh
ereas |
1295 // a containing stacking context defines in which order the stacking context
s | 1295 // a containing stacking context defines in which order the stacking context
s |
1296 // below are painted. | 1296 // below are painted. |
1297 // See CSS 2.1, Appendix E (https://www.w3.org/TR/CSS21/zindex.html) for mor
e details. | 1297 // See CSS 2.1, Appendix E (https://www.w3.org/TR/CSS21/zindex.html) for mor
e details. |
1298 bool isStackingContext() const { return rareNonInheritedData->m_isStackingCo
ntext; } | 1298 bool isStackingContext() const { return m_rareNonInheritedData->m_isStacking
Context; } |
1299 | 1299 |
1300 void updateIsStackingContext(bool isDocumentElement, bool isInTopLayer); | 1300 void updateIsStackingContext(bool isDocumentElement, bool isInTopLayer); |
1301 void setIsStackingContext(bool b) { SET_VAR(rareNonInheritedData, m_isStacki
ngContext, b); } | 1301 void setIsStackingContext(bool b) { SET_VAR(m_rareNonInheritedData, m_isStac
kingContext, b); } |
1302 | 1302 |
1303 // Stacking contexts and positioned elements[1] are stacked (sorted in negZO
rderList | 1303 // Stacking contexts and positioned elements[1] are stacked (sorted in negZO
rderList |
1304 // and posZOrderList) in their enclosing stacking contexts. | 1304 // and posZOrderList) in their enclosing stacking contexts. |
1305 // | 1305 // |
1306 // [1] According to CSS2.1, Appendix E.2.8 (https://www.w3.org/TR/CSS21/zind
ex.html), | 1306 // [1] According to CSS2.1, Appendix E.2.8 (https://www.w3.org/TR/CSS21/zind
ex.html), |
1307 // positioned elements with 'z-index: auto' are "treated as if it created a
new | 1307 // positioned elements with 'z-index: auto' are "treated as if it created a
new |
1308 // stacking context" and z-ordered together with other elements with 'z-inde
x: 0'. | 1308 // stacking context" and z-ordered together with other elements with 'z-inde
x: 0'. |
1309 // The difference of them from normal stacking contexts is that they don't d
etermine | 1309 // The difference of them from normal stacking contexts is that they don't d
etermine |
1310 // the stacking of the elements underneath them. | 1310 // the stacking of the elements underneath them. |
1311 // (Note: There are also other elements treated as stacking context during p
ainting, | 1311 // (Note: There are also other elements treated as stacking context during p
ainting, |
1312 // but not managed in stacks. See ObjectPainter::paintAllPhasesAtomically().
) | 1312 // but not managed in stacks. See ObjectPainter::paintAllPhasesAtomically().
) |
1313 bool isStacked() const { return isStackingContext() || position() != StaticP
osition; } | 1313 bool isStacked() const { return isStackingContext() || position() != StaticP
osition; } |
1314 | 1314 |
1315 bool hasAutoZIndex() const { return m_box->hasAutoZIndex(); } | 1315 bool hasAutoZIndex() const { return m_box->hasAutoZIndex(); } |
1316 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b
ox, m_zIndex, 0); } | 1316 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b
ox, m_zIndex, 0); } |
1317 int zIndex() const { return m_box->zIndex(); } | 1317 int zIndex() const { return m_box->zIndex(); } |
1318 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo
x, m_zIndex, v); } | 1318 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo
x, m_zIndex, v); } |
1319 void setWidows(short w) { SET_VAR(rareInheritedData, widows, w); } | 1319 void setWidows(short w) { SET_VAR(m_rareInheritedData, widows, w); } |
1320 void setOrphans(short o) { SET_VAR(rareInheritedData, orphans, o); } | 1320 void setOrphans(short o) { SET_VAR(m_rareInheritedData, orphans, o); } |
1321 void setBreakAfter(EBreak b) { DCHECK_LE(b, BreakValueLastAllowedForBreakAft
erAndBefore); noninherited_data.m_breakAfter = b; } | 1321 void setBreakAfter(EBreak b) { DCHECK_LE(b, BreakValueLastAllowedForBreakAft
erAndBefore); m_nonInheritedData.m_breakAfter = b; } |
1322 void setBreakBefore(EBreak b) { DCHECK_LE(b, BreakValueLastAllowedForBreakAf
terAndBefore); noninherited_data.m_breakBefore = b; } | 1322 void setBreakBefore(EBreak b) { DCHECK_LE(b, BreakValueLastAllowedForBreakAf
terAndBefore); m_nonInheritedData.m_breakBefore = b; } |
1323 void setBreakInside(EBreak b) { DCHECK_LE(b, BreakValueLastAllowedForBreakIn
side); noninherited_data.m_breakInside = b; } | 1323 void setBreakInside(EBreak b) { DCHECK_LE(b, BreakValueLastAllowedForBreakIn
side); m_nonInheritedData.m_breakInside = b; } |
1324 | 1324 |
1325 void setTextSizeAdjust(TextSizeAdjust sizeAdjust) { SET_VAR(rareInheritedDat
a, m_textSizeAdjust, sizeAdjust); } | 1325 void setTextSizeAdjust(TextSizeAdjust sizeAdjust) { SET_VAR(m_rareInheritedD
ata, m_textSizeAdjust, sizeAdjust); } |
1326 | 1326 |
1327 // CSS3 Setters | 1327 // CSS3 Setters |
1328 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} | 1328 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} |
1329 void setTextShadow(PassRefPtr<ShadowList>); | 1329 void setTextShadow(PassRefPtr<ShadowList>); |
1330 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInher
itedData, textStrokeColor, setTextStrokeColor, c); } | 1330 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(m_rareInh
eritedData, textStrokeColor, setTextStrokeColor, c); } |
1331 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } | 1331 void setTextStrokeWidth(float w) { SET_VAR(m_rareInheritedData, textStrokeWi
dth, w); } |
1332 void setTextFillColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInherit
edData, textFillColor, setTextFillColor, c); } | 1332 void setTextFillColor(const StyleColor& c) { SET_VAR_WITH_SETTER(m_rareInher
itedData, textFillColor, setTextFillColor, c); } |
1333 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo
nInheritedData, opacity, v); } | 1333 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(m_rare
NonInheritedData, opacity, v); } |
1334 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan
ce, a); } | 1334 void setAppearance(ControlPart a) { SET_VAR(m_rareNonInheritedData, m_appear
ance, a); } |
1335 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb
ox-20090723/#alignment | 1335 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb
ox-20090723/#alignment |
1336 void setBoxAlign(EBoxAlignment a) { SET_NESTED_VAR(rareNonInheritedData, m_d
eprecatedFlexibleBox, align, a); } | 1336 void setBoxAlign(EBoxAlignment a) { SET_NESTED_VAR(m_rareNonInheritedData, m
_deprecatedFlexibleBox, align, a); } |
1337 void setBoxDecorationBreak(EBoxDecorationBreak b) { SET_VAR(m_box, m_boxDeco
rationBreak, b); } | 1337 void setBoxDecorationBreak(EBoxDecorationBreak b) { SET_VAR(m_box, m_boxDeco
rationBreak, b); } |
1338 void setBoxDirection(EBoxDirection d) { inherited_data.m_boxDirection = d; } | 1338 void setBoxDirection(EBoxDirection d) { m_inheritedData.m_boxDirection = d;
} |
1339 void setBoxFlex(float f) { SET_NESTED_VAR(rareNonInheritedData, m_deprecated
FlexibleBox, flex, f); } | 1339 void setBoxFlex(float f) { SET_NESTED_VAR(m_rareNonInheritedData, m_deprecat
edFlexibleBox, flex, f); } |
1340 void setBoxFlexGroup(unsigned fg) { SET_NESTED_VAR(rareNonInheritedData, m_d
eprecatedFlexibleBox, flexGroup, fg); } | 1340 void setBoxFlexGroup(unsigned fg) { SET_NESTED_VAR(m_rareNonInheritedData, m
_deprecatedFlexibleBox, flexGroup, fg); } |
1341 void setBoxLines(EBoxLines l) { SET_NESTED_VAR(rareNonInheritedData, m_depre
catedFlexibleBox, lines, l); } | 1341 void setBoxLines(EBoxLines lines) { SET_NESTED_VAR(m_rareNonInheritedData, m
_deprecatedFlexibleBox, lines, lines); } |
1342 void setBoxOrdinalGroup(unsigned og) { SET_NESTED_VAR(rareNonInheritedData,
m_deprecatedFlexibleBox, ordinalGroup, og); } | 1342 void setBoxOrdinalGroup(unsigned og) { SET_NESTED_VAR(m_rareNonInheritedData
, m_deprecatedFlexibleBox, ordinalGroup, og); } |
1343 void setBoxOrient(EBoxOrient o) { SET_NESTED_VAR(rareNonInheritedData, m_dep
recatedFlexibleBox, orient, o); } | 1343 void setBoxOrient(EBoxOrient o) { SET_NESTED_VAR(m_rareNonInheritedData, m_d
eprecatedFlexibleBox, orient, o); } |
1344 void setBoxPack(EBoxPack p) { SET_NESTED_VAR(rareNonInheritedData, m_depreca
tedFlexibleBox, pack, p); } | 1344 void setBoxPack(EBoxPack p) { SET_NESTED_VAR(m_rareNonInheritedData, m_depre
catedFlexibleBox, pack, p); } |
1345 void setBoxShadow(PassRefPtr<ShadowList>); | 1345 void setBoxShadow(PassRefPtr<ShadowList>); |
1346 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit
edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r
eflect; } | 1346 void setBoxReflect(PassRefPtr<StyleReflection> reflect) |
| 1347 { |
| 1348 if (m_rareNonInheritedData->m_boxReflect != reflect) |
| 1349 m_rareNonInheritedData.access()->m_boxReflect = reflect; |
| 1350 } |
1347 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); } | 1351 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); } |
1348 void setContain(Containment contain) { SET_VAR(rareNonInheritedData, m_conta
in, contain); } | 1352 void setContain(Containment contain) { SET_VAR(m_rareNonInheritedData, m_con
tain, contain); } |
1349 void setFlexGrow(float f) { SET_NESTED_VAR(rareNonInheritedData, m_flexibleB
ox, m_flexGrow, f); } | 1353 void setFlexGrow(float f) { SET_NESTED_VAR(m_rareNonInheritedData, m_flexibl
eBox, m_flexGrow, f); } |
1350 void setFlexShrink(float f) { SET_NESTED_VAR(rareNonInheritedData, m_flexibl
eBox, m_flexShrink, f); } | 1354 void setFlexShrink(float f) { SET_NESTED_VAR(m_rareNonInheritedData, m_flexi
bleBox, m_flexShrink, f); } |
1351 void setFlexBasis(const Length& length) { SET_NESTED_VAR(rareNonInheritedDat
a, m_flexibleBox, m_flexBasis, length); } | 1355 void setFlexBasis(const Length& length) { SET_NESTED_VAR(m_rareNonInheritedD
ata, m_flexibleBox, m_flexBasis, length); } |
1352 // 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. | 1356 // 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. |
1353 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, max(std::numer
ic_limits<int>::min() + 2, o)); } | 1357 void setOrder(int o) { SET_VAR(m_rareNonInheritedData, m_order, max(std::num
eric_limits<int>::min() + 2, o)); } |
1354 void addCallbackSelector(const String& selector); | 1358 void addCallbackSelector(const String& selector); |
1355 void setAlignContent(const StyleContentAlignmentData& data) { SET_VAR(rareNo
nInheritedData, m_alignContent, data); } | 1359 void setAlignContent(const StyleContentAlignmentData& data) { SET_VAR(m_rare
NonInheritedData, m_alignContent, data); } |
1356 void setAlignContentPosition(ContentPosition position) { rareNonInheritedDat
a.access()->m_alignContent.setPosition(position); } | 1360 void setAlignContentPosition(ContentPosition position) { m_rareNonInheritedD
ata.access()->m_alignContent.setPosition(position); } |
1357 void setAlignContentDistribution(ContentDistributionType distribution) { rar
eNonInheritedData.access()->m_alignContent.setDistribution(distribution); } | 1361 void setAlignContentDistribution(ContentDistributionType distribution) { m_r
areNonInheritedData.access()->m_alignContent.setDistribution(distribution); } |
1358 void setAlignContentOverflow(OverflowAlignment overflow) { rareNonInheritedD
ata.access()->m_alignContent.setOverflow(overflow); } | 1362 void setAlignContentOverflow(OverflowAlignment overflow) { m_rareNonInherite
dData.access()->m_alignContent.setOverflow(overflow); } |
1359 void setAlignItems(const StyleSelfAlignmentData& data) { SET_VAR(rareNonInhe
ritedData, m_alignItems, data); } | 1363 void setAlignItems(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNonIn
heritedData, m_alignItems, data); } |
1360 void setAlignItemsPosition(ItemPosition position) { rareNonInheritedData.acc
ess()->m_alignItems.setPosition(position); } | 1364 void setAlignItemsPosition(ItemPosition position) { m_rareNonInheritedData.a
ccess()->m_alignItems.setPosition(position); } |
1361 void setAlignItemsOverflow(OverflowAlignment overflow) { rareNonInheritedDat
a.access()->m_alignItems.setOverflow(overflow); } | 1365 void setAlignItemsOverflow(OverflowAlignment overflow) { m_rareNonInheritedD
ata.access()->m_alignItems.setOverflow(overflow); } |
1362 void setAlignSelf(const StyleSelfAlignmentData& data) { SET_VAR(rareNonInher
itedData, m_alignSelf, data); } | 1366 void setAlignSelf(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNonInh
eritedData, m_alignSelf, data); } |
1363 void setAlignSelfPosition(ItemPosition position) { rareNonInheritedData.acce
ss()->m_alignSelf.setPosition(position); } | 1367 void setAlignSelfPosition(ItemPosition position) { m_rareNonInheritedData.ac
cess()->m_alignSelf.setPosition(position); } |
1364 void setAlignSelfOverflow(OverflowAlignment overflow) { rareNonInheritedData
.access()->m_alignSelf.setOverflow(overflow); } | 1368 void setAlignSelfOverflow(OverflowAlignment overflow) { m_rareNonInheritedDa
ta.access()->m_alignSelf.setOverflow(overflow); } |
1365 void setFlexDirection(EFlexDirection direction) { SET_NESTED_VAR(rareNonInhe
ritedData, m_flexibleBox, m_flexDirection, direction); } | 1369 void setFlexDirection(EFlexDirection direction) { SET_NESTED_VAR(m_rareNonIn
heritedData, m_flexibleBox, m_flexDirection, direction); } |
1366 void setFlexWrap(EFlexWrap w) { SET_NESTED_VAR(rareNonInheritedData, m_flexi
bleBox, m_flexWrap, w); } | 1370 void setFlexWrap(EFlexWrap w) { SET_NESTED_VAR(m_rareNonInheritedData, m_fle
xibleBox, m_flexWrap, w); } |
1367 void setJustifyContent(const StyleContentAlignmentData& data) { SET_VAR(rare
NonInheritedData, m_justifyContent, data); } | 1371 void setJustifyContent(const StyleContentAlignmentData& data) { SET_VAR(m_ra
reNonInheritedData, m_justifyContent, data); } |
1368 void setJustifyContentPosition(ContentPosition position) { rareNonInheritedD
ata.access()->m_justifyContent.setPosition(position); } | 1372 void setJustifyContentPosition(ContentPosition position) { m_rareNonInherite
dData.access()->m_justifyContent.setPosition(position); } |
1369 void setJustifyContentDistribution(ContentDistributionType distribution) { r
areNonInheritedData.access()->m_justifyContent.setDistribution(distribution); } | 1373 void setJustifyContentDistribution(ContentDistributionType distribution) { m
_rareNonInheritedData.access()->m_justifyContent.setDistribution(distribution);
} |
1370 void setJustifyContentOverflow(OverflowAlignment overflow) { rareNonInherite
dData.access()->m_justifyContent.setOverflow(overflow); } | 1374 void setJustifyContentOverflow(OverflowAlignment overflow) { m_rareNonInheri
tedData.access()->m_justifyContent.setOverflow(overflow); } |
1371 void setJustifyItems(const StyleSelfAlignmentData& data) { SET_VAR(rareNonIn
heritedData, m_justifyItems, data); } | 1375 void setJustifyItems(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNon
InheritedData, m_justifyItems, data); } |
1372 void setJustifyItemsPosition(ItemPosition position) { rareNonInheritedData.a
ccess()->m_justifyItems.setPosition(position); } | 1376 void setJustifyItemsPosition(ItemPosition position) { m_rareNonInheritedData
.access()->m_justifyItems.setPosition(position); } |
1373 void setJustifyItemsOverflow(OverflowAlignment overflow) { rareNonInheritedD
ata.access()->m_justifyItems.setOverflow(overflow); } | 1377 void setJustifyItemsOverflow(OverflowAlignment overflow) { m_rareNonInherite
dData.access()->m_justifyItems.setOverflow(overflow); } |
1374 void setJustifyItemsPositionType(ItemPositionType positionType) { rareNonInh
eritedData.access()->m_justifyItems.setPositionType(positionType); } | 1378 void setJustifyItemsPositionType(ItemPositionType positionType) { m_rareNonI
nheritedData.access()->m_justifyItems.setPositionType(positionType); } |
1375 void setJustifySelf(const StyleSelfAlignmentData& data) { SET_VAR(rareNonInh
eritedData, m_justifySelf, data); } | 1379 void setJustifySelf(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNonI
nheritedData, m_justifySelf, data); } |
1376 void setJustifySelfPosition(ItemPosition position) { rareNonInheritedData.ac
cess()->m_justifySelf.setPosition(position); } | 1380 void setJustifySelfPosition(ItemPosition position) { m_rareNonInheritedData.
access()->m_justifySelf.setPosition(position); } |
1377 void setJustifySelfOverflow(OverflowAlignment overflow) { rareNonInheritedDa
ta.access()->m_justifySelf.setOverflow(overflow); } | 1381 void setJustifySelfOverflow(OverflowAlignment overflow) { m_rareNonInherited
Data.access()->m_justifySelf.setOverflow(overflow); } |
1378 void setGridAutoColumns(const GridTrackSize& length) { SET_NESTED_VAR(rareNo
nInheritedData, m_grid, m_gridAutoColumns, length); } | 1382 void setGridAutoColumns(const GridTrackSize& length) { SET_NESTED_VAR(m_rare
NonInheritedData, m_grid, m_gridAutoColumns, length); } |
1379 void setGridAutoRows(const GridTrackSize& length) { SET_NESTED_VAR(rareNonIn
heritedData, m_grid, m_gridAutoRows, length); } | 1383 void setGridAutoRows(const GridTrackSize& length) { SET_NESTED_VAR(m_rareNon
InheritedData, m_grid, m_gridAutoRows, length); } |
1380 void setGridTemplateColumns(const Vector<GridTrackSize>& lengths) { SET_NEST
ED_VAR(rareNonInheritedData, m_grid, m_gridTemplateColumns, lengths); } | 1384 void setGridTemplateColumns(const Vector<GridTrackSize>& lengths) { SET_NEST
ED_VAR(m_rareNonInheritedData, m_grid, m_gridTemplateColumns, lengths); } |
1381 void setGridTemplateRows(const Vector<GridTrackSize>& lengths) { SET_NESTED_
VAR(rareNonInheritedData, m_grid, m_gridTemplateRows, lengths); } | 1385 void setGridTemplateRows(const Vector<GridTrackSize>& lengths) { SET_NESTED_
VAR(m_rareNonInheritedData, m_grid, m_gridTemplateRows, lengths); } |
1382 void setGridAutoRepeatColumns(const Vector<GridTrackSize>& trackSizes) { SET
_NESTED_VAR(rareNonInheritedData, m_grid, m_gridAutoRepeatColumns, trackSizes);
} | 1386 void setGridAutoRepeatColumns(const Vector<GridTrackSize>& trackSizes) { SET
_NESTED_VAR(m_rareNonInheritedData, m_grid, m_gridAutoRepeatColumns, trackSizes)
; } |
1383 void setGridAutoRepeatRows(const Vector<GridTrackSize>& trackSizes) { SET_NE
STED_VAR(rareNonInheritedData, m_grid, m_gridAutoRepeatRows, trackSizes); } | 1387 void setGridAutoRepeatRows(const Vector<GridTrackSize>& trackSizes) { SET_NE
STED_VAR(m_rareNonInheritedData, m_grid, m_gridAutoRepeatRows, trackSizes); } |
1384 void setGridAutoRepeatColumnsInsertionPoint(const size_t insertionPoint) { S
ET_NESTED_VAR(rareNonInheritedData, m_grid, m_autoRepeatColumnsInsertionPoint, i
nsertionPoint); } | 1388 void setGridAutoRepeatColumnsInsertionPoint(const size_t insertionPoint) { S
ET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRepeatColumnsInsertionPoint,
insertionPoint); } |
1385 void setGridAutoRepeatRowsInsertionPoint(const size_t insertionPoint) { SET_
NESTED_VAR(rareNonInheritedData, m_grid, m_autoRepeatRowsInsertionPoint, inserti
onPoint); } | 1389 void setGridAutoRepeatRowsInsertionPoint(const size_t insertionPoint) { SET_
NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRepeatRowsInsertionPoint, inser
tionPoint); } |
1386 void setGridAutoRepeatColumnsType(const AutoRepeatType autoRepeatType) { SET
_NESTED_VAR(rareNonInheritedData, m_grid, m_autoRepeatColumnsType, autoRepeatTyp
e); } | 1390 void setGridAutoRepeatColumnsType(const AutoRepeatType autoRepeatType) { SET
_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRepeatColumnsType, autoRepeatT
ype); } |
1387 void setGridAutoRepeatRowsType(const AutoRepeatType autoRepeatType) { SET_NE
STED_VAR(rareNonInheritedData, m_grid, m_autoRepeatRowsType, autoRepeatType); } | 1391 void setGridAutoRepeatRowsType(const AutoRepeatType autoRepeatType) { SET_NE
STED_VAR(m_rareNonInheritedData, m_grid, m_autoRepeatRowsType, autoRepeatType);
} |
1388 void setNamedGridColumnLines(const NamedGridLinesMap& namedGridColumnLines)
{ SET_NESTED_VAR(rareNonInheritedData, m_grid, m_namedGridColumnLines, namedGrid
ColumnLines); } | 1392 void setNamedGridColumnLines(const NamedGridLinesMap& namedGridColumnLines)
{ SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_namedGridColumnLines, namedGr
idColumnLines); } |
1389 void setNamedGridRowLines(const NamedGridLinesMap& namedGridRowLines) { SET_
NESTED_VAR(rareNonInheritedData, m_grid, m_namedGridRowLines, namedGridRowLines)
; } | 1393 void setNamedGridRowLines(const NamedGridLinesMap& namedGridRowLines) { SET_
NESTED_VAR(m_rareNonInheritedData, m_grid, m_namedGridRowLines, namedGridRowLine
s); } |
1390 void setOrderedNamedGridColumnLines(const OrderedNamedGridLines& orderedName
dGridColumnLines) { SET_NESTED_VAR(rareNonInheritedData, m_grid, m_orderedNamedG
ridColumnLines, orderedNamedGridColumnLines); } | 1394 void setOrderedNamedGridColumnLines(const OrderedNamedGridLines& orderedName
dGridColumnLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_orderedName
dGridColumnLines, orderedNamedGridColumnLines); } |
1391 void setOrderedNamedGridRowLines(const OrderedNamedGridLines& orderedNamedGr
idRowLines) { SET_NESTED_VAR(rareNonInheritedData, m_grid, m_orderedNamedGridRow
Lines, orderedNamedGridRowLines); } | 1395 void setOrderedNamedGridRowLines(const OrderedNamedGridLines& orderedNamedGr
idRowLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_orderedNamedGridR
owLines, orderedNamedGridRowLines); } |
1392 void setAutoRepeatNamedGridColumnLines(const NamedGridLinesMap& namedGridCol
umnLines) { SET_NESTED_VAR(rareNonInheritedData, m_grid, m_autoRepeatNamedGridCo
lumnLines, namedGridColumnLines); } | 1396 void setAutoRepeatNamedGridColumnLines(const NamedGridLinesMap& namedGridCol
umnLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRepeatNamedGrid
ColumnLines, namedGridColumnLines); } |
1393 void setAutoRepeatNamedGridRowLines(const NamedGridLinesMap& namedGridRowLin
es) { SET_NESTED_VAR(rareNonInheritedData, m_grid, m_autoRepeatNamedGridRowLines
, namedGridRowLines); } | 1397 void setAutoRepeatNamedGridRowLines(const NamedGridLinesMap& namedGridRowLin
es) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRepeatNamedGridRowLin
es, namedGridRowLines); } |
1394 void setAutoRepeatOrderedNamedGridColumnLines(const OrderedNamedGridLines& o
rderedNamedGridColumnLines) { SET_NESTED_VAR(rareNonInheritedData, m_grid, m_aut
oRepeatOrderedNamedGridColumnLines, orderedNamedGridColumnLines); } | 1398 void setAutoRepeatOrderedNamedGridColumnLines(const OrderedNamedGridLines& o
rderedNamedGridColumnLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_a
utoRepeatOrderedNamedGridColumnLines, orderedNamedGridColumnLines); } |
1395 void setAutoRepeatOrderedNamedGridRowLines(const OrderedNamedGridLines& orde
redNamedGridRowLines) { SET_NESTED_VAR(rareNonInheritedData, m_grid, m_autoRepea
tOrderedNamedGridRowLines, orderedNamedGridRowLines); } | 1399 void setAutoRepeatOrderedNamedGridRowLines(const OrderedNamedGridLines& orde
redNamedGridRowLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRep
eatOrderedNamedGridRowLines, orderedNamedGridRowLines); } |
1396 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_NESTED_VA
R(rareNonInheritedData, m_grid, m_namedGridArea, namedGridArea); } | 1400 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_NESTED_VA
R(m_rareNonInheritedData, m_grid, m_namedGridArea, namedGridArea); } |
1397 void setNamedGridAreaRowCount(size_t rowCount) { SET_NESTED_VAR(rareNonInher
itedData, m_grid, m_namedGridAreaRowCount, rowCount); } | 1401 void setNamedGridAreaRowCount(size_t rowCount) { SET_NESTED_VAR(m_rareNonInh
eritedData, m_grid, m_namedGridAreaRowCount, rowCount); } |
1398 void setNamedGridAreaColumnCount(size_t columnCount) { SET_NESTED_VAR(rareNo
nInheritedData, m_grid, m_namedGridAreaColumnCount, columnCount); } | 1402 void setNamedGridAreaColumnCount(size_t columnCount) { SET_NESTED_VAR(m_rare
NonInheritedData, m_grid, m_namedGridAreaColumnCount, columnCount); } |
1399 void setGridAutoFlow(GridAutoFlow flow) { SET_NESTED_VAR(rareNonInheritedDat
a, m_grid, m_gridAutoFlow, flow); } | 1403 void setGridAutoFlow(GridAutoFlow flow) { SET_NESTED_VAR(m_rareNonInheritedD
ata, m_grid, m_gridAutoFlow, flow); } |
1400 | 1404 |
1401 void setGridColumnStart(const GridPosition& columnStartPosition) { SET_NESTE
D_VAR(rareNonInheritedData, m_gridItem, m_gridColumnStart, columnStartPosition);
} | 1405 void setGridColumnStart(const GridPosition& columnStartPosition) { SET_NESTE
D_VAR(m_rareNonInheritedData, m_gridItem, m_gridColumnStart, columnStartPosition
); } |
1402 void setGridColumnEnd(const GridPosition& columnEndPosition) { SET_NESTED_VA
R(rareNonInheritedData, m_gridItem, m_gridColumnEnd, columnEndPosition); } | 1406 void setGridColumnEnd(const GridPosition& columnEndPosition) { SET_NESTED_VA
R(m_rareNonInheritedData, m_gridItem, m_gridColumnEnd, columnEndPosition); } |
1403 void setGridRowStart(const GridPosition& rowStartPosition) { SET_NESTED_VAR(
rareNonInheritedData, m_gridItem, m_gridRowStart, rowStartPosition); } | 1407 void setGridRowStart(const GridPosition& rowStartPosition) { SET_NESTED_VAR(
m_rareNonInheritedData, m_gridItem, m_gridRowStart, rowStartPosition); } |
1404 void setGridRowEnd(const GridPosition& rowEndPosition) { SET_NESTED_VAR(rare
NonInheritedData, m_gridItem, m_gridRowEnd, rowEndPosition); } | 1408 void setGridRowEnd(const GridPosition& rowEndPosition) { SET_NESTED_VAR(m_ra
reNonInheritedData, m_gridItem, m_gridRowEnd, rowEndPosition); } |
1405 void setGridColumnGap(const Length& v) { SET_NESTED_VAR(rareNonInheritedData
, m_grid, m_gridColumnGap, v); } | 1409 void setGridColumnGap(const Length& v) { SET_NESTED_VAR(m_rareNonInheritedDa
ta, m_grid, m_gridColumnGap, v); } |
1406 void setGridRowGap(const Length& v) { SET_NESTED_VAR(rareNonInheritedData, m
_grid, m_gridRowGap, v); } | 1410 void setGridRowGap(const Length& v) { SET_NESTED_VAR(m_rareNonInheritedData,
m_grid, m_gridRowGap, v); } |
1407 | 1411 |
1408 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u
); } | 1412 void setUserModify(EUserModify u) { SET_VAR(m_rareInheritedData, userModify,
u); } |
1409 void setUserDrag(EUserDrag d) { SET_VAR(rareNonInheritedData, userDrag, d);
} | 1413 void setUserDrag(EUserDrag d) { SET_VAR(m_rareNonInheritedData, userDrag, d)
; } |
1410 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s
); } | 1414 void setUserSelect(EUserSelect s) { SET_VAR(m_rareInheritedData, userSelect,
s); } |
1411 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData,
textOverflow, overflow); } | 1415 void setTextOverflow(TextOverflow overflow) { SET_VAR(m_rareNonInheritedData
, textOverflow, overflow); } |
1412 void setMarginBeforeCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDa
ta, marginBeforeCollapse, c); } | 1416 void setMarginBeforeCollapse(EMarginCollapse c) { SET_VAR(m_rareNonInherited
Data, marginBeforeCollapse, c); } |
1413 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat
a, marginAfterCollapse, c); } | 1417 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(m_rareNonInheritedD
ata, marginAfterCollapse, c); } |
1414 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b);
} | 1418 void setWordBreak(EWordBreak b) { SET_VAR(m_rareInheritedData, wordBreak, b)
; } |
1415 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW
rap, b); } | 1419 void setOverflowWrap(EOverflowWrap b) { SET_VAR(m_rareInheritedData, overflo
wWrap, b); } |
1416 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); } | 1420 void setLineBreak(LineBreak b) { SET_VAR(m_rareInheritedData, lineBreak, b);
} |
1417 void setHighlight(const AtomicString& h) { SET_VAR(rareInheritedData, highli
ght, h); } | 1421 void setHighlight(const AtomicString& h) { SET_VAR(m_rareInheritedData, high
light, h); } |
1418 void setHyphens(Hyphens h) { SET_VAR(rareInheritedData, hyphens, h); } | 1422 void setHyphens(Hyphens h) { SET_VAR(m_rareInheritedData, hyphens, h); } |
1419 void setHyphenationString(const AtomicString& h) { SET_VAR(rareInheritedData
, hyphenationString, h); } | 1423 void setHyphenationString(const AtomicString& h) { SET_VAR(m_rareInheritedDa
ta, hyphenationString, h); } |
1420 void setResize(EResize r) { SET_VAR(rareNonInheritedData, m_resize, r); } | 1424 void setResize(EResize r) { SET_VAR(m_rareNonInheritedData, m_resize, r); } |
1421 void setColumnWidth(float f) { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoWidth, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_widt
h, f); } | 1425 void setColumnWidth(float f) { SET_NESTED_VAR(m_rareNonInheritedData, m_mult
iCol, m_autoWidth, false); SET_NESTED_VAR(m_rareNonInheritedData, m_multiCol, m_
width, f); } |
1422 void setHasAutoColumnWidth() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoWidth, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_width
, 0); } | 1426 void setHasAutoColumnWidth() { SET_NESTED_VAR(m_rareNonInheritedData, m_mult
iCol, m_autoWidth, true); SET_NESTED_VAR(m_rareNonInheritedData, m_multiCol, m_w
idth, 0); } |
1423 void setColumnCount(unsigned short c) { SET_NESTED_VAR(rareNonInheritedData,
m_multiCol, m_autoCount, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCo
l, m_count, c); } | 1427 void setColumnCount(unsigned short c) { SET_NESTED_VAR(m_rareNonInheritedDat
a, m_multiCol, m_autoCount, false); SET_NESTED_VAR(m_rareNonInheritedData, m_mul
tiCol, m_count, c); } |
1424 void setHasAutoColumnCount() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_autoCount, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_count
, initialColumnCount()); } | 1428 void setHasAutoColumnCount() { SET_NESTED_VAR(m_rareNonInheritedData, m_mult
iCol, m_autoCount, true); SET_NESTED_VAR(m_rareNonInheritedData, m_multiCol, m_c
ount, initialColumnCount()); } |
1425 void setColumnFill(ColumnFill columnFill) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_fill, columnFill); } | 1429 void setColumnFill(ColumnFill columnFill) { SET_NESTED_VAR(m_rareNonInherite
dData, m_multiCol, m_fill, columnFill); } |
1426 void setColumnGap(float f) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol
, m_normalGap, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap, f
); } | 1430 void setColumnGap(float f) { SET_NESTED_VAR(m_rareNonInheritedData, m_multiC
ol, m_normalGap, false); SET_NESTED_VAR(m_rareNonInheritedData, m_multiCol, m_ga
p, f); } |
1427 void setHasNormalColumnGap() { SET_NESTED_VAR(rareNonInheritedData, m_multiC
ol, m_normalGap, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap,
0); } | 1431 void setHasNormalColumnGap() { SET_NESTED_VAR(m_rareNonInheritedData, m_mult
iCol, m_normalGap, true); SET_NESTED_VAR(m_rareNonInheritedData, m_multiCol, m_g
ap, 0); } |
1428 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon
InheritedData.access()->m_multiCol, m_rule, c); } | 1432 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(m_rareN
onInheritedData.access()->m_multiCol, m_rule, c); } |
1429 void setColumnRuleStyle(EBorderStyle b) { SET_NESTED_VAR(rareNonInheritedDat
a, m_multiCol, m_rule.m_style, b); } | 1433 void setColumnRuleStyle(EBorderStyle b) { SET_NESTED_VAR(m_rareNonInheritedD
ata, m_multiCol, m_rule.m_style, b); } |
1430 void setColumnRuleWidth(unsigned short w) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_rule.m_width, w); } | 1434 void setColumnRuleWidth(unsigned short w) { SET_NESTED_VAR(m_rareNonInherite
dData, m_multiCol, m_rule.m_width, w); } |
1431 void setColumnSpan(ColumnSpan columnSpan) { SET_NESTED_VAR(rareNonInheritedD
ata, m_multiCol, m_columnSpan, columnSpan); } | 1435 void setColumnSpan(ColumnSpan columnSpan) { SET_NESTED_VAR(m_rareNonInherite
dData, m_multiCol, m_columnSpan, columnSpan); } |
1432 void inheritColumnPropertiesFrom(const ComputedStyle& parent) { rareNonInher
itedData.access()->m_multiCol = parent.rareNonInheritedData->m_multiCol; } | 1436 void inheritColumnPropertiesFrom(const ComputedStyle& parent) { m_rareNonInh
eritedData.access()->m_multiCol = parent.m_rareNonInheritedData->m_multiCol; } |
1433 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli
neTransform, b); } | 1437 void setHasInlineTransform(bool b) { SET_VAR(m_rareNonInheritedData, m_hasIn
lineTransform, b); } |
1434 void setHasCompositorProxy(bool b) { SET_VAR(rareNonInheritedData, m_hasComp
ositorProxy, b); } | 1438 void setHasCompositorProxy(bool b) { SET_VAR(m_rareNonInheritedData, m_hasCo
mpositorProxy, b); } |
1435 void setTransform(const TransformOperations& ops) { SET_NESTED_VAR(rareNonIn
heritedData, m_transform, m_operations, ops); } | 1439 void setTransform(const TransformOperations& ops) { SET_NESTED_VAR(m_rareNon
InheritedData, m_transform, m_operations, ops); } |
1436 void setTransformOriginX(const Length& v) { setTransformOrigin(TransformOrig
in(v, transformOriginY(), transformOriginZ())); } | 1440 void setTransformOriginX(const Length& v) { setTransformOrigin(TransformOrig
in(v, transformOriginY(), transformOriginZ())); } |
1437 void setTransformOriginY(const Length& v) { setTransformOrigin(TransformOrig
in(transformOriginX(), v, transformOriginZ())); } | 1441 void setTransformOriginY(const Length& v) { setTransformOrigin(TransformOrig
in(transformOriginX(), v, transformOriginZ())); } |
1438 void setTransformOriginZ(float f) { setTransformOrigin(TransformOrigin(trans
formOriginX(), transformOriginY(), f)); } | 1442 void setTransformOriginZ(float f) { setTransformOrigin(TransformOrigin(trans
formOriginX(), transformOriginY(), f)); } |
1439 void setTransformOrigin(const TransformOrigin& o) { SET_NESTED_VAR(rareNonIn
heritedData, m_transform, m_origin, o); } | 1443 void setTransformOrigin(const TransformOrigin& o) { SET_NESTED_VAR(m_rareNon
InheritedData, m_transform, m_origin, o); } |
1440 void setTranslate(PassRefPtr<TranslateTransformOperation> v) { rareNonInheri
tedData.access()->m_transform.access()->m_translate = v; } | 1444 void setTranslate(PassRefPtr<TranslateTransformOperation> v) { m_rareNonInhe
ritedData.access()->m_transform.access()->m_translate = v; } |
1441 void setRotate(PassRefPtr<RotateTransformOperation> v) { rareNonInheritedDat
a.access()->m_transform.access()->m_rotate = v; } | 1445 void setRotate(PassRefPtr<RotateTransformOperation> v) { m_rareNonInheritedD
ata.access()->m_transform.access()->m_rotate = v; } |
1442 void setScale(PassRefPtr<ScaleTransformOperation> v) { rareNonInheritedData.
access()->m_transform.access()->m_scale = v; } | 1446 void setScale(PassRefPtr<ScaleTransformOperation> v) { m_rareNonInheritedDat
a.access()->m_transform.access()->m_scale = v; } |
1443 | 1447 |
1444 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } | 1448 void setSpeak(ESpeak s) { SET_VAR(m_rareInheritedData, speak, s); } |
1445 void setTextCombine(TextCombine v) { SET_VAR(rareInheritedData, m_textCombin
e, v); } | 1449 void setTextCombine(TextCombine v) { SET_VAR(m_rareInheritedData, m_textComb
ine, v); } |
1446 void setTextDecorationColor(const StyleColor& c) { SET_VAR(rareNonInheritedD
ata, m_textDecorationColor, c); } | 1450 void setTextDecorationColor(const StyleColor& c) { SET_VAR(m_rareNonInherite
dData, m_textDecorationColor, c); } |
1447 void setTextEmphasisColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInh
eritedData, textEmphasisColor, setTextEmphasisColor, c); } | 1451 void setTextEmphasisColor(const StyleColor& c) { SET_VAR_WITH_SETTER(m_rareI
nheritedData, textEmphasisColor, setTextEmphasisColor, c); } |
1448 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData,
textEmphasisFill, fill); } | 1452 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(m_rareInheritedDat
a, textEmphasisFill, fill); } |
1449 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData,
textEmphasisMark, mark); } | 1453 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(m_rareInheritedDat
a, textEmphasisMark, mark); } |
1450 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher
itedData, textEmphasisCustomMark, mark); } | 1454 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(m_rareInh
eritedData, textEmphasisCustomMark, mark); } |
1451 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn
heritedData, textEmphasisPosition, position); } | 1455 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(m_rare
InheritedData, textEmphasisPosition, position); } |
1452 bool setTextOrientation(TextOrientation); | 1456 bool setTextOrientation(TextOrientation); |
1453 | 1457 |
1454 void setMotionPath(PassRefPtr<StylePath>); | 1458 void setMotionPath(PassRefPtr<StylePath>); |
1455 void setMotionOffset(const Length& motionOffset) { SET_NESTED_VAR(rareNonInh
eritedData, m_transform, m_motion.m_offset, motionOffset); } | 1459 void setMotionOffset(const Length& motionOffset) { SET_NESTED_VAR(m_rareNonI
nheritedData, m_transform, m_motion.m_offset, motionOffset); } |
1456 void setMotionRotation(const StyleMotionRotation& motionRotation) { SET_NEST
ED_VAR(rareNonInheritedData, m_transform, m_motion.m_rotation, motionRotation);
} | 1460 void setMotionRotation(const StyleMotionRotation& motionRotation) { SET_NEST
ED_VAR(m_rareNonInheritedData, m_transform, m_motion.m_rotation, motionRotation)
; } |
1457 | 1461 |
1458 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit,
f); } | 1462 void setObjectFit(ObjectFit f) { SET_VAR(m_rareNonInheritedData, m_objectFit
, f); } |
1459 void setObjectPosition(LengthPoint position) { SET_VAR(rareNonInheritedData,
m_objectPosition, position); } | 1463 void setObjectPosition(LengthPoint position) { SET_VAR(m_rareNonInheritedDat
a, m_objectPosition, position); } |
1460 | 1464 |
1461 void setRubyPosition(RubyPosition position) { SET_VAR(rareInheritedData, m_r
ubyPosition, position); } | 1465 void setRubyPosition(RubyPosition position) { SET_VAR(m_rareInheritedData, m
_rubyPosition, position); } |
1462 | 1466 |
1463 void setFilter(const FilterOperations& ops) { SET_NESTED_VAR(rareNonInherite
dData, m_filter, m_operations, ops); } | 1467 void setFilter(const FilterOperations& ops) { SET_NESTED_VAR(m_rareNonInheri
tedData, m_filter, m_operations, ops); } |
1464 void setBackdropFilter(const FilterOperations& ops) { SET_NESTED_VAR(rareNon
InheritedData, m_backdropFilter, m_operations, ops); } | 1468 void setBackdropFilter(const FilterOperations& ops) { SET_NESTED_VAR(m_rareN
onInheritedData, m_backdropFilter, m_operations, ops); } |
1465 | 1469 |
1466 void setSnapHeightPosition(uint8_t position) { SET_VAR(rareInheritedData, m_
snapHeightPosition, position); } | 1470 void setSnapHeightPosition(uint8_t position) { SET_VAR(m_rareInheritedData,
m_snapHeightPosition, position); } |
1467 void setSnapHeightUnit(uint8_t unit) { SET_VAR(rareInheritedData, m_snapHeig
htUnit, unit); } | 1471 void setSnapHeightUnit(uint8_t unit) { SET_VAR(m_rareInheritedData, m_snapHe
ightUnit, unit); } |
1468 | 1472 |
1469 void setTabSize(TabSize size) { SET_VAR(rareInheritedData, m_tabSize, size);
} | 1473 void setTabSize(TabSize size) { SET_VAR(m_rareInheritedData, m_tabSize, size
); } |
1470 | 1474 |
1471 void setRespectImageOrientation(RespectImageOrientationEnum v) { SET_VAR(rar
eInheritedData, m_respectImageOrientation, v); } | 1475 void setRespectImageOrientation(RespectImageOrientationEnum v) { SET_VAR(m_r
areInheritedData, m_respectImageOrientation, v); } |
1472 | 1476 |
1473 // End CSS3 Setters | 1477 // End CSS3 Setters |
1474 | 1478 |
1475 void setWrapFlow(WrapFlow wrapFlow) { SET_VAR(rareNonInheritedData, m_wrapFl
ow, wrapFlow); } | 1479 void setWrapFlow(WrapFlow wrapFlow) { SET_VAR(m_rareNonInheritedData, m_wrap
Flow, wrapFlow); } |
1476 void setWrapThrough(WrapThrough wrapThrough) { SET_VAR(rareNonInheritedData,
m_wrapThrough, wrapThrough); } | 1480 void setWrapThrough(WrapThrough wrapThrough) { SET_VAR(m_rareNonInheritedDat
a, m_wrapThrough, wrapThrough); } |
1477 | 1481 |
1478 // Apple-specific property setters | 1482 // Apple-specific property setters |
1479 void setPointerEvents(EPointerEvents p) { inherited_data.m_pointerEvents = p
; } | 1483 void setPointerEvents(EPointerEvents p) { m_inheritedData.m_pointerEvents =
p; } |
1480 | 1484 |
1481 void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(rareNonInheritedData
, m_transformStyle3D, b); } | 1485 void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(m_rareNonInheritedDa
ta, m_transformStyle3D, b); } |
1482 void setBackfaceVisibility(EBackfaceVisibility b) { SET_VAR(rareNonInherited
Data, m_backfaceVisibility, b); } | 1486 void setBackfaceVisibility(EBackfaceVisibility b) { SET_VAR(m_rareNonInherit
edData, m_backfaceVisibility, b); } |
1483 void setPerspective(float p) { SET_VAR(rareNonInheritedData, m_perspective,
p); } | 1487 void setPerspective(float p) { SET_VAR(m_rareNonInheritedData, m_perspective
, p); } |
1484 void setPerspectiveOriginX(const Length& v) { setPerspectiveOrigin(LengthPoi
nt(v, perspectiveOriginY())); } | 1488 void setPerspectiveOriginX(const Length& v) { setPerspectiveOrigin(LengthPoi
nt(v, perspectiveOriginY())); } |
1485 void setPerspectiveOriginY(const Length& v) { setPerspectiveOrigin(LengthPoi
nt(perspectiveOriginX(), v)); } | 1489 void setPerspectiveOriginY(const Length& v) { setPerspectiveOrigin(LengthPoi
nt(perspectiveOriginX(), v)); } |
1486 void setPerspectiveOrigin(const LengthPoint& p) { SET_VAR(rareNonInheritedDa
ta, m_perspectiveOrigin, p); } | 1490 void setPerspectiveOrigin(const LengthPoint& p) { SET_VAR(m_rareNonInherited
Data, m_perspectiveOrigin, p); } |
1487 void setPageSize(const FloatSize& s) { SET_VAR(rareNonInheritedData, m_pageS
ize, s); } | 1491 void setPageSize(const FloatSize& s) { SET_VAR(m_rareNonInheritedData, m_pag
eSize, s); } |
1488 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS
izeType, t); } | 1492 void setPageSizeType(PageSizeType t) { SET_VAR(m_rareNonInheritedData, m_pag
eSizeType, t); } |
1489 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG
E_SIZE_AUTO); } | 1493 void resetPageSizeType() { SET_VAR(m_rareNonInheritedData, m_pageSizeType, P
AGE_SIZE_AUTO); } |
1490 | 1494 |
1491 void setHasCurrentOpacityAnimation(bool b = true) { SET_VAR(rareNonInherited
Data, m_hasCurrentOpacityAnimation, b); } | 1495 void setHasCurrentOpacityAnimation(bool b = true) { SET_VAR(m_rareNonInherit
edData, m_hasCurrentOpacityAnimation, b); } |
1492 void setHasCurrentTransformAnimation(bool b = true) { SET_VAR(rareNonInherit
edData, m_hasCurrentTransformAnimation, b); } | 1496 void setHasCurrentTransformAnimation(bool b = true) { SET_VAR(m_rareNonInher
itedData, m_hasCurrentTransformAnimation, b); } |
1493 void setHasCurrentFilterAnimation(bool b = true) { SET_VAR(rareNonInheritedD
ata, m_hasCurrentFilterAnimation, b); } | 1497 void setHasCurrentFilterAnimation(bool b = true) { SET_VAR(m_rareNonInherite
dData, m_hasCurrentFilterAnimation, b); } |
1494 void setHasCurrentBackdropFilterAnimation(bool b = true) { SET_VAR(rareNonIn
heritedData, m_hasCurrentBackdropFilterAnimation, b); } | 1498 void setHasCurrentBackdropFilterAnimation(bool b = true) { SET_VAR(m_rareNon
InheritedData, m_hasCurrentBackdropFilterAnimation, b); } |
1495 | 1499 |
1496 void setIsRunningOpacityAnimationOnCompositor(bool b = true) { SET_VAR(rareN
onInheritedData, m_runningOpacityAnimationOnCompositor, b); } | 1500 void setIsRunningOpacityAnimationOnCompositor(bool b = true) { SET_VAR(m_rar
eNonInheritedData, m_runningOpacityAnimationOnCompositor, b); } |
1497 void setIsRunningTransformAnimationOnCompositor(bool b = true) { SET_VAR(rar
eNonInheritedData, m_runningTransformAnimationOnCompositor, b); } | 1501 void setIsRunningTransformAnimationOnCompositor(bool b = true) { SET_VAR(m_r
areNonInheritedData, m_runningTransformAnimationOnCompositor, b); } |
1498 void setIsRunningFilterAnimationOnCompositor(bool b = true) { SET_VAR(rareNo
nInheritedData, m_runningFilterAnimationOnCompositor, b); } | 1502 void setIsRunningFilterAnimationOnCompositor(bool b = true) { SET_VAR(m_rare
NonInheritedData, m_runningFilterAnimationOnCompositor, b); } |
1499 void setIsRunningBackdropFilterAnimationOnCompositor(bool b = true) { SET_VA
R(rareNonInheritedData, m_runningBackdropFilterAnimationOnCompositor, b); } | 1503 void setIsRunningBackdropFilterAnimationOnCompositor(bool b = true) { SET_VA
R(m_rareNonInheritedData, m_runningBackdropFilterAnimationOnCompositor, b); } |
1500 | 1504 |
1501 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } | 1505 void setLineClamp(LineClampValue c) { SET_VAR(m_rareNonInheritedData, lineCl
amp, c); } |
1502 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } | 1506 void setTapHighlightColor(const Color& c) { SET_VAR(m_rareInheritedData, tap
HighlightColor, c); } |
1503 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } | 1507 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(m_rareInheritedD
ata, textSecurity, aTextSecurity); } |
1504 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } | 1508 void setTouchAction(TouchAction t) { SET_VAR(m_rareNonInheritedData, m_touch
Action, t); } |
1505 | 1509 |
1506 void setScrollBehavior(ScrollBehavior b) { SET_VAR(rareNonInheritedData, m_s
crollBehavior, b); } | 1510 void setScrollBehavior(ScrollBehavior b) { SET_VAR(m_rareNonInheritedData, m
_scrollBehavior, b); } |
1507 | 1511 |
1508 void setScrollSnapType(ScrollSnapType b) { SET_VAR(rareNonInheritedData, m_s
crollSnapType, b); } | 1512 void setScrollSnapType(ScrollSnapType b) { SET_VAR(m_rareNonInheritedData, m
_scrollSnapType, b); } |
1509 void setScrollSnapPointsX(const ScrollSnapPoints& b) { SET_NESTED_VAR(rareNo
nInheritedData, m_scrollSnap, m_xPoints, b); } | 1513 void setScrollSnapPointsX(const ScrollSnapPoints& b) { SET_NESTED_VAR(m_rare
NonInheritedData, m_scrollSnap, m_xPoints, b); } |
1510 void setScrollSnapPointsY(const ScrollSnapPoints& b) { SET_NESTED_VAR(rareNo
nInheritedData, m_scrollSnap, m_yPoints, b); } | 1514 void setScrollSnapPointsY(const ScrollSnapPoints& b) { SET_NESTED_VAR(m_rare
NonInheritedData, m_scrollSnap, m_yPoints, b); } |
1511 void setScrollSnapDestination(const LengthPoint& b) { SET_NESTED_VAR(rareNon
InheritedData, m_scrollSnap, m_destination, b); } | 1515 void setScrollSnapDestination(const LengthPoint& b) { SET_NESTED_VAR(m_rareN
onInheritedData, m_scrollSnap, m_destination, b); } |
1512 void setScrollSnapCoordinate(const Vector<LengthPoint>& b) { SET_NESTED_VAR(
rareNonInheritedData, m_scrollSnap, m_coordinates, b); } | 1516 void setScrollSnapCoordinate(const Vector<LengthPoint>& b) { SET_NESTED_VAR(
m_rareNonInheritedData, m_scrollSnap, m_coordinates, b); } |
1513 | 1517 |
1514 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_
NESTED_VAR(rareNonInheritedData, m_willChange, m_properties, properties); } | 1518 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_
NESTED_VAR(m_rareNonInheritedData, m_willChange, m_properties, properties); } |
1515 void setWillChangeContents(bool b) { SET_NESTED_VAR(rareNonInheritedData, m_
willChange, m_contents, b); } | 1519 void setWillChangeContents(bool b) { SET_NESTED_VAR(m_rareNonInheritedData,
m_willChange, m_contents, b); } |
1516 void setWillChangeScrollPosition(bool b) { SET_NESTED_VAR(rareNonInheritedDa
ta, m_willChange, m_scrollPosition, b); } | 1520 void setWillChangeScrollPosition(bool b) { SET_NESTED_VAR(m_rareNonInherited
Data, m_willChange, m_scrollPosition, b); } |
1517 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub
treeWillChangeContents, b); } | 1521 void setSubtreeWillChangeContents(bool b) { SET_VAR(m_rareInheritedData, m_s
ubtreeWillChangeContents, b); } |
1518 | 1522 |
1519 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN
onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } | 1523 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return m_rar
eNonInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } |
1520 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r
areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } | 1524 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(m
_rareNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } |
1521 | 1525 |
1522 const SVGComputedStyle& svgStyle() const { return *m_svgStyle.get(); } | 1526 const SVGComputedStyle& svgStyle() const { return *m_svgStyle.get(); } |
1523 SVGComputedStyle& accessSVGStyle() { return *m_svgStyle.access(); } | 1527 SVGComputedStyle& accessSVGStyle() { return *m_svgStyle.access(); } |
1524 | 1528 |
1525 const SVGPaintType& fillPaintType() const { return svgStyle().fillPaintType(
); } | 1529 const SVGPaintType& fillPaintType() const { return svgStyle().fillPaintType(
); } |
1526 Color fillPaintColor() const { return svgStyle().fillPaintColor(); } | 1530 Color fillPaintColor() const { return svgStyle().fillPaintColor(); } |
1527 float fillOpacity() const { return svgStyle().fillOpacity(); } | 1531 float fillOpacity() const { return svgStyle().fillOpacity(); } |
1528 void setFillOpacity(float f) { accessSVGStyle().setFillOpacity(f); } | 1532 void setFillOpacity(float f) { accessSVGStyle().setFillOpacity(f); } |
1529 | 1533 |
1530 const SVGPaintType& strokePaintType() const { return svgStyle().strokePaintT
ype(); } | 1534 const SVGPaintType& strokePaintType() const { return svgStyle().strokePaintT
ype(); } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 const Length& baselineShiftValue() const { return svgStyle().baselineShiftVa
lue(); } | 1567 const Length& baselineShiftValue() const { return svgStyle().baselineShiftVa
lue(); } |
1564 void setBaselineShiftValue(const Length& value) | 1568 void setBaselineShiftValue(const Length& value) |
1565 { | 1569 { |
1566 SVGComputedStyle& svgStyle = accessSVGStyle(); | 1570 SVGComputedStyle& svgStyle = accessSVGStyle(); |
1567 svgStyle.setBaselineShift(BS_LENGTH); | 1571 svgStyle.setBaselineShift(BS_LENGTH); |
1568 svgStyle.setBaselineShiftValue(value); | 1572 svgStyle.setBaselineShiftValue(value); |
1569 } | 1573 } |
1570 | 1574 |
1571 void setShapeOutside(ShapeValue* value) | 1575 void setShapeOutside(ShapeValue* value) |
1572 { | 1576 { |
1573 if (rareNonInheritedData->m_shapeOutside == value) | 1577 if (m_rareNonInheritedData->m_shapeOutside == value) |
1574 return; | 1578 return; |
1575 rareNonInheritedData.access()->m_shapeOutside = value; | 1579 m_rareNonInheritedData.access()->m_shapeOutside = value; |
1576 } | 1580 } |
1577 ShapeValue* shapeOutside() const { return rareNonInheritedData->m_shapeOutsi
de.get(); } | 1581 ShapeValue* shapeOutside() const { return m_rareNonInheritedData->m_shapeOut
side.get(); } |
1578 | 1582 |
1579 static ShapeValue* initialShapeOutside() { return 0; } | 1583 static ShapeValue* initialShapeOutside() { return 0; } |
1580 | 1584 |
1581 void setClipPath(PassRefPtr<ClipPathOperation> operation) | 1585 void setClipPath(PassRefPtr<ClipPathOperation> operation) |
1582 { | 1586 { |
1583 if (rareNonInheritedData->m_clipPath != operation) | 1587 if (m_rareNonInheritedData->m_clipPath != operation) |
1584 rareNonInheritedData.access()->m_clipPath = operation; | 1588 m_rareNonInheritedData.access()->m_clipPath = operation; |
1585 } | 1589 } |
1586 ClipPathOperation* clipPath() const { return rareNonInheritedData->m_clipPat
h.get(); } | 1590 ClipPathOperation* clipPath() const { return m_rareNonInheritedData->m_clipP
ath.get(); } |
1587 | 1591 |
1588 static ClipPathOperation* initialClipPath() { return 0; } | 1592 static ClipPathOperation* initialClipPath() { return 0; } |
1589 | 1593 |
1590 const Length& shapeMargin() const { return rareNonInheritedData->m_shapeMarg
in; } | 1594 const Length& shapeMargin() const { return m_rareNonInheritedData->m_shapeMa
rgin; } |
1591 void setShapeMargin(const Length& shapeMargin) { SET_VAR(rareNonInheritedDat
a, m_shapeMargin, shapeMargin); } | 1595 void setShapeMargin(const Length& shapeMargin) { SET_VAR(m_rareNonInheritedD
ata, m_shapeMargin, shapeMargin); } |
1592 static Length initialShapeMargin() { return Length(0, Fixed); } | 1596 static Length initialShapeMargin() { return Length(0, Fixed); } |
1593 | 1597 |
1594 float shapeImageThreshold() const { return rareNonInheritedData->m_shapeImag
eThreshold; } | 1598 float shapeImageThreshold() const { return m_rareNonInheritedData->m_shapeIm
ageThreshold; } |
1595 void setShapeImageThreshold(float shapeImageThreshold) | 1599 void setShapeImageThreshold(float shapeImageThreshold) |
1596 { | 1600 { |
1597 float clampedShapeImageThreshold = clampTo<float>(shapeImageThreshold, 0
, 1); | 1601 float clampedShapeImageThreshold = clampTo<float>(shapeImageThreshold, 0
, 1); |
1598 SET_VAR(rareNonInheritedData, m_shapeImageThreshold, clampedShapeImageTh
reshold); | 1602 SET_VAR(m_rareNonInheritedData, m_shapeImageThreshold, clampedShapeImage
Threshold); |
1599 } | 1603 } |
1600 static float initialShapeImageThreshold() { return 0; } | 1604 static float initialShapeImageThreshold() { return 0; } |
1601 | 1605 |
1602 bool hasContent() const { return contentData(); } | 1606 bool hasContent() const { return contentData(); } |
1603 ContentData* contentData() const { return rareNonInheritedData->m_content.ge
t(); } | 1607 ContentData* contentData() const { return m_rareNonInheritedData->m_content.
get(); } |
1604 bool contentDataEquivalent(const ComputedStyle* otherStyle) const { return c
onst_cast<ComputedStyle*>(this)->rareNonInheritedData->contentDataEquivalent(*co
nst_cast<ComputedStyle*>(otherStyle)->rareNonInheritedData); } | 1608 bool contentDataEquivalent(const ComputedStyle* otherStyle) const { return c
onst_cast<ComputedStyle*>(this)->m_rareNonInheritedData->contentDataEquivalent(*
const_cast<ComputedStyle*>(otherStyle)->m_rareNonInheritedData); } |
1605 void setContent(ContentData*); | 1609 void setContent(ContentData*); |
1606 | 1610 |
1607 const CounterDirectiveMap* counterDirectives() const; | 1611 const CounterDirectiveMap* counterDirectives() const; |
1608 CounterDirectiveMap& accessCounterDirectives(); | 1612 CounterDirectiveMap& accessCounterDirectives(); |
1609 const CounterDirectives getCounterDirectives(const AtomicString& identifier)
const; | 1613 const CounterDirectives getCounterDirectives(const AtomicString& identifier)
const; |
1610 void clearIncrementDirectives(); | 1614 void clearIncrementDirectives(); |
1611 void clearResetDirectives(); | 1615 void clearResetDirectives(); |
1612 | 1616 |
1613 QuotesData* quotes() const { return rareInheritedData->quotes.get(); } | 1617 QuotesData* quotes() const { return m_rareInheritedData->quotes.get(); } |
1614 void setQuotes(PassRefPtr<QuotesData>); | 1618 void setQuotes(PassRefPtr<QuotesData>); |
1615 | 1619 |
1616 const AtomicString& hyphenString() const; | 1620 const AtomicString& hyphenString() const; |
1617 | 1621 |
1618 bool inheritedEqual(const ComputedStyle&) const; | 1622 bool inheritedEqual(const ComputedStyle&) const; |
1619 bool nonInheritedEqual(const ComputedStyle&) const; | 1623 bool nonInheritedEqual(const ComputedStyle&) const; |
1620 bool loadingCustomFontsEqual(const ComputedStyle&) const; | 1624 bool loadingCustomFontsEqual(const ComputedStyle&) const; |
1621 bool inheritedDataShared(const ComputedStyle&) const; | 1625 bool inheritedDataShared(const ComputedStyle&) const; |
1622 | 1626 |
1623 bool isDisplayReplacedType() const { return isDisplayReplacedType(display())
; } | 1627 bool isDisplayReplacedType() const { return isDisplayReplacedType(display())
; } |
1624 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } | 1628 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } |
1625 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin
alDisplay()); } | 1629 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin
alDisplay()); } |
1626 bool isDisplayFlexibleOrGridBox() const { return isDisplayFlexibleBox(displa
y()) || isDisplayGridBox(display()); } | 1630 bool isDisplayFlexibleOrGridBox() const { return isDisplayFlexibleBox(displa
y()) || isDisplayGridBox(display()); } |
1627 bool isDisplayFlexibleBox() const { return isDisplayFlexibleBox(display());
} | 1631 bool isDisplayFlexibleBox() const { return isDisplayFlexibleBox(display());
} |
1628 | 1632 |
1629 | 1633 |
1630 bool setWritingMode(WritingMode v) | 1634 bool setWritingMode(WritingMode v) |
1631 { | 1635 { |
1632 if (v == getWritingMode()) | 1636 if (v == getWritingMode()) |
1633 return false; | 1637 return false; |
1634 | 1638 |
1635 inherited_data.m_writingMode = v; | 1639 m_inheritedData.m_writingMode = v; |
1636 return true; | 1640 return true; |
1637 } | 1641 } |
1638 | 1642 |
1639 // A unique style is one that has matches something that makes it impossible
to share. | 1643 // A unique style is one that has matches something that makes it impossible
to share. |
1640 bool unique() const { return noninherited_data.m_unique; } | 1644 bool unique() const { return m_nonInheritedData.m_unique; } |
1641 void setUnique() { noninherited_data.m_unique = true; } | 1645 void setUnique() { m_nonInheritedData.m_unique = true; } |
1642 | 1646 |
1643 bool isSharable() const; | 1647 bool isSharable() const; |
1644 | 1648 |
1645 bool emptyState() const { return noninherited_data.m_emptyState; } | 1649 bool emptyState() const { return m_nonInheritedData.m_emptyState; } |
1646 void setEmptyState(bool b) { setUnique(); noninherited_data.m_emptyState = b
; } | 1650 void setEmptyState(bool b) { setUnique(); m_nonInheritedData.m_emptyState =
b; } |
1647 | 1651 |
1648 Color visitedDependentColor(int colorProperty) const; | 1652 Color visitedDependentColor(int colorProperty) const; |
1649 | 1653 |
1650 void setHasExplicitlyInheritedProperties() { noninherited_data.m_explicitInh
eritance = true; } | 1654 void setHasExplicitlyInheritedProperties() { m_nonInheritedData.m_explicitIn
heritance = true; } |
1651 bool hasExplicitlyInheritedProperties() const { return noninherited_data.m_e
xplicitInheritance; } | 1655 bool hasExplicitlyInheritedProperties() const { return m_nonInheritedData.m_
explicitInheritance; } |
1652 | 1656 |
1653 void setHasVariableReferenceFromNonInheritedProperty() { noninherited_data.m
_variableReference = true; } | 1657 void setHasVariableReferenceFromNonInheritedProperty() { m_nonInheritedData.
m_variableReference = true; } |
1654 bool hasVariableReferenceFromNonInheritedProperty() const { return noninheri
ted_data.m_variableReference; } | 1658 bool hasVariableReferenceFromNonInheritedProperty() const { return m_nonInhe
ritedData.m_variableReference; } |
1655 | 1659 |
1656 bool hasChildDependentFlags() const { return emptyState() || hasExplicitlyIn
heritedProperties(); } | 1660 bool hasChildDependentFlags() const { return emptyState() || hasExplicitlyIn
heritedProperties(); } |
1657 void copyChildDependentFlagsFrom(const ComputedStyle&); | 1661 void copyChildDependentFlagsFrom(const ComputedStyle&); |
1658 | 1662 |
1659 bool hasBoxDecorations() const | 1663 bool hasBoxDecorations() const |
1660 { | 1664 { |
1661 return hasBorderDecoration() | 1665 return hasBorderDecoration() |
1662 || hasBorderRadius() | 1666 || hasBorderRadius() |
1663 || hasOutline() | 1667 || hasOutline() |
1664 || hasAppearance() | 1668 || hasAppearance() |
1665 || boxShadow() | 1669 || boxShadow() |
1666 || hasFilterInducingProperty() | 1670 || hasFilterInducingProperty() |
1667 || hasBackdropFilter() | 1671 || hasBackdropFilter() |
1668 || resize() != RESIZE_NONE; | 1672 || resize() != RESIZE_NONE; |
1669 } | 1673 } |
1670 | 1674 |
1671 bool borderObscuresBackground() const; | 1675 bool borderObscuresBackground() const; |
1672 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru
e, bool includeLogicalRightEdge = true) const; | 1676 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru
e, bool includeLogicalRightEdge = true) const; |
1673 | 1677 |
1674 void setHasAuthorBackground(bool authorBackground) { SET_VAR(rareNonInherite
dData, m_hasAuthorBackground, authorBackground); } | 1678 void setHasAuthorBackground(bool authorBackground) { SET_VAR(m_rareNonInheri
tedData, m_hasAuthorBackground, authorBackground); } |
1675 void setHasAuthorBorder(bool authorBorder) { SET_VAR(rareNonInheritedData, m
_hasAuthorBorder, authorBorder); } | 1679 void setHasAuthorBorder(bool authorBorder) { SET_VAR(m_rareNonInheritedData,
m_hasAuthorBorder, authorBorder); } |
1676 bool hasAuthorBackground() const { return rareNonInheritedData->m_hasAuthorB
ackground; }; | 1680 bool hasAuthorBackground() const { return m_rareNonInheritedData->m_hasAutho
rBackground; }; |
1677 bool hasAuthorBorder() const { return rareNonInheritedData->m_hasAuthorBorde
r; }; | 1681 bool hasAuthorBorder() const { return m_rareNonInheritedData->m_hasAuthorBor
der; }; |
1678 | 1682 |
1679 void addPaintImage(StyleImage*); | 1683 void addPaintImage(StyleImage*); |
1680 | 1684 |
1681 // Initial values for all the properties | 1685 // Initial values for all the properties |
1682 static EBorderCollapse initialBorderCollapse() { return BorderCollapseSepara
te; } | 1686 static EBorderCollapse initialBorderCollapse() { return BorderCollapseSepara
te; } |
1683 static EBorderStyle initialBorderStyle() { return BorderStyleNone; } | 1687 static EBorderStyle initialBorderStyle() { return BorderStyleNone; } |
1684 static OutlineIsAuto initialOutlineStyleIsAuto() { return OutlineIsAutoOff;
} | 1688 static OutlineIsAuto initialOutlineStyleIsAuto() { return OutlineIsAutoOff;
} |
1685 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } | 1689 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } |
1686 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } | 1690 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } |
1687 static ECaptionSide initialCaptionSide() { return CaptionSideTop; } | 1691 static ECaptionSide initialCaptionSide() { return CaptionSideTop; } |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1867 // FIXME: Why? Seems these should all be one big sorted list. | 1871 // FIXME: Why? Seems these should all be one big sorted list. |
1868 static LineClampValue initialLineClamp() { return LineClampValue(); } | 1872 static LineClampValue initialLineClamp() { return LineClampValue(); } |
1869 static ETextSecurity initialTextSecurity() { return TSNONE; } | 1873 static ETextSecurity initialTextSecurity() { return TSNONE; } |
1870 static Color initialTapHighlightColor(); | 1874 static Color initialTapHighlightColor(); |
1871 static const FilterOperations& initialFilter(); | 1875 static const FilterOperations& initialFilter(); |
1872 static const FilterOperations& initialBackdropFilter(); | 1876 static const FilterOperations& initialBackdropFilter(); |
1873 static WebBlendMode initialBlendMode() { return WebBlendModeNormal; } | 1877 static WebBlendMode initialBlendMode() { return WebBlendModeNormal; } |
1874 static EIsolation initialIsolation() { return IsolationAuto; } | 1878 static EIsolation initialIsolation() { return IsolationAuto; } |
1875 private: | 1879 private: |
1876 void setVisitedLinkColor(const Color&); | 1880 void setVisitedLinkColor(const Color&); |
1877 void setVisitedLinkBackgroundColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData, m_visitedLinkBackgroundColor, v); } | 1881 void setVisitedLinkBackgroundColor(const StyleColor& v) { SET_VAR(m_rareNonI
nheritedData, m_visitedLinkBackgroundColor, v); } |
1878 void setVisitedLinkBorderLeftColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData, m_visitedLinkBorderLeftColor, v); } | 1882 void setVisitedLinkBorderLeftColor(const StyleColor& v) { SET_VAR(m_rareNonI
nheritedData, m_visitedLinkBorderLeftColor, v); } |
1879 void setVisitedLinkBorderRightColor(const StyleColor& v) { SET_VAR(rareNonIn
heritedData, m_visitedLinkBorderRightColor, v); } | 1883 void setVisitedLinkBorderRightColor(const StyleColor& v) { SET_VAR(m_rareNon
InheritedData, m_visitedLinkBorderRightColor, v); } |
1880 void setVisitedLinkBorderBottomColor(const StyleColor& v) { SET_VAR(rareNonI
nheritedData, m_visitedLinkBorderBottomColor, v); } | 1884 void setVisitedLinkBorderBottomColor(const StyleColor& v) { SET_VAR(m_rareNo
nInheritedData, m_visitedLinkBorderBottomColor, v); } |
1881 void setVisitedLinkBorderTopColor(const StyleColor& v) { SET_VAR(rareNonInhe
ritedData, m_visitedLinkBorderTopColor, v); } | 1885 void setVisitedLinkBorderTopColor(const StyleColor& v) { SET_VAR(m_rareNonIn
heritedData, m_visitedLinkBorderTopColor, v); } |
1882 void setVisitedLinkOutlineColor(const StyleColor& v) { SET_VAR(rareNonInheri
tedData, m_visitedLinkOutlineColor, v); } | 1886 void setVisitedLinkOutlineColor(const StyleColor& v) { SET_VAR(m_rareNonInhe
ritedData, m_visitedLinkOutlineColor, v); } |
1883 void setVisitedLinkColumnRuleColor(const StyleColor& v) { SET_NESTED_VAR(rar
eNonInheritedData, m_multiCol, m_visitedLinkColumnRuleColor, v); } | 1887 void setVisitedLinkColumnRuleColor(const StyleColor& v) { SET_NESTED_VAR(m_r
areNonInheritedData, m_multiCol, m_visitedLinkColumnRuleColor, v); } |
1884 void setVisitedLinkTextDecorationColor(const StyleColor& v) { SET_VAR(rareNo
nInheritedData, m_visitedLinkTextDecorationColor, v); } | 1888 void setVisitedLinkTextDecorationColor(const StyleColor& v) { SET_VAR(m_rare
NonInheritedData, m_visitedLinkTextDecorationColor, v); } |
1885 void setVisitedLinkTextEmphasisColor(const StyleColor& v) { SET_VAR_WITH_SET
TER(rareInheritedData, visitedLinkTextEmphasisColor, setVisitedLinkTextEmphasisC
olor, v); } | 1889 void setVisitedLinkTextEmphasisColor(const StyleColor& v) { SET_VAR_WITH_SET
TER(m_rareInheritedData, visitedLinkTextEmphasisColor, setVisitedLinkTextEmphasi
sColor, v); } |
1886 void setVisitedLinkTextFillColor(const StyleColor& v) { SET_VAR_WITH_SETTER(
rareInheritedData, visitedLinkTextFillColor, setVisitedLinkTextFillColor, v); } | 1890 void setVisitedLinkTextFillColor(const StyleColor& v) { SET_VAR_WITH_SETTER(
m_rareInheritedData, visitedLinkTextFillColor, setVisitedLinkTextFillColor, v);
} |
1887 void setVisitedLinkTextStrokeColor(const StyleColor& v) { SET_VAR_WITH_SETTE
R(rareInheritedData, visitedLinkTextStrokeColor, setVisitedLinkTextStrokeColor,
v); } | 1891 void setVisitedLinkTextStrokeColor(const StyleColor& v) { SET_VAR_WITH_SETTE
R(m_rareInheritedData, visitedLinkTextStrokeColor, setVisitedLinkTextStrokeColor
, v); } |
1888 | 1892 |
1889 void inheritUnicodeBidiFrom(const ComputedStyle& parent) { noninherited_data
.m_unicodeBidi = parent.noninherited_data.m_unicodeBidi; } | 1893 void inheritUnicodeBidiFrom(const ComputedStyle& parent) { m_nonInheritedDat
a.m_unicodeBidi = parent.m_nonInheritedData.m_unicodeBidi; } |
1890 | 1894 |
1891 bool isDisplayFlexibleBox(EDisplay display) const | 1895 bool isDisplayFlexibleBox(EDisplay display) const |
1892 { | 1896 { |
1893 return display == FLEX || display == INLINE_FLEX; | 1897 return display == FLEX || display == INLINE_FLEX; |
1894 } | 1898 } |
1895 | 1899 |
1896 bool isDisplayGridBox(EDisplay display) const | 1900 bool isDisplayGridBox(EDisplay display) const |
1897 { | 1901 { |
1898 return display == GRID || display == INLINE_GRID; | 1902 return display == GRID || display == INLINE_GRID; |
1899 } | 1903 } |
1900 | 1904 |
1901 bool isDisplayReplacedType(EDisplay display) const | 1905 bool isDisplayReplacedType(EDisplay display) const |
1902 { | 1906 { |
1903 return display == INLINE_BLOCK || display == INLINE_BOX || display == IN
LINE_FLEX | 1907 return display == INLINE_BLOCK || display == INLINE_BOX || display == IN
LINE_FLEX |
1904 || display == INLINE_TABLE || display == INLINE_GRID; | 1908 || display == INLINE_TABLE || display == INLINE_GRID; |
1905 } | 1909 } |
1906 | 1910 |
1907 bool isDisplayInlineType(EDisplay display) const | 1911 bool isDisplayInlineType(EDisplay display) const |
1908 { | 1912 { |
1909 return display == INLINE || isDisplayReplacedType(display); | 1913 return display == INLINE || isDisplayReplacedType(display); |
1910 } | 1914 } |
1911 | 1915 |
1912 // Color accessors are all private to make sure callers use visitedDependent
Color instead to access them. | 1916 // Color accessors are all private to make sure callers use visitedDependent
Color instead to access them. |
1913 StyleColor borderLeftColor() const { return surround->border.left().color();
} | 1917 StyleColor borderLeftColor() const { return m_surround->border.left().color(
); } |
1914 StyleColor borderRightColor() const { return surround->border.right().color(
); } | 1918 StyleColor borderRightColor() const { return m_surround->border.right().colo
r(); } |
1915 StyleColor borderTopColor() const { return surround->border.top().color(); } | 1919 StyleColor borderTopColor() const { return m_surround->border.top().color();
} |
1916 StyleColor borderBottomColor() const { return surround->border.bottom().colo
r(); } | 1920 StyleColor borderBottomColor() const { return m_surround->border.bottom().co
lor(); } |
1917 StyleColor backgroundColor() const { return m_background->color(); } | 1921 StyleColor backgroundColor() const { return m_background->color(); } |
1918 Color color() const; | 1922 Color color() const; |
1919 StyleColor columnRuleColor() const { return rareNonInheritedData->m_multiCol
->m_rule.color(); } | 1923 StyleColor columnRuleColor() const { return m_rareNonInheritedData->m_multiC
ol->m_rule.color(); } |
1920 StyleColor outlineColor() const { return m_background->outline().color(); } | 1924 StyleColor outlineColor() const { return m_background->outline().color(); } |
1921 StyleColor textEmphasisColor() const { return rareInheritedData->textEmphasi
sColor(); } | 1925 StyleColor textEmphasisColor() const { return m_rareInheritedData->textEmpha
sisColor(); } |
1922 StyleColor textFillColor() const { return rareInheritedData->textFillColor()
; } | 1926 StyleColor textFillColor() const { return m_rareInheritedData->textFillColor
(); } |
1923 StyleColor textStrokeColor() const { return rareInheritedData->textStrokeCol
or(); } | 1927 StyleColor textStrokeColor() const { return m_rareInheritedData->textStrokeC
olor(); } |
1924 Color visitedLinkColor() const; | 1928 Color visitedLinkColor() const; |
1925 StyleColor visitedLinkBackgroundColor() const { return rareNonInheritedData-
>m_visitedLinkBackgroundColor; } | 1929 StyleColor visitedLinkBackgroundColor() const { return m_rareNonInheritedDat
a->m_visitedLinkBackgroundColor; } |
1926 StyleColor visitedLinkBorderLeftColor() const { return rareNonInheritedData-
>m_visitedLinkBorderLeftColor; } | 1930 StyleColor visitedLinkBorderLeftColor() const { return m_rareNonInheritedDat
a->m_visitedLinkBorderLeftColor; } |
1927 StyleColor visitedLinkBorderRightColor() const { return rareNonInheritedData
->m_visitedLinkBorderRightColor; } | 1931 StyleColor visitedLinkBorderRightColor() const { return m_rareNonInheritedDa
ta->m_visitedLinkBorderRightColor; } |
1928 StyleColor visitedLinkBorderBottomColor() const { return rareNonInheritedDat
a->m_visitedLinkBorderBottomColor; } | 1932 StyleColor visitedLinkBorderBottomColor() const { return m_rareNonInheritedD
ata->m_visitedLinkBorderBottomColor; } |
1929 StyleColor visitedLinkBorderTopColor() const { return rareNonInheritedData->
m_visitedLinkBorderTopColor; } | 1933 StyleColor visitedLinkBorderTopColor() const { return m_rareNonInheritedData
->m_visitedLinkBorderTopColor; } |
1930 StyleColor visitedLinkOutlineColor() const { return rareNonInheritedData->m_
visitedLinkOutlineColor; } | 1934 StyleColor visitedLinkOutlineColor() const { return m_rareNonInheritedData->
m_visitedLinkOutlineColor; } |
1931 StyleColor visitedLinkColumnRuleColor() const { return rareNonInheritedData-
>m_multiCol->m_visitedLinkColumnRuleColor; } | 1935 StyleColor visitedLinkColumnRuleColor() const { return m_rareNonInheritedDat
a->m_multiCol->m_visitedLinkColumnRuleColor; } |
1932 StyleColor textDecorationColor() const { return rareNonInheritedData->m_text
DecorationColor; } | 1936 StyleColor textDecorationColor() const { return m_rareNonInheritedData->m_te
xtDecorationColor; } |
1933 StyleColor visitedLinkTextDecorationColor() const { return rareNonInheritedD
ata->m_visitedLinkTextDecorationColor; } | 1937 StyleColor visitedLinkTextDecorationColor() const { return m_rareNonInherite
dData->m_visitedLinkTextDecorationColor; } |
1934 StyleColor visitedLinkTextEmphasisColor() const { return rareInheritedData->
visitedLinkTextEmphasisColor(); } | 1938 StyleColor visitedLinkTextEmphasisColor() const { return m_rareInheritedData
->visitedLinkTextEmphasisColor(); } |
1935 StyleColor visitedLinkTextFillColor() const { return rareInheritedData->visi
tedLinkTextFillColor(); } | 1939 StyleColor visitedLinkTextFillColor() const { return m_rareInheritedData->vi
sitedLinkTextFillColor(); } |
1936 StyleColor visitedLinkTextStrokeColor() const { return rareInheritedData->vi
sitedLinkTextStrokeColor(); } | 1940 StyleColor visitedLinkTextStrokeColor() const { return m_rareInheritedData->
visitedLinkTextStrokeColor(); } |
1937 | 1941 |
1938 StyleColor decorationColorIncludingFallback(bool visitedLink) const; | 1942 StyleColor decorationColorIncludingFallback(bool visitedLink) const; |
1939 Color colorIncludingFallback(int colorProperty, bool visitedLink) const; | 1943 Color colorIncludingFallback(int colorProperty, bool visitedLink) const; |
1940 | 1944 |
1941 Color stopColor() const { return svgStyle().stopColor(); } | 1945 Color stopColor() const { return svgStyle().stopColor(); } |
1942 Color floodColor() const { return svgStyle().floodColor(); } | 1946 Color floodColor() const { return svgStyle().floodColor(); } |
1943 Color lightingColor() const { return svgStyle().lightingColor(); } | 1947 Color lightingColor() const { return svgStyle().lightingColor(); } |
1944 | 1948 |
1945 void addAppliedTextDecoration(const AppliedTextDecoration&); | 1949 void addAppliedTextDecoration(const AppliedTextDecoration&); |
1946 void applyMotionPathTransform(float originX, float originY, TransformationMa
trix&) const; | 1950 void applyMotionPathTransform(float originX, float originY, TransformationMa
trix&) const; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1988 return scrollOffset / zoomFactor; | 1992 return scrollOffset / zoomFactor; |
1989 } | 1993 } |
1990 | 1994 |
1991 inline double adjustScrollForAbsoluteZoom(double scrollOffset, const ComputedSty
le& style) | 1995 inline double adjustScrollForAbsoluteZoom(double scrollOffset, const ComputedSty
le& style) |
1992 { | 1996 { |
1993 return adjustScrollForAbsoluteZoom(scrollOffset, style.effectiveZoom()); | 1997 return adjustScrollForAbsoluteZoom(scrollOffset, style.effectiveZoom()); |
1994 } | 1998 } |
1995 | 1999 |
1996 inline bool ComputedStyle::setZoom(float f) | 2000 inline bool ComputedStyle::setZoom(float f) |
1997 { | 2001 { |
1998 if (compareEqual(visual->m_zoom, f)) | 2002 if (compareEqual(m_visual->m_zoom, f)) |
1999 return false; | 2003 return false; |
2000 visual.access()->m_zoom = f; | 2004 m_visual.access()->m_zoom = f; |
2001 setEffectiveZoom(effectiveZoom() * zoom()); | 2005 setEffectiveZoom(effectiveZoom() * zoom()); |
2002 return true; | 2006 return true; |
2003 } | 2007 } |
2004 | 2008 |
2005 inline bool ComputedStyle::setEffectiveZoom(float f) | 2009 inline bool ComputedStyle::setEffectiveZoom(float f) |
2006 { | 2010 { |
2007 // Clamp the effective zoom value to a smaller (but hopeful still large | 2011 // Clamp the effective zoom value to a smaller (but hopeful still large |
2008 // enough) range, to avoid overflow in derived computations. | 2012 // enough) range, to avoid overflow in derived computations. |
2009 float clampedEffectiveZoom = clampTo<float>(f, 1e-6, 1e6); | 2013 float clampedEffectiveZoom = clampTo<float>(f, 1e-6, 1e6); |
2010 if (compareEqual(rareInheritedData->m_effectiveZoom, clampedEffectiveZoom)) | 2014 if (compareEqual(m_rareInheritedData->m_effectiveZoom, clampedEffectiveZoom)
) |
2011 return false; | 2015 return false; |
2012 rareInheritedData.access()->m_effectiveZoom = clampedEffectiveZoom; | 2016 m_rareInheritedData.access()->m_effectiveZoom = clampedEffectiveZoom; |
2013 return true; | 2017 return true; |
2014 } | 2018 } |
2015 | 2019 |
2016 inline bool ComputedStyle::isSharable() const | 2020 inline bool ComputedStyle::isSharable() const |
2017 { | 2021 { |
2018 if (unique()) | 2022 if (unique()) |
2019 return false; | 2023 return false; |
2020 if (hasUniquePseudoStyle()) | 2024 if (hasUniquePseudoStyle()) |
2021 return false; | 2025 return false; |
2022 return true; | 2026 return true; |
2023 } | 2027 } |
2024 | 2028 |
2025 inline bool ComputedStyle::setTextOrientation(TextOrientation textOrientation) | 2029 inline bool ComputedStyle::setTextOrientation(TextOrientation textOrientation) |
2026 { | 2030 { |
2027 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) | 2031 if (compareEqual(m_rareInheritedData->m_textOrientation, textOrientation)) |
2028 return false; | 2032 return false; |
2029 | 2033 |
2030 rareInheritedData.access()->m_textOrientation = textOrientation; | 2034 m_rareInheritedData.access()->m_textOrientation = textOrientation; |
2031 return true; | 2035 return true; |
2032 } | 2036 } |
2033 | 2037 |
2034 inline bool ComputedStyle::hasAnyPublicPseudoStyles() const | 2038 inline bool ComputedStyle::hasAnyPublicPseudoStyles() const |
2035 { | 2039 { |
2036 return PublicPseudoIdMask & noninherited_data.m_pseudoBits; | 2040 return PublicPseudoIdMask & m_nonInheritedData.m_pseudoBits; |
2037 } | 2041 } |
2038 | 2042 |
2039 inline bool ComputedStyle::hasPseudoStyle(PseudoId pseudo) const | 2043 inline bool ComputedStyle::hasPseudoStyle(PseudoId pseudo) const |
2040 { | 2044 { |
2041 ASSERT(pseudo > PseudoIdNone); | 2045 ASSERT(pseudo > PseudoIdNone); |
2042 ASSERT(pseudo < FirstInternalPseudoId); | 2046 ASSERT(pseudo < FirstInternalPseudoId); |
2043 return (1 << (pseudo - 1)) & noninherited_data.m_pseudoBits; | 2047 return (1 << (pseudo - 1)) & m_nonInheritedData.m_pseudoBits; |
2044 } | 2048 } |
2045 | 2049 |
2046 inline void ComputedStyle::setHasPseudoStyle(PseudoId pseudo) | 2050 inline void ComputedStyle::setHasPseudoStyle(PseudoId pseudo) |
2047 { | 2051 { |
2048 ASSERT(pseudo > PseudoIdNone); | 2052 ASSERT(pseudo > PseudoIdNone); |
2049 ASSERT(pseudo < FirstInternalPseudoId); | 2053 ASSERT(pseudo < FirstInternalPseudoId); |
2050 noninherited_data.m_pseudoBits |= 1 << (pseudo - 1); | 2054 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); |
2051 } | 2055 } |
2052 | 2056 |
2053 inline bool ComputedStyle::hasPseudoElementStyle() const | 2057 inline bool ComputedStyle::hasPseudoElementStyle() const |
2054 { | 2058 { |
2055 return noninherited_data.m_pseudoBits & ElementPseudoIdMask; | 2059 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
2056 } | 2060 } |
2057 | 2061 |
2058 } // namespace blink | 2062 } // namespace blink |
2059 | 2063 |
2060 #endif // ComputedStyle_h | 2064 #endif // ComputedStyle_h |
OLD | NEW |