Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 201573009: Remove -webkit-column-progression and -webkit-column-axis properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol lapse>(rareNonInheritedData->marginBeforeCollapse); } 818 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol lapse>(rareNonInheritedData->marginBeforeCollapse); }
819 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl apse>(rareNonInheritedData->marginAfterCollapse); } 819 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl apse>(rareNonInheritedData->marginAfterCollapse); }
820 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD ata->wordBreak); } 820 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD ata->wordBreak); }
821 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI nheritedData->overflowWrap); } 821 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI nheritedData->overflowWrap); }
822 LineBreak lineBreak() const { return static_cast<LineBreak>(rareInheritedDat a->lineBreak); } 822 LineBreak lineBreak() const { return static_cast<LineBreak>(rareInheritedDat a->lineBreak); }
823 const AtomicString& highlight() const { return rareInheritedData->highlight; } 823 const AtomicString& highlight() const { return rareInheritedData->highlight; }
824 const AtomicString& hyphenationString() const { return rareInheritedData->hy phenationString; } 824 const AtomicString& hyphenationString() const { return rareInheritedData->hy phenationString; }
825 const AtomicString& locale() const { return rareInheritedData->locale; } 825 const AtomicString& locale() const { return rareInheritedData->locale; }
826 EBorderFit borderFit() const { return static_cast<EBorderFit>(rareNonInherit edData->m_borderFit); } 826 EBorderFit borderFit() const { return static_cast<EBorderFit>(rareNonInherit edData->m_borderFit); }
827 EResize resize() const { return static_cast<EResize>(rareInheritedData->resi ze); } 827 EResize resize() const { return static_cast<EResize>(rareInheritedData->resi ze); }
828 ColumnAxis columnAxis() const { return static_cast<ColumnAxis>(rareNonInheri tedData->m_multiCol->m_axis); }
829 bool hasInlineColumnAxis() const {
830 ColumnAxis axis = columnAxis();
831 return axis == AutoColumnAxis || isHorizontalWritingMode() == (axis == H orizontalColumnAxis);
832 }
833 bool hasInlinePaginationAxis() const 828 bool hasInlinePaginationAxis() const
834 { 829 {
835 // If the pagination axis is parallel with the writing mode inline axis, columns may be laid 830 // If the pagination axis is parallel with the writing mode inline axis, columns may be laid
836 // out along the inline axis, just like for regular multicol. Otherwise, we need to lay out 831 // out along the inline axis, just like for regular multicol. Otherwise, we need to lay out
837 // along the block axis. 832 // along the block axis.
838 if (isOverflowPaged()) 833 if (isOverflowPaged())
839 return (overflowY() == OPAGEDX) == isHorizontalWritingMode(); 834 return (overflowY() == OPAGEDX) == isHorizontalWritingMode();
840 return false; 835 return false;
841 } 836 }
842 ColumnProgression columnProgression() const { return static_cast<ColumnProgr ession>(rareNonInheritedData->m_multiCol->m_progression); }
843 float columnWidth() const { return rareNonInheritedData->m_multiCol->m_width ; } 837 float columnWidth() const { return rareNonInheritedData->m_multiCol->m_width ; }
844 bool hasAutoColumnWidth() const { return rareNonInheritedData->m_multiCol->m _autoWidth; } 838 bool hasAutoColumnWidth() const { return rareNonInheritedData->m_multiCol->m _autoWidth; }
845 unsigned short columnCount() const { return rareNonInheritedData->m_multiCol ->m_count; } 839 unsigned short columnCount() const { return rareNonInheritedData->m_multiCol ->m_count; }
846 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m _autoCount; } 840 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m _autoCount; }
847 bool specifiesAutoColumns() const { return hasAutoColumnCount() && hasAutoCo lumnWidth(); } 841 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu mnWidth(); }
848 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu mnWidth() || !hasInlineColumnAxis(); }
849 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri tedData->m_multiCol->m_fill); } 842 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri tedData->m_multiCol->m_fill); }
850 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } 843 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; }
851 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m _normalGap; } 844 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m _normalGap; }
852 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC ol->m_rule.style(); } 845 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC ol->m_rule.style(); }
853 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult iCol->ruleWidth(); } 846 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult iCol->ruleWidth(); }
854 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC ol->m_rule.isTransparent(); } 847 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC ol->m_rule.isTransparent(); }
855 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri tedData->m_multiCol->m_columnSpan); } 848 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri tedData->m_multiCol->m_columnSpan); }
856 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo nInheritedData->m_multiCol->m_breakBefore); } 849 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo nInheritedData->m_multiCol->m_breakBefore); }
857 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo nInheritedData->m_multiCol->m_breakInside); } 850 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo nInheritedData->m_multiCol->m_breakInside); }
858 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon InheritedData->m_multiCol->m_breakAfter); } 851 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon InheritedData->m_multiCol->m_breakAfter); }
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat a, marginAfterCollapse, c); } 1288 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat a, marginAfterCollapse, c); }
1296 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b); } 1289 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b); }
1297 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW rap, b); } 1290 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW rap, b); }
1298 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); } 1291 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); }
1299 void setHighlight(const AtomicString& h) { SET_VAR(rareInheritedData, highli ght, h); } 1292 void setHighlight(const AtomicString& h) { SET_VAR(rareInheritedData, highli ght, h); }
1300 void setHyphens(Hyphens h) { SET_VAR(rareInheritedData, hyphens, h); } 1293 void setHyphens(Hyphens h) { SET_VAR(rareInheritedData, hyphens, h); }
1301 void setHyphenationString(const AtomicString& h) { SET_VAR(rareInheritedData , hyphenationString, h); } 1294 void setHyphenationString(const AtomicString& h) { SET_VAR(rareInheritedData , hyphenationString, h); }
1302 void setLocale(const AtomicString& locale) { SET_VAR(rareInheritedData, loca le, locale); } 1295 void setLocale(const AtomicString& locale) { SET_VAR(rareInheritedData, loca le, locale); }
1303 void setBorderFit(EBorderFit b) { SET_VAR(rareNonInheritedData, m_borderFit, b); } 1296 void setBorderFit(EBorderFit b) { SET_VAR(rareNonInheritedData, m_borderFit, b); }
1304 void setResize(EResize r) { SET_VAR(rareInheritedData, resize, r); } 1297 void setResize(EResize r) { SET_VAR(rareInheritedData, resize, r); }
1305 void setColumnAxis(ColumnAxis axis) { SET_VAR(rareNonInheritedData.access()- >m_multiCol, m_axis, axis); }
1306 void setColumnProgression(ColumnProgression progression) { SET_VAR(rareNonIn heritedData.access()->m_multiCol, m_progression, progression); }
1307 void setColumnWidth(float f) { SET_VAR(rareNonInheritedData.access()->m_mult iCol, m_autoWidth, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_ width, f); } 1298 void setColumnWidth(float f) { SET_VAR(rareNonInheritedData.access()->m_mult iCol, m_autoWidth, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_ width, f); }
1308 void setHasAutoColumnWidth() { SET_VAR(rareNonInheritedData.access()->m_mult iCol, m_autoWidth, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_w idth, 0); } 1299 void setHasAutoColumnWidth() { SET_VAR(rareNonInheritedData.access()->m_mult iCol, m_autoWidth, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_w idth, 0); }
1309 void setColumnCount(unsigned short c) { SET_VAR(rareNonInheritedData.access( )->m_multiCol, m_autoCount, false); SET_VAR(rareNonInheritedData.access()->m_mul tiCol, m_count, c); } 1300 void setColumnCount(unsigned short c) { SET_VAR(rareNonInheritedData.access( )->m_multiCol, m_autoCount, false); SET_VAR(rareNonInheritedData.access()->m_mul tiCol, m_count, c); }
1310 void setHasAutoColumnCount() { SET_VAR(rareNonInheritedData.access()->m_mult iCol, m_autoCount, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_c ount, 0); } 1301 void setHasAutoColumnCount() { SET_VAR(rareNonInheritedData.access()->m_mult iCol, m_autoCount, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_c ount, 0); }
1311 void setColumnFill(ColumnFill columnFill) { SET_VAR(rareNonInheritedData.acc ess()->m_multiCol, m_fill, columnFill); } 1302 void setColumnFill(ColumnFill columnFill) { SET_VAR(rareNonInheritedData.acc ess()->m_multiCol, m_fill, columnFill); }
1312 void setColumnGap(float f) { SET_VAR(rareNonInheritedData.access()->m_multiC ol, m_normalGap, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_ga p, f); } 1303 void setColumnGap(float f) { SET_VAR(rareNonInheritedData.access()->m_multiC ol, m_normalGap, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_ga p, f); }
1313 void setHasNormalColumnGap() { SET_VAR(rareNonInheritedData.access()->m_mult iCol, m_normalGap, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_g ap, 0); } 1304 void setHasNormalColumnGap() { SET_VAR(rareNonInheritedData.access()->m_mult iCol, m_normalGap, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_g ap, 0); }
1314 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon InheritedData.access()->m_multiCol, m_rule, c); } 1305 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon InheritedData.access()->m_multiCol, m_rule, c); }
1315 void setColumnRuleStyle(EBorderStyle b) { SET_VAR(rareNonInheritedData.acces s()->m_multiCol, m_rule.m_style, b); } 1306 void setColumnRuleStyle(EBorderStyle b) { SET_VAR(rareNonInheritedData.acces s()->m_multiCol, m_rule.m_style, b); }
1316 void setColumnRuleWidth(unsigned short w) { SET_VAR(rareNonInheritedData.acc ess()->m_multiCol, m_rule.m_width, w); } 1307 void setColumnRuleWidth(unsigned short w) { SET_VAR(rareNonInheritedData.acc ess()->m_multiCol, m_rule.m_width, w); }
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 bool hasCurrentColor() const { return noninherited_flags.currentColor; } 1528 bool hasCurrentColor() const { return noninherited_flags.currentColor; }
1538 1529
1539 // Initial values for all the properties 1530 // Initial values for all the properties
1540 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } 1531 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; }
1541 static EBorderStyle initialBorderStyle() { return BNONE; } 1532 static EBorderStyle initialBorderStyle() { return BNONE; }
1542 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } 1533 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; }
1543 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } 1534 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); }
1544 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed) , Length(0, Fixed)); } 1535 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed) , Length(0, Fixed)); }
1545 static ECaptionSide initialCaptionSide() { return CAPTOP; } 1536 static ECaptionSide initialCaptionSide() { return CAPTOP; }
1546 static EClear initialClear() { return CNONE; } 1537 static EClear initialClear() { return CNONE; }
1547 static ColumnAxis initialColumnAxis() { return AutoColumnAxis; }
1548 static ColumnProgression initialColumnProgression() { return NormalColumnPro gression; }
1549 static TextDirection initialDirection() { return LTR; } 1538 static TextDirection initialDirection() { return LTR; }
1550 static WritingMode initialWritingMode() { return TopToBottomWritingMode; } 1539 static WritingMode initialWritingMode() { return TopToBottomWritingMode; }
1551 static TextCombine initialTextCombine() { return TextCombineNone; } 1540 static TextCombine initialTextCombine() { return TextCombineNone; }
1552 static TextOrientation initialTextOrientation() { return TextOrientationVert icalRight; } 1541 static TextOrientation initialTextOrientation() { return TextOrientationVert icalRight; }
1553 static ObjectFit initialObjectFit() { return ObjectFitFill; } 1542 static ObjectFit initialObjectFit() { return ObjectFitFill; }
1554 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0, Percent), Length(50.0, Percent)); } 1543 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0, Percent), Length(50.0, Percent)); }
1555 static EDisplay initialDisplay() { return INLINE; } 1544 static EDisplay initialDisplay() { return INLINE; }
1556 static EEmptyCell initialEmptyCells() { return SHOW; } 1545 static EEmptyCell initialEmptyCells() { return SHOW; }
1557 static EFloat initialFloating() { return NoFloat; } 1546 static EFloat initialFloating() { return NoFloat; }
1558 static EListStylePosition initialListStylePosition() { return OUTSIDE; } 1547 static EListStylePosition initialListStylePosition() { return OUTSIDE; }
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 inline bool RenderStyle::hasPseudoElementStyle() const 1872 inline bool RenderStyle::hasPseudoElementStyle() const
1884 { 1873 {
1885 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1874 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1886 } 1875 }
1887 1876
1888 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1877 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1889 1878
1890 } // namespace WebCore 1879 } // namespace WebCore
1891 1880
1892 #endif // RenderStyle_h 1881 #endif // RenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698