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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 const Length& flexBasis() const { return rareNonInheritedData->m_flexibleBox
->m_flexBasis; } | 760 const Length& flexBasis() const { return rareNonInheritedData->m_flexibleBox
->m_flexBasis; } |
761 EAlignContent alignContent() const { return static_cast<EAlignContent>(rareN
onInheritedData->m_alignContent); } | 761 EAlignContent alignContent() const { return static_cast<EAlignContent>(rareN
onInheritedData->m_alignContent); } |
762 ItemPosition alignItems() const { return static_cast<ItemPosition>(rareNonIn
heritedData->m_alignItems); } | 762 ItemPosition alignItems() const { return static_cast<ItemPosition>(rareNonIn
heritedData->m_alignItems); } |
763 OverflowAlignment alignItemsOverflowAlignment() const { return static_cast<O
verflowAlignment>(rareNonInheritedData->m_alignItemsOverflowAlignment); } | 763 OverflowAlignment alignItemsOverflowAlignment() const { return static_cast<O
verflowAlignment>(rareNonInheritedData->m_alignItemsOverflowAlignment); } |
764 ItemPosition alignSelf() const { return static_cast<ItemPosition>(rareNonInh
eritedData->m_alignSelf); } | 764 ItemPosition alignSelf() const { return static_cast<ItemPosition>(rareNonInh
eritedData->m_alignSelf); } |
765 OverflowAlignment alignSelfOverflowAlignment() const { return static_cast<Ov
erflowAlignment>(rareNonInheritedData->m_alignSelfOverflowAlignment); } | 765 OverflowAlignment alignSelfOverflowAlignment() const { return static_cast<Ov
erflowAlignment>(rareNonInheritedData->m_alignSelfOverflowAlignment); } |
766 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra
reNonInheritedData->m_flexibleBox->m_flexDirection); } | 766 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra
reNonInheritedData->m_flexibleBox->m_flexDirection); } |
767 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn ||
flexDirection() == FlowColumnReverse; } | 767 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn ||
flexDirection() == FlowColumnReverse; } |
768 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } | 768 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever
se || flexDirection() == FlowColumnReverse; } |
769 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD
ata->m_flexibleBox->m_flexWrap); } | 769 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD
ata->m_flexibleBox->m_flexWrap); } |
770 EJustifyContent justifyContent() const { return static_cast<EJustifyContent>
(rareNonInheritedData->m_justifyContent); } | 770 ContentPosition justifyContent() const { return static_cast<ContentPosition>
(rareNonInheritedData->m_justifyContent); } |
| 771 ContentDistributionType justifyContentDistribution() const { return static_c
ast<ContentDistributionType>(rareNonInheritedData->m_justifyContentDistribution)
; } |
| 772 OverflowAlignment justifyContentOverflowAlignment() const { return static_ca
st<OverflowAlignment>(rareNonInheritedData->m_justifyContentOverflowAlignment);
} |
771 ItemPosition justifyItems() const { return static_cast<ItemPosition>(rareNon
InheritedData->m_justifyItems); } | 773 ItemPosition justifyItems() const { return static_cast<ItemPosition>(rareNon
InheritedData->m_justifyItems); } |
772 OverflowAlignment justifyItemsOverflowAlignment() const { return static_cast
<OverflowAlignment>(rareNonInheritedData->m_justifyItemsOverflowAlignment); } | 774 OverflowAlignment justifyItemsOverflowAlignment() const { return static_cast
<OverflowAlignment>(rareNonInheritedData->m_justifyItemsOverflowAlignment); } |
773 ItemPositionType justifyItemsPositionType() const { return static_cast<ItemP
ositionType>(rareNonInheritedData->m_justifyItemsPositionType); } | 775 ItemPositionType justifyItemsPositionType() const { return static_cast<ItemP
ositionType>(rareNonInheritedData->m_justifyItemsPositionType); } |
774 ItemPosition justifySelf() const { return static_cast<ItemPosition>(rareNonI
nheritedData->m_justifySelf); } | 776 ItemPosition justifySelf() const { return static_cast<ItemPosition>(rareNonI
nheritedData->m_justifySelf); } |
775 OverflowAlignment justifySelfOverflowAlignment() const { return static_cast<
OverflowAlignment>(rareNonInheritedData->m_justifySelfOverflowAlignment); } | 777 OverflowAlignment justifySelfOverflowAlignment() const { return static_cast<
OverflowAlignment>(rareNonInheritedData->m_justifySelfOverflowAlignment); } |
776 | 778 |
777 const Vector<GridTrackSize>& gridTemplateColumns() const { return rareNonInh
eritedData->m_grid->m_gridTemplateColumns; } | 779 const Vector<GridTrackSize>& gridTemplateColumns() const { return rareNonInh
eritedData->m_grid->m_gridTemplateColumns; } |
778 const Vector<GridTrackSize>& gridTemplateRows() const { return rareNonInheri
tedData->m_grid->m_gridTemplateRows; } | 780 const Vector<GridTrackSize>& gridTemplateRows() const { return rareNonInheri
tedData->m_grid->m_gridTemplateRows; } |
779 const NamedGridLinesMap& namedGridColumnLines() const { return rareNonInheri
tedData->m_grid->m_namedGridColumnLines; } | 781 const NamedGridLinesMap& namedGridColumnLines() const { return rareNonInheri
tedData->m_grid->m_namedGridColumnLines; } |
780 const NamedGridLinesMap& namedGridRowLines() const { return rareNonInherited
Data->m_grid->m_namedGridRowLines; } | 782 const NamedGridLinesMap& namedGridRowLines() const { return rareNonInherited
Data->m_grid->m_namedGridRowLines; } |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1266 // 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. | 1268 // 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. |
1267 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, max(std::numer
ic_limits<int>::min() + 2, o)); } | 1269 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, max(std::numer
ic_limits<int>::min() + 2, o)); } |
1268 void addCallbackSelector(const String& selector); | 1270 void addCallbackSelector(const String& selector); |
1269 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig
nContent, p); } | 1271 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig
nContent, p); } |
1270 void setAlignItems(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignIt
ems, a); } | 1272 void setAlignItems(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignIt
ems, a); } |
1271 void setAlignItemsOverflowAlignment(OverflowAlignment overflowAlignment) { S
ET_VAR(rareNonInheritedData, m_alignItemsOverflowAlignment, overflowAlignment);
} | 1273 void setAlignItemsOverflowAlignment(OverflowAlignment overflowAlignment) { S
ET_VAR(rareNonInheritedData, m_alignItemsOverflowAlignment, overflowAlignment);
} |
1272 void setAlignSelf(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignSel
f, a); } | 1274 void setAlignSelf(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignSel
f, a); } |
1273 void setAlignSelfOverflowAlignment(OverflowAlignment overflowAlignment) { SE
T_VAR(rareNonInheritedData, m_alignSelfOverflowAlignment, overflowAlignment); } | 1275 void setAlignSelfOverflowAlignment(OverflowAlignment overflowAlignment) { SE
T_VAR(rareNonInheritedData, m_alignSelfOverflowAlignment, overflowAlignment); } |
1274 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa
ta.access()->m_flexibleBox, m_flexDirection, direction); } | 1276 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa
ta.access()->m_flexibleBox, m_flexDirection, direction); } |
1275 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle
xibleBox, m_flexWrap, w); } | 1277 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle
xibleBox, m_flexWrap, w); } |
1276 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_
justifyContent, p); } | 1278 void setJustifyContent(ContentPosition p) { SET_VAR(rareNonInheritedData, m_
justifyContent, p); } |
| 1279 void setJustifyContentDistribution(ContentDistributionType p) { SET_VAR(rare
NonInheritedData, m_justifyContentDistribution, p); } |
| 1280 void setJustifyContentOverflowAlignment(OverflowAlignment overflowAlignment)
{ SET_VAR(rareNonInheritedData, m_justifyContentOverflowAlignment, overflowAlig
nment); } |
1277 void setJustifyItems(ItemPosition justifyItems) { SET_VAR(rareNonInheritedDa
ta, m_justifyItems, justifyItems); } | 1281 void setJustifyItems(ItemPosition justifyItems) { SET_VAR(rareNonInheritedDa
ta, m_justifyItems, justifyItems); } |
1278 void setJustifyItemsOverflowAlignment(OverflowAlignment overflowAlignment) {
SET_VAR(rareNonInheritedData, m_justifyItemsOverflowAlignment, overflowAlignmen
t); } | 1282 void setJustifyItemsOverflowAlignment(OverflowAlignment overflowAlignment) {
SET_VAR(rareNonInheritedData, m_justifyItemsOverflowAlignment, overflowAlignmen
t); } |
1279 void setJustifyItemsPositionType(ItemPositionType positionType) { SET_VAR(ra
reNonInheritedData, m_justifyItemsPositionType, positionType); } | 1283 void setJustifyItemsPositionType(ItemPositionType positionType) { SET_VAR(ra
reNonInheritedData, m_justifyItemsPositionType, positionType); } |
1280 void setJustifySelf(ItemPosition justifySelf) { SET_VAR(rareNonInheritedData
, m_justifySelf, justifySelf); } | 1284 void setJustifySelf(ItemPosition justifySelf) { SET_VAR(rareNonInheritedData
, m_justifySelf, justifySelf); } |
1281 void setJustifySelfOverflowAlignment(OverflowAlignment overflowAlignment) {
SET_VAR(rareNonInheritedData, m_justifySelfOverflowAlignment, overflowAlignment)
; } | 1285 void setJustifySelfOverflowAlignment(OverflowAlignment overflowAlignment) {
SET_VAR(rareNonInheritedData, m_justifySelfOverflowAlignment, overflowAlignment)
; } |
1282 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri
tedData.access()->m_grid, m_gridAutoColumns, length); } | 1286 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri
tedData.access()->m_grid, m_gridAutoColumns, length); } |
1283 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited
Data.access()->m_grid, m_gridAutoRows, length); } | 1287 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited
Data.access()->m_grid, m_gridAutoRows, length); } |
1284 void setGridTemplateColumns(const Vector<GridTrackSize>& lengths) { SET_VAR(
rareNonInheritedData.access()->m_grid, m_gridTemplateColumns, lengths); } | 1288 void setGridTemplateColumns(const Vector<GridTrackSize>& lengths) { SET_VAR(
rareNonInheritedData.access()->m_grid, m_gridTemplateColumns, lengths); } |
1285 void setGridTemplateRows(const Vector<GridTrackSize>& lengths) { SET_VAR(rar
eNonInheritedData.access()->m_grid, m_gridTemplateRows, lengths); } | 1289 void setGridTemplateRows(const Vector<GridTrackSize>& lengths) { SET_VAR(rar
eNonInheritedData.access()->m_grid, m_gridTemplateRows, lengths); } |
1286 void setNamedGridColumnLines(const NamedGridLinesMap& namedGridColumnLines)
{ SET_VAR(rareNonInheritedData.access()->m_grid, m_namedGridColumnLines, namedGr
idColumnLines); } | 1290 void setNamedGridColumnLines(const NamedGridLinesMap& namedGridColumnLines)
{ SET_VAR(rareNonInheritedData.access()->m_grid, m_namedGridColumnLines, namedGr
idColumnLines); } |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1494 | 1498 |
1495 const AtomicString& hyphenString() const; | 1499 const AtomicString& hyphenString() const; |
1496 | 1500 |
1497 bool inheritedNotEqual(const RenderStyle*) const; | 1501 bool inheritedNotEqual(const RenderStyle*) const; |
1498 bool inheritedDataShared(const RenderStyle*) const; | 1502 bool inheritedDataShared(const RenderStyle*) const; |
1499 | 1503 |
1500 bool isDisplayReplacedType() const { return isDisplayReplacedType(display())
; } | 1504 bool isDisplayReplacedType() const { return isDisplayReplacedType(display())
; } |
1501 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } | 1505 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } |
1502 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin
alDisplay()); } | 1506 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin
alDisplay()); } |
1503 bool isDisplayFlexibleOrGridBox() const { return isDisplayFlexibleBox(displa
y()) || isDisplayGridBox(display()); } | 1507 bool isDisplayFlexibleOrGridBox() const { return isDisplayFlexibleBox(displa
y()) || isDisplayGridBox(display()); } |
| 1508 bool isDisplayFlexibleBox() const { return isDisplayFlexibleBox(display());
} |
1504 | 1509 |
1505 | 1510 |
1506 bool setWritingMode(WritingMode v) | 1511 bool setWritingMode(WritingMode v) |
1507 { | 1512 { |
1508 if (v == writingMode()) | 1513 if (v == writingMode()) |
1509 return false; | 1514 return false; |
1510 | 1515 |
1511 inherited_flags.m_writingMode = v; | 1516 inherited_flags.m_writingMode = v; |
1512 return true; | 1517 return true; |
1513 } | 1518 } |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1612 static float initialFlexShrink() { return 1; } | 1617 static float initialFlexShrink() { return 1; } |
1613 static Length initialFlexBasis() { return Length(Auto); } | 1618 static Length initialFlexBasis() { return Length(Auto); } |
1614 static int initialOrder() { return 0; } | 1619 static int initialOrder() { return 0; } |
1615 static EAlignContent initialAlignContent() { return AlignContentStretch; } | 1620 static EAlignContent initialAlignContent() { return AlignContentStretch; } |
1616 static ItemPosition initialAlignItems() { return ItemPositionAuto; } | 1621 static ItemPosition initialAlignItems() { return ItemPositionAuto; } |
1617 static OverflowAlignment initialAlignItemsOverflowAlignment() { return Overf
lowAlignmentDefault; } | 1622 static OverflowAlignment initialAlignItemsOverflowAlignment() { return Overf
lowAlignmentDefault; } |
1618 static ItemPosition initialAlignSelf() { return ItemPositionAuto; } | 1623 static ItemPosition initialAlignSelf() { return ItemPositionAuto; } |
1619 static OverflowAlignment initialAlignSelfOverflowAlignment() { return Overfl
owAlignmentDefault; } | 1624 static OverflowAlignment initialAlignSelfOverflowAlignment() { return Overfl
owAlignmentDefault; } |
1620 static EFlexDirection initialFlexDirection() { return FlowRow; } | 1625 static EFlexDirection initialFlexDirection() { return FlowRow; } |
1621 static EFlexWrap initialFlexWrap() { return FlexNoWrap; } | 1626 static EFlexWrap initialFlexWrap() { return FlexNoWrap; } |
1622 static EJustifyContent initialJustifyContent() { return JustifyFlexStart; } | 1627 static ContentPosition initialJustifyContent() { return ContentPositionAuto;
} |
| 1628 static ContentDistributionType initialJustifyContentDistribution() { return
ContentDistributionDefault; } |
| 1629 static OverflowAlignment initialJustifyContentOverflowAlignment() { return O
verflowAlignmentDefault; } |
1623 static ItemPosition initialJustifyItems() { return ItemPositionAuto; } | 1630 static ItemPosition initialJustifyItems() { return ItemPositionAuto; } |
1624 static OverflowAlignment initialJustifyItemsOverflowAlignment() { return Ove
rflowAlignmentDefault; } | 1631 static OverflowAlignment initialJustifyItemsOverflowAlignment() { return Ove
rflowAlignmentDefault; } |
1625 static ItemPositionType initialJustifyItemsPositionType() { return NonLegacy
Position; } | 1632 static ItemPositionType initialJustifyItemsPositionType() { return NonLegacy
Position; } |
1626 static ItemPosition initialJustifySelf() { return ItemPositionAuto; } | 1633 static ItemPosition initialJustifySelf() { return ItemPositionAuto; } |
1627 static OverflowAlignment initialJustifySelfOverflowAlignment() { return Over
flowAlignmentDefault; } | 1634 static OverflowAlignment initialJustifySelfOverflowAlignment() { return Over
flowAlignmentDefault; } |
1628 static int initialMarqueeLoopCount() { return -1; } | 1635 static int initialMarqueeLoopCount() { return -1; } |
1629 static int initialMarqueeSpeed() { return 85; } | 1636 static int initialMarqueeSpeed() { return 85; } |
1630 static Length initialMarqueeIncrement() { return Length(6, Fixed); } | 1637 static Length initialMarqueeIncrement() { return Length(6, Fixed); } |
1631 static EMarqueeBehavior initialMarqueeBehavior() { return MSCROLL; } | 1638 static EMarqueeBehavior initialMarqueeBehavior() { return MSCROLL; } |
1632 static EMarqueeDirection initialMarqueeDirection() { return MAUTO; } | 1639 static EMarqueeDirection initialMarqueeDirection() { return MAUTO; } |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1918 inline bool RenderStyle::hasPseudoElementStyle() const | 1925 inline bool RenderStyle::hasPseudoElementStyle() const |
1919 { | 1926 { |
1920 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 1927 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; |
1921 } | 1928 } |
1922 | 1929 |
1923 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1930 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
1924 | 1931 |
1925 } // namespace blink | 1932 } // namespace blink |
1926 | 1933 |
1927 #endif // RenderStyle_h | 1934 #endif // RenderStyle_h |
OLD | NEW |