| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 && (_list_style_position == other._list_style_position) | 143 && (_list_style_position == other._list_style_position) |
| 144 && (_visibility == other._visibility) | 144 && (_visibility == other._visibility) |
| 145 && (_text_align == other._text_align) | 145 && (_text_align == other._text_align) |
| 146 && (m_textUnderline == other.m_textUnderline) | 146 && (m_textUnderline == other.m_textUnderline) |
| 147 && (_cursor_style == other._cursor_style) | 147 && (_cursor_style == other._cursor_style) |
| 148 && (_direction == other._direction) | 148 && (_direction == other._direction) |
| 149 && (_white_space == other._white_space) | 149 && (_white_space == other._white_space) |
| 150 && (_border_collapse == other._border_collapse) | 150 && (_border_collapse == other._border_collapse) |
| 151 && (m_rtlOrdering == other.m_rtlOrdering) | 151 && (m_rtlOrdering == other.m_rtlOrdering) |
| 152 && (m_printColorAdjust == other.m_printColorAdjust) | 152 && (m_printColorAdjust == other.m_printColorAdjust) |
| 153 && (_pointerEvents == other._pointerEvents) | 153 && (_pointerEvents == other._pointerEvents); |
| 154 && (m_writingMode == other.m_writingMode); | |
| 155 } | 154 } |
| 156 | 155 |
| 157 bool operator!=(const InheritedFlags& other) const { return !(*this == o
ther); } | 156 bool operator!=(const InheritedFlags& other) const { return !(*this == o
ther); } |
| 158 | 157 |
| 159 unsigned _empty_cells : 1; // EEmptyCell | 158 unsigned _empty_cells : 1; // EEmptyCell |
| 160 unsigned _caption_side : 2; // ECaptionSide | 159 unsigned _caption_side : 2; // ECaptionSide |
| 161 unsigned _list_style_type : 7; // EListStyleType | 160 unsigned _list_style_type : 7; // EListStyleType |
| 162 unsigned _list_style_position : 1; // EListStylePosition | 161 unsigned _list_style_position : 1; // EListStylePosition |
| 163 unsigned _visibility : 2; // EVisibility | 162 unsigned _visibility : 2; // EVisibility |
| 164 unsigned _text_align : 4; // ETextAlign | 163 unsigned _text_align : 4; // ETextAlign |
| 165 unsigned m_textUnderline : 1; | 164 unsigned m_textUnderline : 1; |
| 166 unsigned _cursor_style : 6; // ECursor | 165 unsigned _cursor_style : 6; // ECursor |
| 167 unsigned _direction : 1; // TextDirection | 166 unsigned _direction : 1; // TextDirection |
| 168 unsigned _white_space : 3; // EWhiteSpace | 167 unsigned _white_space : 3; // EWhiteSpace |
| 169 unsigned _border_collapse : 1; // EBorderCollapse | 168 unsigned _border_collapse : 1; // EBorderCollapse |
| 170 // 32 bits | 169 // 32 bits |
| 171 | 170 |
| 172 // non CSS2 inherited | 171 // non CSS2 inherited |
| 173 unsigned m_rtlOrdering : 1; // Order | 172 unsigned m_rtlOrdering : 1; // Order |
| 174 unsigned m_printColorAdjust : PrintColorAdjustBits; | 173 unsigned m_printColorAdjust : PrintColorAdjustBits; |
| 175 unsigned _pointerEvents : 4; // EPointerEvents | 174 unsigned _pointerEvents : 4; // EPointerEvents |
| 176 | |
| 177 // CSS Text Layout Module Level 3: Vertical writing support | |
| 178 unsigned m_writingMode : 2; // WritingMode | |
| 179 // 42 bits | |
| 180 } inherited_flags; | 175 } inherited_flags; |
| 181 | 176 |
| 182 // don't inherit | 177 // don't inherit |
| 183 struct NonInheritedFlags { | 178 struct NonInheritedFlags { |
| 184 bool operator==(const NonInheritedFlags& other) const | 179 bool operator==(const NonInheritedFlags& other) const |
| 185 { | 180 { |
| 186 return effectiveDisplay == other.effectiveDisplay | 181 return effectiveDisplay == other.effectiveDisplay |
| 187 && originalDisplay == other.originalDisplay | 182 && originalDisplay == other.originalDisplay |
| 188 && overflowX == other.overflowX | 183 && overflowX == other.overflowX |
| 189 && overflowY == other.overflowY | 184 && overflowY == other.overflowY |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 inherited_flags._visibility = initialVisibility(); | 257 inherited_flags._visibility = initialVisibility(); |
| 263 inherited_flags._text_align = initialTextAlign(); | 258 inherited_flags._text_align = initialTextAlign(); |
| 264 inherited_flags.m_textUnderline = false; | 259 inherited_flags.m_textUnderline = false; |
| 265 inherited_flags._cursor_style = initialCursor(); | 260 inherited_flags._cursor_style = initialCursor(); |
| 266 inherited_flags._direction = initialDirection(); | 261 inherited_flags._direction = initialDirection(); |
| 267 inherited_flags._white_space = initialWhiteSpace(); | 262 inherited_flags._white_space = initialWhiteSpace(); |
| 268 inherited_flags._border_collapse = initialBorderCollapse(); | 263 inherited_flags._border_collapse = initialBorderCollapse(); |
| 269 inherited_flags.m_rtlOrdering = initialRTLOrdering(); | 264 inherited_flags.m_rtlOrdering = initialRTLOrdering(); |
| 270 inherited_flags.m_printColorAdjust = initialPrintColorAdjust(); | 265 inherited_flags.m_printColorAdjust = initialPrintColorAdjust(); |
| 271 inherited_flags._pointerEvents = initialPointerEvents(); | 266 inherited_flags._pointerEvents = initialPointerEvents(); |
| 272 inherited_flags.m_writingMode = initialWritingMode(); | |
| 273 | 267 |
| 274 noninherited_flags.effectiveDisplay = noninherited_flags.originalDisplay
= initialDisplay(); | 268 noninherited_flags.effectiveDisplay = noninherited_flags.originalDisplay
= initialDisplay(); |
| 275 noninherited_flags.overflowX = initialOverflowX(); | 269 noninherited_flags.overflowX = initialOverflowX(); |
| 276 noninherited_flags.overflowY = initialOverflowY(); | 270 noninherited_flags.overflowY = initialOverflowY(); |
| 277 noninherited_flags.verticalAlign = initialVerticalAlign(); | 271 noninherited_flags.verticalAlign = initialVerticalAlign(); |
| 278 noninherited_flags.clear = initialClear(); | 272 noninherited_flags.clear = initialClear(); |
| 279 noninherited_flags.position = initialPosition(); | 273 noninherited_flags.position = initialPosition(); |
| 280 noninherited_flags.floating = initialFloating(); | 274 noninherited_flags.floating = initialFloating(); |
| 281 noninherited_flags.tableLayout = initialTableLayout(); | 275 noninherited_flags.tableLayout = initialTableLayout(); |
| 282 noninherited_flags.unicodeBidi = initialUnicodeBidi(); | 276 noninherited_flags.unicodeBidi = initialUnicodeBidi(); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 382 |
| 389 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags.e
ffectiveDisplay); } | 383 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags.e
ffectiveDisplay); } |
| 390 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited
_flags.originalDisplay); } | 384 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited
_flags.originalDisplay); } |
| 391 | 385 |
| 392 const Length& left() const { return surround->offset.left(); } | 386 const Length& left() const { return surround->offset.left(); } |
| 393 const Length& right() const { return surround->offset.right(); } | 387 const Length& right() const { return surround->offset.right(); } |
| 394 const Length& top() const { return surround->offset.top(); } | 388 const Length& top() const { return surround->offset.top(); } |
| 395 const Length& bottom() const { return surround->offset.bottom(); } | 389 const Length& bottom() const { return surround->offset.bottom(); } |
| 396 | 390 |
| 397 // Accessors for positioned object edges that take into account writing mode
. | 391 // Accessors for positioned object edges that take into account writing mode
. |
| 398 const Length& logicalLeft() const { return surround->offset.logicalLeft(writ
ingMode()); } | 392 const Length& logicalLeft() const { return surround->offset.logicalLeft(); } |
| 399 const Length& logicalRight() const { return surround->offset.logicalRight(wr
itingMode()); } | 393 const Length& logicalRight() const { return surround->offset.logicalRight();
} |
| 400 const Length& logicalTop() const { return surround->offset.before(writingMod
e()); } | 394 const Length& logicalTop() const { return surround->offset.before(); } |
| 401 const Length& logicalBottom() const { return surround->offset.after(writingM
ode()); } | 395 const Length& logicalBottom() const { return surround->offset.after(); } |
| 402 | 396 |
| 403 // Whether or not a positioned element requires normal flow x/y to be comput
ed | 397 // Whether or not a positioned element requires normal flow x/y to be comput
ed |
| 404 // to determine its position. | 398 // to determine its position. |
| 405 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } | 399 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } |
| 406 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } | 400 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } |
| 407 bool hasStaticInlinePosition(bool horizontal) const { return horizontal ? ha
sAutoLeftAndRight() : hasAutoTopAndBottom(); } | 401 bool hasStaticInlinePosition(bool horizontal) const { return horizontal ? ha
sAutoLeftAndRight() : hasAutoTopAndBottom(); } |
| 408 bool hasStaticBlockPosition(bool horizontal) const { return horizontal ? has
AutoTopAndBottom() : hasAutoLeftAndRight(); } | 402 bool hasStaticBlockPosition(bool horizontal) const { return horizontal ? has
AutoTopAndBottom() : hasAutoLeftAndRight(); } |
| 409 | 403 |
| 410 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s.position); } | 404 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s.position); } |
| 411 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition; } | 405 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition; } |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 ECaptionSide captionSide() const { return static_cast<ECaptionSide>(inherite
d_flags._caption_side); } | 623 ECaptionSide captionSide() const { return static_cast<ECaptionSide>(inherite
d_flags._caption_side); } |
| 630 | 624 |
| 631 EListStyleType listStyleType() const { return static_cast<EListStyleType>(in
herited_flags._list_style_type); } | 625 EListStyleType listStyleType() const { return static_cast<EListStyleType>(in
herited_flags._list_style_type); } |
| 632 StyleImage* listStyleImage() const; | 626 StyleImage* listStyleImage() const; |
| 633 EListStylePosition listStylePosition() const { return static_cast<EListStyle
Position>(inherited_flags._list_style_position); } | 627 EListStylePosition listStylePosition() const { return static_cast<EListStyle
Position>(inherited_flags._list_style_position); } |
| 634 | 628 |
| 635 const Length& marginTop() const { return surround->margin.top(); } | 629 const Length& marginTop() const { return surround->margin.top(); } |
| 636 const Length& marginBottom() const { return surround->margin.bottom(); } | 630 const Length& marginBottom() const { return surround->margin.bottom(); } |
| 637 const Length& marginLeft() const { return surround->margin.left(); } | 631 const Length& marginLeft() const { return surround->margin.left(); } |
| 638 const Length& marginRight() const { return surround->margin.right(); } | 632 const Length& marginRight() const { return surround->margin.right(); } |
| 639 const Length& marginBefore() const { return surround->margin.before(writingM
ode()); } | 633 const Length& marginBefore() const { return surround->margin.before(); } |
| 640 const Length& marginAfter() const { return surround->margin.after(writingMod
e()); } | 634 const Length& marginAfter() const { return surround->margin.after(); } |
| 641 const Length& marginStart() const { return surround->margin.start(writingMod
e(), direction()); } | 635 const Length& marginStart() const { return surround->margin.start(direction(
)); } |
| 642 const Length& marginEnd() const { return surround->margin.end(writingMode(),
direction()); } | 636 const Length& marginEnd() const { return surround->margin.end(direction());
} |
| 643 const Length& marginStartUsing(const RenderStyle* otherStyle) const { return
surround->margin.start(otherStyle->writingMode(), otherStyle->direction()); } | 637 const Length& marginStartUsing(const RenderStyle* otherStyle) const { return
surround->margin.start(otherStyle->direction()); } |
| 644 const Length& marginEndUsing(const RenderStyle* otherStyle) const { return s
urround->margin.end(otherStyle->writingMode(), otherStyle->direction()); } | 638 const Length& marginEndUsing(const RenderStyle* otherStyle) const { return s
urround->margin.end(otherStyle->direction()); } |
| 645 const Length& marginBeforeUsing(const RenderStyle* otherStyle) const { retur
n surround->margin.before(otherStyle->writingMode()); } | 639 const Length& marginBeforeUsing(const RenderStyle* otherStyle) const { retur
n surround->margin.before(); } |
| 646 const Length& marginAfterUsing(const RenderStyle* otherStyle) const { return
surround->margin.after(otherStyle->writingMode()); } | 640 const Length& marginAfterUsing(const RenderStyle* otherStyle) const { return
surround->margin.after(); } |
| 647 | 641 |
| 648 const LengthBox& paddingBox() const { return surround->padding; } | 642 const LengthBox& paddingBox() const { return surround->padding; } |
| 649 const Length& paddingTop() const { return surround->padding.top(); } | 643 const Length& paddingTop() const { return surround->padding.top(); } |
| 650 const Length& paddingBottom() const { return surround->padding.bottom(); } | 644 const Length& paddingBottom() const { return surround->padding.bottom(); } |
| 651 const Length& paddingLeft() const { return surround->padding.left(); } | 645 const Length& paddingLeft() const { return surround->padding.left(); } |
| 652 const Length& paddingRight() const { return surround->padding.right(); } | 646 const Length& paddingRight() const { return surround->padding.right(); } |
| 653 const Length& paddingBefore() const { return surround->padding.before(writin
gMode()); } | 647 const Length& paddingBefore() const { return surround->padding.before(); } |
| 654 const Length& paddingAfter() const { return surround->padding.after(writingM
ode()); } | 648 const Length& paddingAfter() const { return surround->padding.after(); } |
| 655 const Length& paddingStart() const { return surround->padding.start(writingM
ode(), direction()); } | 649 const Length& paddingStart() const { return surround->padding.start(directio
n()); } |
| 656 const Length& paddingEnd() const { return surround->padding.end(writingMode(
), direction()); } | 650 const Length& paddingEnd() const { return surround->padding.end(direction())
; } |
| 657 | 651 |
| 658 ECursor cursor() const { return static_cast<ECursor>(inherited_flags._cursor
_style); } | 652 ECursor cursor() const { return static_cast<ECursor>(inherited_flags._cursor
_style); } |
| 659 CursorList* cursors() const { return rareInheritedData->cursorData.get(); } | 653 CursorList* cursors() const { return rareInheritedData->cursorData.get(); } |
| 660 | 654 |
| 661 bool isLink() const { return noninherited_flags.isLink; } | 655 bool isLink() const { return noninherited_flags.isLink; } |
| 662 | 656 |
| 663 short widows() const { return rareInheritedData->widows; } | 657 short widows() const { return rareInheritedData->widows; } |
| 664 short orphans() const { return rareInheritedData->orphans; } | 658 short orphans() const { return rareInheritedData->orphans; } |
| 665 bool hasAutoWidows() const { return rareInheritedData->m_hasAutoWidows; } | 659 bool hasAutoWidows() const { return rareInheritedData->m_hasAutoWidows; } |
| 666 bool hasAutoOrphans() const { return rareInheritedData->m_hasAutoOrphans; } | 660 bool hasAutoOrphans() const { return rareInheritedData->m_hasAutoOrphans; } |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 | 824 |
| 831 bool isRunningOpacityAnimationOnCompositor() const { return rareNonInherited
Data->m_runningOpacityAnimationOnCompositor; } | 825 bool isRunningOpacityAnimationOnCompositor() const { return rareNonInherited
Data->m_runningOpacityAnimationOnCompositor; } |
| 832 bool isRunningTransformAnimationOnCompositor() const { return rareNonInherit
edData->m_runningTransformAnimationOnCompositor; } | 826 bool isRunningTransformAnimationOnCompositor() const { return rareNonInherit
edData->m_runningTransformAnimationOnCompositor; } |
| 833 bool isRunningFilterAnimationOnCompositor() const { return rareNonInheritedD
ata->m_runningFilterAnimationOnCompositor; } | 827 bool isRunningFilterAnimationOnCompositor() const { return rareNonInheritedD
ata->m_runningFilterAnimationOnCompositor; } |
| 834 bool isRunningAnimationOnCompositor() { return isRunningOpacityAnimationOnCo
mpositor() || isRunningTransformAnimationOnCompositor() || isRunningFilterAnimat
ionOnCompositor(); } | 828 bool isRunningAnimationOnCompositor() { return isRunningOpacityAnimationOnCo
mpositor() || isRunningTransformAnimationOnCompositor() || isRunningFilterAnimat
ionOnCompositor(); } |
| 835 | 829 |
| 836 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } | 830 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } |
| 837 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } | 831 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } |
| 838 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } | 832 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } |
| 839 | 833 |
| 840 WritingMode writingMode() const { return static_cast<WritingMode>(inherited_
flags.m_writingMode); } | 834 bool isHorizontalWritingMode() const { return blink::isHorizontalWritingMode
(); } |
| 841 bool isHorizontalWritingMode() const { return blink::isHorizontalWritingMode
(writingMode()); } | 835 bool isFlippedLinesWritingMode() const { return blink::isFlippedLinesWriting
Mode(); } |
| 842 bool isFlippedLinesWritingMode() const { return blink::isFlippedLinesWriting
Mode(writingMode()); } | 836 bool isFlippedBlocksWritingMode() const { return blink::isFlippedBlocksWriti
ngMode(); } |
| 843 bool isFlippedBlocksWritingMode() const { return blink::isFlippedBlocksWriti
ngMode(writingMode()); } | |
| 844 | 837 |
| 845 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } | 838 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } |
| 846 | 839 |
| 847 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} | 840 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} |
| 848 | 841 |
| 849 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } | 842 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_
filter.access()->m_operations; } |
| 850 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } | 843 const FilterOperations& filter() const { return rareNonInheritedData->m_filt
er->m_operations; } |
| 851 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } | 844 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation
s.operations().isEmpty(); } |
| 852 | 845 |
| 853 WebBlendMode blendMode() const; | 846 WebBlendMode blendMode() const; |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1319 const AtomicString& hyphenString() const; | 1312 const AtomicString& hyphenString() const; |
| 1320 | 1313 |
| 1321 bool inheritedNotEqual(const RenderStyle*) const; | 1314 bool inheritedNotEqual(const RenderStyle*) const; |
| 1322 bool inheritedDataShared(const RenderStyle*) const; | 1315 bool inheritedDataShared(const RenderStyle*) const; |
| 1323 | 1316 |
| 1324 bool isDisplayReplacedType() const { return isDisplayReplacedType(display())
; } | 1317 bool isDisplayReplacedType() const { return isDisplayReplacedType(display())
; } |
| 1325 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } | 1318 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } |
| 1326 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin
alDisplay()); } | 1319 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin
alDisplay()); } |
| 1327 bool isDisplayFlexibleOrGridBox() const { return isDisplayFlexibleBox(displa
y()) || isDisplayGridBox(display()); } | 1320 bool isDisplayFlexibleOrGridBox() const { return isDisplayFlexibleBox(displa
y()) || isDisplayGridBox(display()); } |
| 1328 | 1321 |
| 1329 | |
| 1330 bool setWritingMode(WritingMode v) | |
| 1331 { | |
| 1332 if (v == writingMode()) | |
| 1333 return false; | |
| 1334 | |
| 1335 inherited_flags.m_writingMode = v; | |
| 1336 return true; | |
| 1337 } | |
| 1338 | |
| 1339 // A unique style is one that has matches something that makes it impossible
to share. | 1322 // A unique style is one that has matches something that makes it impossible
to share. |
| 1340 bool unique() const { return noninherited_flags.unique; } | 1323 bool unique() const { return noninherited_flags.unique; } |
| 1341 void setUnique() { noninherited_flags.unique = true; } | 1324 void setUnique() { noninherited_flags.unique = true; } |
| 1342 | 1325 |
| 1343 bool isSharable() const; | 1326 bool isSharable() const; |
| 1344 | 1327 |
| 1345 bool emptyState() const { return noninherited_flags.emptyState; } | 1328 bool emptyState() const { return noninherited_flags.emptyState; } |
| 1346 void setEmptyState(bool b) { setUnique(); noninherited_flags.emptyState = b;
} | 1329 void setEmptyState(bool b) { setUnique(); noninherited_flags.emptyState = b;
} |
| 1347 bool firstChildState() const { return noninherited_flags.firstChildState; } | 1330 bool firstChildState() const { return noninherited_flags.firstChildState; } |
| 1348 void setFirstChildState() { setUnique(); noninherited_flags.firstChildState
= true; } | 1331 void setFirstChildState() { setUnique(); noninherited_flags.firstChildState
= true; } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1363 // Initial values for all the properties | 1346 // Initial values for all the properties |
| 1364 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } | 1347 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } |
| 1365 static EBorderStyle initialBorderStyle() { return BNONE; } | 1348 static EBorderStyle initialBorderStyle() { return BNONE; } |
| 1366 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } | 1349 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } |
| 1367 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } | 1350 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } |
| 1368 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } | 1351 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } |
| 1369 static ECaptionSide initialCaptionSide() { return CAPTOP; } | 1352 static ECaptionSide initialCaptionSide() { return CAPTOP; } |
| 1370 static EClear initialClear() { return CNONE; } | 1353 static EClear initialClear() { return CNONE; } |
| 1371 static LengthBox initialClip() { return LengthBox(); } | 1354 static LengthBox initialClip() { return LengthBox(); } |
| 1372 static TextDirection initialDirection() { return LTR; } | 1355 static TextDirection initialDirection() { return LTR; } |
| 1373 static WritingMode initialWritingMode() { return TopToBottomWritingMode; } | |
| 1374 static TextCombine initialTextCombine() { return TextCombineNone; } | 1356 static TextCombine initialTextCombine() { return TextCombineNone; } |
| 1375 static TextOrientation initialTextOrientation() { return TextOrientationVert
icalRight; } | 1357 static TextOrientation initialTextOrientation() { return TextOrientationVert
icalRight; } |
| 1376 static ObjectFit initialObjectFit() { return ObjectFitFill; } | 1358 static ObjectFit initialObjectFit() { return ObjectFitFill; } |
| 1377 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0,
Percent), Length(50.0, Percent)); } | 1359 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0,
Percent), Length(50.0, Percent)); } |
| 1378 static EDisplay initialDisplay() { return BLOCK; } | 1360 static EDisplay initialDisplay() { return BLOCK; } |
| 1379 static EEmptyCell initialEmptyCells() { return SHOW; } | 1361 static EEmptyCell initialEmptyCells() { return SHOW; } |
| 1380 static EFloat initialFloating() { return NoFloat; } | 1362 static EFloat initialFloating() { return NoFloat; } |
| 1381 static EListStylePosition initialListStylePosition() { return OUTSIDE; } | 1363 static EListStylePosition initialListStylePosition() { return OUTSIDE; } |
| 1382 static EListStyleType initialListStyleType() { return Disc; } | 1364 static EListStyleType initialListStyleType() { return Disc; } |
| 1383 static EOverflow initialOverflowX() { return OVISIBLE; } | 1365 static EOverflow initialOverflowX() { return OVISIBLE; } |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1666 | 1648 |
| 1667 rareInheritedData.access()->m_textOrientation = textOrientation; | 1649 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1668 return true; | 1650 return true; |
| 1669 } | 1651 } |
| 1670 | 1652 |
| 1671 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1653 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
| 1672 | 1654 |
| 1673 } // namespace blink | 1655 } // namespace blink |
| 1674 | 1656 |
| 1675 #endif // RenderStyle_h | 1657 #endif // RenderStyle_h |
| OLD | NEW |