| 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 25 matching lines...) Expand all Loading... |
| 36 #include "core/rendering/style/LineClampValue.h" | 36 #include "core/rendering/style/LineClampValue.h" |
| 37 #include "core/rendering/style/NinePieceImage.h" | 37 #include "core/rendering/style/NinePieceImage.h" |
| 38 #include "core/rendering/style/OutlineValue.h" | 38 #include "core/rendering/style/OutlineValue.h" |
| 39 #include "core/rendering/style/RenderStyleConstants.h" | 39 #include "core/rendering/style/RenderStyleConstants.h" |
| 40 #include "core/rendering/style/ShapeValue.h" | 40 #include "core/rendering/style/ShapeValue.h" |
| 41 #include "core/rendering/style/StyleBackgroundData.h" | 41 #include "core/rendering/style/StyleBackgroundData.h" |
| 42 #include "core/rendering/style/StyleBoxData.h" | 42 #include "core/rendering/style/StyleBoxData.h" |
| 43 #include "core/rendering/style/StyleDifference.h" | 43 #include "core/rendering/style/StyleDifference.h" |
| 44 #include "core/rendering/style/StyleFilterData.h" | 44 #include "core/rendering/style/StyleFilterData.h" |
| 45 #include "core/rendering/style/StyleFlexibleBoxData.h" | 45 #include "core/rendering/style/StyleFlexibleBoxData.h" |
| 46 #include "core/rendering/style/StyleGridData.h" | |
| 47 #include "core/rendering/style/StyleGridItemData.h" | |
| 48 #include "core/rendering/style/StyleInheritedData.h" | 46 #include "core/rendering/style/StyleInheritedData.h" |
| 49 #include "core/rendering/style/StyleRareInheritedData.h" | 47 #include "core/rendering/style/StyleRareInheritedData.h" |
| 50 #include "core/rendering/style/StyleRareNonInheritedData.h" | 48 #include "core/rendering/style/StyleRareNonInheritedData.h" |
| 51 #include "core/rendering/style/StyleSurroundData.h" | 49 #include "core/rendering/style/StyleSurroundData.h" |
| 52 #include "core/rendering/style/StyleTransformData.h" | 50 #include "core/rendering/style/StyleTransformData.h" |
| 53 #include "core/rendering/style/StyleVisualData.h" | 51 #include "core/rendering/style/StyleVisualData.h" |
| 54 #include "core/rendering/style/StyleWillChangeData.h" | 52 #include "core/rendering/style/StyleWillChangeData.h" |
| 55 #include "platform/Length.h" | 53 #include "platform/Length.h" |
| 56 #include "platform/LengthBox.h" | 54 #include "platform/LengthBox.h" |
| 57 #include "platform/LengthSize.h" | 55 #include "platform/LengthSize.h" |
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn ||
flexDirection() == FlowColumnReverse; } | 698 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn ||
flexDirection() == FlowColumnReverse; } |
| 701 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } | 699 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } |
| 702 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD
ata->m_flexibleBox->m_flexWrap); } | 700 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD
ata->m_flexibleBox->m_flexWrap); } |
| 703 EJustifyContent justifyContent() const { return static_cast<EJustifyContent>
(rareNonInheritedData->m_justifyContent); } | 701 EJustifyContent justifyContent() const { return static_cast<EJustifyContent>
(rareNonInheritedData->m_justifyContent); } |
| 704 ItemPosition justifyItems() const { return static_cast<ItemPosition>(rareNon
InheritedData->m_justifyItems); } | 702 ItemPosition justifyItems() const { return static_cast<ItemPosition>(rareNon
InheritedData->m_justifyItems); } |
| 705 OverflowAlignment justifyItemsOverflowAlignment() const { return static_cast
<OverflowAlignment>(rareNonInheritedData->m_justifyItemsOverflowAlignment); } | 703 OverflowAlignment justifyItemsOverflowAlignment() const { return static_cast
<OverflowAlignment>(rareNonInheritedData->m_justifyItemsOverflowAlignment); } |
| 706 ItemPositionType justifyItemsPositionType() const { return static_cast<ItemP
ositionType>(rareNonInheritedData->m_justifyItemsPositionType); } | 704 ItemPositionType justifyItemsPositionType() const { return static_cast<ItemP
ositionType>(rareNonInheritedData->m_justifyItemsPositionType); } |
| 707 ItemPosition justifySelf() const { return static_cast<ItemPosition>(rareNonI
nheritedData->m_justifySelf); } | 705 ItemPosition justifySelf() const { return static_cast<ItemPosition>(rareNonI
nheritedData->m_justifySelf); } |
| 708 OverflowAlignment justifySelfOverflowAlignment() const { return static_cast<
OverflowAlignment>(rareNonInheritedData->m_justifySelfOverflowAlignment); } | 706 OverflowAlignment justifySelfOverflowAlignment() const { return static_cast<
OverflowAlignment>(rareNonInheritedData->m_justifySelfOverflowAlignment); } |
| 709 | 707 |
| 710 const Vector<GridTrackSize>& gridTemplateColumns() const { return rareNonInh
eritedData->m_grid->m_gridTemplateColumns; } | |
| 711 const Vector<GridTrackSize>& gridTemplateRows() const { return rareNonInheri
tedData->m_grid->m_gridTemplateRows; } | |
| 712 const NamedGridLinesMap& namedGridColumnLines() const { return rareNonInheri
tedData->m_grid->m_namedGridColumnLines; } | |
| 713 const NamedGridLinesMap& namedGridRowLines() const { return rareNonInherited
Data->m_grid->m_namedGridRowLines; } | |
| 714 const OrderedNamedGridLines& orderedNamedGridColumnLines() const { return ra
reNonInheritedData->m_grid->m_orderedNamedGridColumnLines; } | |
| 715 const OrderedNamedGridLines& orderedNamedGridRowLines() const { return rareN
onInheritedData->m_grid->m_orderedNamedGridRowLines; } | |
| 716 const NamedGridAreaMap& namedGridArea() const { return rareNonInheritedData-
>m_grid->m_namedGridArea; } | |
| 717 size_t namedGridAreaRowCount() const { return rareNonInheritedData->m_grid->
m_namedGridAreaRowCount; } | |
| 718 size_t namedGridAreaColumnCount() const { return rareNonInheritedData->m_gri
d->m_namedGridAreaColumnCount; } | |
| 719 GridAutoFlow gridAutoFlow() const { return static_cast<GridAutoFlow>(rareNon
InheritedData->m_grid->m_gridAutoFlow); } | |
| 720 bool isGridAutoFlowDirectionRow() const { return (rareNonInheritedData->m_gr
id->m_gridAutoFlow & InternalAutoFlowDirectionRow) == InternalAutoFlowDirectionR
ow; } | |
| 721 bool isGridAutoFlowDirectionColumn() const { return (rareNonInheritedData->m
_grid->m_gridAutoFlow & InternalAutoFlowDirectionColumn) == InternalAutoFlowDire
ctionColumn; } | |
| 722 bool isGridAutoFlowAlgorithmSparse() const { return (rareNonInheritedData->m
_grid->m_gridAutoFlow & InternalAutoFlowAlgorithmSparse) == InternalAutoFlowAlgo
rithmSparse; } | |
| 723 bool isGridAutoFlowAlgorithmDense() const { return (rareNonInheritedData->m_
grid->m_gridAutoFlow & InternalAutoFlowAlgorithmDense) == InternalAutoFlowAlgori
thmDense; } | |
| 724 bool isGridAutoFlowAlgorithmStack() const { return (rareNonInheritedData->m_
grid->m_gridAutoFlow & InternalAutoFlowAlgorithmStack) == InternalAutoFlowAlgori
thmStack; } | |
| 725 const GridTrackSize& gridAutoColumns() const { return rareNonInheritedData->
m_grid->m_gridAutoColumns; } | |
| 726 const GridTrackSize& gridAutoRows() const { return rareNonInheritedData->m_g
rid->m_gridAutoRows; } | |
| 727 | |
| 728 const GridPosition& gridColumnStart() const { return rareNonInheritedData->m
_gridItem->m_gridColumnStart; } | |
| 729 const GridPosition& gridColumnEnd() const { return rareNonInheritedData->m_g
ridItem->m_gridColumnEnd; } | |
| 730 const GridPosition& gridRowStart() const { return rareNonInheritedData->m_gr
idItem->m_gridRowStart; } | |
| 731 const GridPosition& gridRowEnd() const { return rareNonInheritedData->m_grid
Item->m_gridRowEnd; } | |
| 732 | |
| 733 ShadowList* boxShadow() const { return rareNonInheritedData->m_boxShadow.get
(); } | 708 ShadowList* boxShadow() const { return rareNonInheritedData->m_boxShadow.get
(); } |
| 734 void getBoxShadowExtent(LayoutUnit& top, LayoutUnit& right, LayoutUnit& bott
om, LayoutUnit& left) const { getShadowExtent(boxShadow(), top, right, bottom, l
eft); } | 709 void getBoxShadowExtent(LayoutUnit& top, LayoutUnit& right, LayoutUnit& bott
om, LayoutUnit& left) const { getShadowExtent(boxShadow(), top, right, bottom, l
eft); } |
| 735 LayoutBoxExtent getBoxShadowInsetExtent() const { return getShadowInsetExten
t(boxShadow()); } | 710 LayoutBoxExtent getBoxShadowInsetExtent() const { return getShadowInsetExten
t(boxShadow()); } |
| 736 void getBoxShadowHorizontalExtent(LayoutUnit& left, LayoutUnit& right) const
{ getShadowHorizontalExtent(boxShadow(), left, right); } | 711 void getBoxShadowHorizontalExtent(LayoutUnit& left, LayoutUnit& right) const
{ getShadowHorizontalExtent(boxShadow(), left, right); } |
| 737 void getBoxShadowVerticalExtent(LayoutUnit& top, LayoutUnit& bottom) const {
getShadowVerticalExtent(boxShadow(), top, bottom); } | 712 void getBoxShadowVerticalExtent(LayoutUnit& top, LayoutUnit& bottom) const {
getShadowVerticalExtent(boxShadow(), top, bottom); } |
| 738 void getBoxShadowInlineDirectionExtent(LayoutUnit& logicalLeft, LayoutUnit&
logicalRight) { getShadowInlineDirectionExtent(boxShadow(), logicalLeft, logical
Right); } | 713 void getBoxShadowInlineDirectionExtent(LayoutUnit& logicalLeft, LayoutUnit&
logicalRight) { getShadowInlineDirectionExtent(boxShadow(), logicalLeft, logical
Right); } |
| 739 void getBoxShadowBlockDirectionExtent(LayoutUnit& logicalTop, LayoutUnit& lo
gicalBottom) { getShadowBlockDirectionExtent(boxShadow(), logicalTop, logicalBot
tom); } | 714 void getBoxShadowBlockDirectionExtent(LayoutUnit& logicalTop, LayoutUnit& lo
gicalBottom) { getShadowBlockDirectionExtent(boxShadow(), logicalTop, logicalBot
tom); } |
| 740 | 715 |
| 741 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration
Break(); } | 716 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration
Break(); } |
| 742 | 717 |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1137 void setAlignSelf(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignSel
f, a); } | 1112 void setAlignSelf(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignSel
f, a); } |
| 1138 void setAlignSelfOverflowAlignment(OverflowAlignment overflowAlignment) { SE
T_VAR(rareNonInheritedData, m_alignSelfOverflowAlignment, overflowAlignment); } | 1113 void setAlignSelfOverflowAlignment(OverflowAlignment overflowAlignment) { SE
T_VAR(rareNonInheritedData, m_alignSelfOverflowAlignment, overflowAlignment); } |
| 1139 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa
ta.access()->m_flexibleBox, m_flexDirection, direction); } | 1114 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa
ta.access()->m_flexibleBox, m_flexDirection, direction); } |
| 1140 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle
xibleBox, m_flexWrap, w); } | 1115 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle
xibleBox, m_flexWrap, w); } |
| 1141 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_
justifyContent, p); } | 1116 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_
justifyContent, p); } |
| 1142 void setJustifyItems(ItemPosition justifyItems) { SET_VAR(rareNonInheritedDa
ta, m_justifyItems, justifyItems); } | 1117 void setJustifyItems(ItemPosition justifyItems) { SET_VAR(rareNonInheritedDa
ta, m_justifyItems, justifyItems); } |
| 1143 void setJustifyItemsOverflowAlignment(OverflowAlignment overflowAlignment) {
SET_VAR(rareNonInheritedData, m_justifyItemsOverflowAlignment, overflowAlignmen
t); } | 1118 void setJustifyItemsOverflowAlignment(OverflowAlignment overflowAlignment) {
SET_VAR(rareNonInheritedData, m_justifyItemsOverflowAlignment, overflowAlignmen
t); } |
| 1144 void setJustifyItemsPositionType(ItemPositionType positionType) { SET_VAR(ra
reNonInheritedData, m_justifyItemsPositionType, positionType); } | 1119 void setJustifyItemsPositionType(ItemPositionType positionType) { SET_VAR(ra
reNonInheritedData, m_justifyItemsPositionType, positionType); } |
| 1145 void setJustifySelf(ItemPosition justifySelf) { SET_VAR(rareNonInheritedData
, m_justifySelf, justifySelf); } | 1120 void setJustifySelf(ItemPosition justifySelf) { SET_VAR(rareNonInheritedData
, m_justifySelf, justifySelf); } |
| 1146 void setJustifySelfOverflowAlignment(OverflowAlignment overflowAlignment) {
SET_VAR(rareNonInheritedData, m_justifySelfOverflowAlignment, overflowAlignment)
; } | 1121 void setJustifySelfOverflowAlignment(OverflowAlignment overflowAlignment) {
SET_VAR(rareNonInheritedData, m_justifySelfOverflowAlignment, overflowAlignment)
; } |
| 1147 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri
tedData.access()->m_grid, m_gridAutoColumns, length); } | |
| 1148 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited
Data.access()->m_grid, m_gridAutoRows, length); } | |
| 1149 void setGridTemplateColumns(const Vector<GridTrackSize>& lengths) { SET_VAR(
rareNonInheritedData.access()->m_grid, m_gridTemplateColumns, lengths); } | |
| 1150 void setGridTemplateRows(const Vector<GridTrackSize>& lengths) { SET_VAR(rar
eNonInheritedData.access()->m_grid, m_gridTemplateRows, lengths); } | |
| 1151 void setNamedGridColumnLines(const NamedGridLinesMap& namedGridColumnLines)
{ SET_VAR(rareNonInheritedData.access()->m_grid, m_namedGridColumnLines, namedGr
idColumnLines); } | |
| 1152 void setNamedGridRowLines(const NamedGridLinesMap& namedGridRowLines) { SET_
VAR(rareNonInheritedData.access()->m_grid, m_namedGridRowLines, namedGridRowLine
s); } | |
| 1153 void setOrderedNamedGridColumnLines(const OrderedNamedGridLines& orderedName
dGridColumnLines) { SET_VAR(rareNonInheritedData.access()->m_grid, m_orderedName
dGridColumnLines, orderedNamedGridColumnLines); } | |
| 1154 void setOrderedNamedGridRowLines(const OrderedNamedGridLines& orderedNamedGr
idRowLines) { SET_VAR(rareNonInheritedData.access()->m_grid, m_orderedNamedGridR
owLines, orderedNamedGridRowLines); } | |
| 1155 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_VAR(rareN
onInheritedData.access()->m_grid, m_namedGridArea, namedGridArea); } | |
| 1156 void setNamedGridAreaRowCount(size_t rowCount) { SET_VAR(rareNonInheritedDat
a.access()->m_grid, m_namedGridAreaRowCount, rowCount); } | |
| 1157 void setNamedGridAreaColumnCount(size_t columnCount) { SET_VAR(rareNonInheri
tedData.access()->m_grid, m_namedGridAreaColumnCount, columnCount); } | |
| 1158 void setGridAutoFlow(GridAutoFlow flow) { SET_VAR(rareNonInheritedData.acces
s()->m_grid, m_gridAutoFlow, flow); } | |
| 1159 | |
| 1160 void setGridColumnStart(const GridPosition& columnStartPosition) { SET_VAR(r
areNonInheritedData.access()->m_gridItem, m_gridColumnStart, columnStartPosition
); } | |
| 1161 void setGridColumnEnd(const GridPosition& columnEndPosition) { SET_VAR(rareN
onInheritedData.access()->m_gridItem, m_gridColumnEnd, columnEndPosition); } | |
| 1162 void setGridRowStart(const GridPosition& rowStartPosition) { SET_VAR(rareNon
InheritedData.access()->m_gridItem, m_gridRowStart, rowStartPosition); } | |
| 1163 void setGridRowEnd(const GridPosition& rowEndPosition) { SET_VAR(rareNonInhe
ritedData.access()->m_gridItem, m_gridRowEnd, rowEndPosition); } | |
| 1164 | 1122 |
| 1165 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u
); } | 1123 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u
); } |
| 1166 void setUserDrag(EUserDrag d) { SET_VAR(rareNonInheritedData, userDrag, d);
} | 1124 void setUserDrag(EUserDrag d) { SET_VAR(rareNonInheritedData, userDrag, d);
} |
| 1167 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s
); } | 1125 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s
); } |
| 1168 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData,
textOverflow, overflow); } | 1126 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData,
textOverflow, overflow); } |
| 1169 void setMarginBeforeCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDa
ta, marginBeforeCollapse, c); } | 1127 void setMarginBeforeCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDa
ta, marginBeforeCollapse, c); } |
| 1170 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat
a, marginAfterCollapse, c); } | 1128 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat
a, marginAfterCollapse, c); } |
| 1171 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b);
} | 1129 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b);
} |
| 1172 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW
rap, b); } | 1130 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW
rap, b); } |
| 1173 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); } | 1131 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1294 void setQuotes(PassRefPtr<QuotesData>); | 1252 void setQuotes(PassRefPtr<QuotesData>); |
| 1295 | 1253 |
| 1296 const AtomicString& hyphenString() const; | 1254 const AtomicString& hyphenString() const; |
| 1297 | 1255 |
| 1298 bool inheritedNotEqual(const RenderStyle*) const; | 1256 bool inheritedNotEqual(const RenderStyle*) const; |
| 1299 bool inheritedDataShared(const RenderStyle*) const; | 1257 bool inheritedDataShared(const RenderStyle*) const; |
| 1300 | 1258 |
| 1301 bool isDisplayReplacedType() const { return isDisplayReplacedType(display())
; } | 1259 bool isDisplayReplacedType() const { return isDisplayReplacedType(display())
; } |
| 1302 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } | 1260 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } |
| 1303 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin
alDisplay()); } | 1261 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin
alDisplay()); } |
| 1304 bool isDisplayFlexibleOrGridBox() const { return isDisplayFlexibleBox(displa
y()) || isDisplayGridBox(display()); } | 1262 bool isDisplayFlexibleBox() const { return isDisplayFlexibleBox(display());
} |
| 1305 | 1263 |
| 1306 // A unique style is one that has matches something that makes it impossible
to share. | 1264 // A unique style is one that has matches something that makes it impossible
to share. |
| 1307 bool unique() const { return noninherited_flags.unique; } | 1265 bool unique() const { return noninherited_flags.unique; } |
| 1308 void setUnique() { noninherited_flags.unique = true; } | 1266 void setUnique() { noninherited_flags.unique = true; } |
| 1309 | 1267 |
| 1310 bool isSharable() const; | 1268 bool isSharable() const; |
| 1311 | 1269 |
| 1312 bool emptyState() const { return noninherited_flags.emptyState; } | 1270 bool emptyState() const { return noninherited_flags.emptyState; } |
| 1313 void setEmptyState(bool b) { setUnique(); noninherited_flags.emptyState = b;
} | 1271 void setEmptyState(bool b) { setUnique(); noninherited_flags.emptyState = b;
} |
| 1314 bool firstChildState() const { return noninherited_flags.firstChildState; } | 1272 bool firstChildState() const { return noninherited_flags.firstChildState; } |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1455 static float initialImageResolution() { return 1; } | 1413 static float initialImageResolution() { return 1; } |
| 1456 static StyleImage* initialBorderImageSource() { return 0; } | 1414 static StyleImage* initialBorderImageSource() { return 0; } |
| 1457 static StyleImage* initialMaskBoxImageSource() { return 0; } | 1415 static StyleImage* initialMaskBoxImageSource() { return 0; } |
| 1458 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE
conomy; } | 1416 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE
conomy; } |
| 1459 static TouchAction initialTouchAction() { return TouchActionAuto; } | 1417 static TouchAction initialTouchAction() { return TouchActionAuto; } |
| 1460 static TouchActionDelay initialTouchActionDelay() { return TouchActionDelayS
cript; } | 1418 static TouchActionDelay initialTouchActionDelay() { return TouchActionDelayS
cript; } |
| 1461 static ShadowList* initialBoxShadow() { return 0; } | 1419 static ShadowList* initialBoxShadow() { return 0; } |
| 1462 static ShadowList* initialTextShadow() { return 0; } | 1420 static ShadowList* initialTextShadow() { return 0; } |
| 1463 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorInstant
; } | 1421 static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorInstant
; } |
| 1464 | 1422 |
| 1465 // The initial value is 'none' for grid tracks. | |
| 1466 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr
idTrackSize>(); } | |
| 1467 static Vector<GridTrackSize> initialGridTemplateRows() { return Vector<GridT
rackSize>(); } | |
| 1468 | |
| 1469 static GridAutoFlow initialGridAutoFlow() { return AutoFlowRow; } | |
| 1470 | |
| 1471 static GridTrackSize initialGridAutoColumns() { return GridTrackSize(Length(
Auto)); } | |
| 1472 static GridTrackSize initialGridAutoRows() { return GridTrackSize(Length(Aut
o)); } | |
| 1473 | |
| 1474 static NamedGridLinesMap initialNamedGridColumnLines() { return NamedGridLin
esMap(); } | |
| 1475 static NamedGridLinesMap initialNamedGridRowLines() { return NamedGridLinesM
ap(); } | |
| 1476 | |
| 1477 static OrderedNamedGridLines initialOrderedNamedGridColumnLines() { return O
rderedNamedGridLines(); } | |
| 1478 static OrderedNamedGridLines initialOrderedNamedGridRowLines() { return Orde
redNamedGridLines(); } | |
| 1479 | |
| 1480 static NamedGridAreaMap initialNamedGridArea() { return NamedGridAreaMap();
} | |
| 1481 static size_t initialNamedGridAreaCount() { return 0; } | |
| 1482 | |
| 1483 // 'auto' is the default. | |
| 1484 static GridPosition initialGridColumnStart() { return GridPosition(); } | |
| 1485 static GridPosition initialGridColumnEnd() { return GridPosition(); } | |
| 1486 static GridPosition initialGridRowStart() { return GridPosition(); } | |
| 1487 static GridPosition initialGridRowEnd() { return GridPosition(); } | |
| 1488 | |
| 1489 static unsigned initialTabSize() { return 8; } | 1423 static unsigned initialTabSize() { return 8; } |
| 1490 | 1424 |
| 1491 static WrapFlow initialWrapFlow() { return WrapFlowAuto; } | 1425 static WrapFlow initialWrapFlow() { return WrapFlowAuto; } |
| 1492 static WrapThrough initialWrapThrough() { return WrapThroughWrap; } | 1426 static WrapThrough initialWrapThrough() { return WrapThroughWrap; } |
| 1493 | 1427 |
| 1494 static QuotesData* initialQuotes() { return 0; } | 1428 static QuotesData* initialQuotes() { return 0; } |
| 1495 | 1429 |
| 1496 // Keep these at the end. | 1430 // Keep these at the end. |
| 1497 // FIXME: Why? Seems these should all be one big sorted list. | 1431 // FIXME: Why? Seems these should all be one big sorted list. |
| 1498 static LineClampValue initialLineClamp() { return LineClampValue(); } | 1432 static LineClampValue initialLineClamp() { return LineClampValue(); } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1516 void getShadowBlockDirectionExtent(const ShadowList* shadow, LayoutUnit& log
icalTop, LayoutUnit& logicalBottom) const | 1450 void getShadowBlockDirectionExtent(const ShadowList* shadow, LayoutUnit& log
icalTop, LayoutUnit& logicalBottom) const |
| 1517 { | 1451 { |
| 1518 return getShadowVerticalExtent(shadow, logicalTop, logicalBottom); | 1452 return getShadowVerticalExtent(shadow, logicalTop, logicalBottom); |
| 1519 } | 1453 } |
| 1520 | 1454 |
| 1521 bool isDisplayFlexibleBox(EDisplay display) const | 1455 bool isDisplayFlexibleBox(EDisplay display) const |
| 1522 { | 1456 { |
| 1523 return display == FLEX || display == INLINE_FLEX; | 1457 return display == FLEX || display == INLINE_FLEX; |
| 1524 } | 1458 } |
| 1525 | 1459 |
| 1526 bool isDisplayGridBox(EDisplay display) const | |
| 1527 { | |
| 1528 return display == GRID || display == INLINE_GRID; | |
| 1529 } | |
| 1530 | |
| 1531 bool isDisplayReplacedType(EDisplay display) const | 1460 bool isDisplayReplacedType(EDisplay display) const |
| 1532 { | 1461 { |
| 1533 return display == INLINE_BLOCK || display == INLINE_FLEX || display == I
NLINE_GRID; | 1462 return display == INLINE_BLOCK || display == INLINE_FLEX; |
| 1534 } | 1463 } |
| 1535 | 1464 |
| 1536 bool isDisplayInlineType(EDisplay display) const | 1465 bool isDisplayInlineType(EDisplay display) const |
| 1537 { | 1466 { |
| 1538 return display == INLINE || isDisplayReplacedType(display); | 1467 return display == INLINE || isDisplayReplacedType(display); |
| 1539 } | 1468 } |
| 1540 | 1469 |
| 1541 // Color accessors are all private to make sure callers use colorIncludingFa
llback instead to access them. | 1470 // Color accessors are all private to make sure callers use colorIncludingFa
llback instead to access them. |
| 1542 StyleColor borderLeftColor() const { return surround->border.left().color();
} | 1471 StyleColor borderLeftColor() const { return surround->border.left().color();
} |
| 1543 StyleColor borderRightColor() const { return surround->border.right().color(
); } | 1472 StyleColor borderRightColor() const { return surround->border.right().color(
); } |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 | 1559 |
| 1631 rareInheritedData.access()->m_textOrientation = textOrientation; | 1560 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1632 return true; | 1561 return true; |
| 1633 } | 1562 } |
| 1634 | 1563 |
| 1635 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1564 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
| 1636 | 1565 |
| 1637 } // namespace blink | 1566 } // namespace blink |
| 1638 | 1567 |
| 1639 #endif // RenderStyle_h | 1568 #endif // RenderStyle_h |
| OLD | NEW |