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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 1309513008: [css-grid] Implement grid gutters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased patch for landing Created 5 years, 2 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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 const NamedGridAreaMap& namedGridArea() const { return rareNonInheritedData- >m_grid->m_namedGridArea; } 787 const NamedGridAreaMap& namedGridArea() const { return rareNonInheritedData- >m_grid->m_namedGridArea; }
788 size_t namedGridAreaRowCount() const { return rareNonInheritedData->m_grid-> m_namedGridAreaRowCount; } 788 size_t namedGridAreaRowCount() const { return rareNonInheritedData->m_grid-> m_namedGridAreaRowCount; }
789 size_t namedGridAreaColumnCount() const { return rareNonInheritedData->m_gri d->m_namedGridAreaColumnCount; } 789 size_t namedGridAreaColumnCount() const { return rareNonInheritedData->m_gri d->m_namedGridAreaColumnCount; }
790 GridAutoFlow gridAutoFlow() const { return static_cast<GridAutoFlow>(rareNon InheritedData->m_grid->m_gridAutoFlow); } 790 GridAutoFlow gridAutoFlow() const { return static_cast<GridAutoFlow>(rareNon InheritedData->m_grid->m_gridAutoFlow); }
791 bool isGridAutoFlowDirectionRow() const { return (rareNonInheritedData->m_gr id->m_gridAutoFlow & InternalAutoFlowDirectionRow) == InternalAutoFlowDirectionR ow; } 791 bool isGridAutoFlowDirectionRow() const { return (rareNonInheritedData->m_gr id->m_gridAutoFlow & InternalAutoFlowDirectionRow) == InternalAutoFlowDirectionR ow; }
792 bool isGridAutoFlowDirectionColumn() const { return (rareNonInheritedData->m _grid->m_gridAutoFlow & InternalAutoFlowDirectionColumn) == InternalAutoFlowDire ctionColumn; } 792 bool isGridAutoFlowDirectionColumn() const { return (rareNonInheritedData->m _grid->m_gridAutoFlow & InternalAutoFlowDirectionColumn) == InternalAutoFlowDire ctionColumn; }
793 bool isGridAutoFlowAlgorithmSparse() const { return (rareNonInheritedData->m _grid->m_gridAutoFlow & InternalAutoFlowAlgorithmSparse) == InternalAutoFlowAlgo rithmSparse; } 793 bool isGridAutoFlowAlgorithmSparse() const { return (rareNonInheritedData->m _grid->m_gridAutoFlow & InternalAutoFlowAlgorithmSparse) == InternalAutoFlowAlgo rithmSparse; }
794 bool isGridAutoFlowAlgorithmDense() const { return (rareNonInheritedData->m_ grid->m_gridAutoFlow & InternalAutoFlowAlgorithmDense) == InternalAutoFlowAlgori thmDense; } 794 bool isGridAutoFlowAlgorithmDense() const { return (rareNonInheritedData->m_ grid->m_gridAutoFlow & InternalAutoFlowAlgorithmDense) == InternalAutoFlowAlgori thmDense; }
795 const GridTrackSize& gridAutoColumns() const { return rareNonInheritedData-> m_grid->m_gridAutoColumns; } 795 const GridTrackSize& gridAutoColumns() const { return rareNonInheritedData-> m_grid->m_gridAutoColumns; }
796 const GridTrackSize& gridAutoRows() const { return rareNonInheritedData->m_g rid->m_gridAutoRows; } 796 const GridTrackSize& gridAutoRows() const { return rareNonInheritedData->m_g rid->m_gridAutoRows; }
797 const Length& gridColumnGap() const { return rareNonInheritedData->m_grid->m _gridColumnGap; }
798 const Length& gridRowGap() const { return rareNonInheritedData->m_grid->m_gr idRowGap; }
797 799
798 const GridPosition& gridColumnStart() const { return rareNonInheritedData->m _gridItem->m_gridColumnStart; } 800 const GridPosition& gridColumnStart() const { return rareNonInheritedData->m _gridItem->m_gridColumnStart; }
799 const GridPosition& gridColumnEnd() const { return rareNonInheritedData->m_g ridItem->m_gridColumnEnd; } 801 const GridPosition& gridColumnEnd() const { return rareNonInheritedData->m_g ridItem->m_gridColumnEnd; }
800 const GridPosition& gridRowStart() const { return rareNonInheritedData->m_gr idItem->m_gridRowStart; } 802 const GridPosition& gridRowStart() const { return rareNonInheritedData->m_gr idItem->m_gridRowStart; }
801 const GridPosition& gridRowEnd() const { return rareNonInheritedData->m_grid Item->m_gridRowEnd; } 803 const GridPosition& gridRowEnd() const { return rareNonInheritedData->m_grid Item->m_gridRowEnd; }
802 804
803 ShadowList* boxShadow() const { return rareNonInheritedData->m_boxShadow.get (); } 805 ShadowList* boxShadow() const { return rareNonInheritedData->m_boxShadow.get (); }
804 806
805 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); } 807 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); }
806 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl ect.get(); } 808 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl ect.get(); }
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 void setOrderedNamedGridRowLines(const OrderedNamedGridLines& orderedNamedGr idRowLines) { SET_VAR(rareNonInheritedData.access()->m_grid, m_orderedNamedGridR owLines, orderedNamedGridRowLines); } 1334 void setOrderedNamedGridRowLines(const OrderedNamedGridLines& orderedNamedGr idRowLines) { SET_VAR(rareNonInheritedData.access()->m_grid, m_orderedNamedGridR owLines, orderedNamedGridRowLines); }
1333 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_VAR(rareN onInheritedData.access()->m_grid, m_namedGridArea, namedGridArea); } 1335 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_VAR(rareN onInheritedData.access()->m_grid, m_namedGridArea, namedGridArea); }
1334 void setNamedGridAreaRowCount(size_t rowCount) { SET_VAR(rareNonInheritedDat a.access()->m_grid, m_namedGridAreaRowCount, rowCount); } 1336 void setNamedGridAreaRowCount(size_t rowCount) { SET_VAR(rareNonInheritedDat a.access()->m_grid, m_namedGridAreaRowCount, rowCount); }
1335 void setNamedGridAreaColumnCount(size_t columnCount) { SET_VAR(rareNonInheri tedData.access()->m_grid, m_namedGridAreaColumnCount, columnCount); } 1337 void setNamedGridAreaColumnCount(size_t columnCount) { SET_VAR(rareNonInheri tedData.access()->m_grid, m_namedGridAreaColumnCount, columnCount); }
1336 void setGridAutoFlow(GridAutoFlow flow) { SET_VAR(rareNonInheritedData.acces s()->m_grid, m_gridAutoFlow, flow); } 1338 void setGridAutoFlow(GridAutoFlow flow) { SET_VAR(rareNonInheritedData.acces s()->m_grid, m_gridAutoFlow, flow); }
1337 1339
1338 void setGridColumnStart(const GridPosition& columnStartPosition) { SET_VAR(r areNonInheritedData.access()->m_gridItem, m_gridColumnStart, columnStartPosition ); } 1340 void setGridColumnStart(const GridPosition& columnStartPosition) { SET_VAR(r areNonInheritedData.access()->m_gridItem, m_gridColumnStart, columnStartPosition ); }
1339 void setGridColumnEnd(const GridPosition& columnEndPosition) { SET_VAR(rareN onInheritedData.access()->m_gridItem, m_gridColumnEnd, columnEndPosition); } 1341 void setGridColumnEnd(const GridPosition& columnEndPosition) { SET_VAR(rareN onInheritedData.access()->m_gridItem, m_gridColumnEnd, columnEndPosition); }
1340 void setGridRowStart(const GridPosition& rowStartPosition) { SET_VAR(rareNon InheritedData.access()->m_gridItem, m_gridRowStart, rowStartPosition); } 1342 void setGridRowStart(const GridPosition& rowStartPosition) { SET_VAR(rareNon InheritedData.access()->m_gridItem, m_gridRowStart, rowStartPosition); }
1341 void setGridRowEnd(const GridPosition& rowEndPosition) { SET_VAR(rareNonInhe ritedData.access()->m_gridItem, m_gridRowEnd, rowEndPosition); } 1343 void setGridRowEnd(const GridPosition& rowEndPosition) { SET_VAR(rareNonInhe ritedData.access()->m_gridItem, m_gridRowEnd, rowEndPosition); }
1344 void setGridColumnGap(const Length& v) { SET_VAR(rareNonInheritedData.access ()->m_grid, m_gridColumnGap, v); }
1345 void setGridRowGap(const Length& v) { SET_VAR(rareNonInheritedData.access()- >m_grid, m_gridRowGap, v); }
1342 1346
1343 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u ); } 1347 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u ); }
1344 void setUserDrag(EUserDrag d) { SET_VAR(rareNonInheritedData, userDrag, d); } 1348 void setUserDrag(EUserDrag d) { SET_VAR(rareNonInheritedData, userDrag, d); }
1345 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s ); } 1349 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s ); }
1346 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData, textOverflow, overflow); } 1350 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData, textOverflow, overflow); }
1347 void setMarginBeforeCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDa ta, marginBeforeCollapse, c); } 1351 void setMarginBeforeCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDa ta, marginBeforeCollapse, c); }
1348 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat a, marginAfterCollapse, c); } 1352 void setMarginAfterCollapse(EMarginCollapse c) { SET_VAR(rareNonInheritedDat a, marginAfterCollapse, c); }
1349 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b); } 1353 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b); }
1350 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW rap, b); } 1354 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW rap, b); }
1351 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); } 1355 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); }
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 1760
1757 static NamedGridLinesMap initialNamedGridColumnLines() { return NamedGridLin esMap(); } 1761 static NamedGridLinesMap initialNamedGridColumnLines() { return NamedGridLin esMap(); }
1758 static NamedGridLinesMap initialNamedGridRowLines() { return NamedGridLinesM ap(); } 1762 static NamedGridLinesMap initialNamedGridRowLines() { return NamedGridLinesM ap(); }
1759 1763
1760 static OrderedNamedGridLines initialOrderedNamedGridColumnLines() { return O rderedNamedGridLines(); } 1764 static OrderedNamedGridLines initialOrderedNamedGridColumnLines() { return O rderedNamedGridLines(); }
1761 static OrderedNamedGridLines initialOrderedNamedGridRowLines() { return Orde redNamedGridLines(); } 1765 static OrderedNamedGridLines initialOrderedNamedGridRowLines() { return Orde redNamedGridLines(); }
1762 1766
1763 static NamedGridAreaMap initialNamedGridArea() { return NamedGridAreaMap(); } 1767 static NamedGridAreaMap initialNamedGridArea() { return NamedGridAreaMap(); }
1764 static size_t initialNamedGridAreaCount() { return 0; } 1768 static size_t initialNamedGridAreaCount() { return 0; }
1765 1769
1770 static Length initialGridColumnGap() { return Length(Fixed); }
1771 static Length initialGridRowGap() { return Length(Fixed); }
1772
1766 // 'auto' is the default. 1773 // 'auto' is the default.
1767 static GridPosition initialGridColumnStart() { return GridPosition(); } 1774 static GridPosition initialGridColumnStart() { return GridPosition(); }
1768 static GridPosition initialGridColumnEnd() { return GridPosition(); } 1775 static GridPosition initialGridColumnEnd() { return GridPosition(); }
1769 static GridPosition initialGridRowStart() { return GridPosition(); } 1776 static GridPosition initialGridRowStart() { return GridPosition(); }
1770 static GridPosition initialGridRowEnd() { return GridPosition(); } 1777 static GridPosition initialGridRowEnd() { return GridPosition(); }
1771 1778
1772 static TabSize initialTabSize() { return TabSize(8); } 1779 static TabSize initialTabSize() { return TabSize(8); }
1773 1780
1774 static WrapFlow initialWrapFlow() { return WrapFlowAuto; } 1781 static WrapFlow initialWrapFlow() { return WrapFlowAuto; }
1775 static WrapThrough initialWrapThrough() { return WrapThroughWrap; } 1782 static WrapThrough initialWrapThrough() { return WrapThroughWrap; }
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 } 1986 }
1980 1987
1981 inline bool ComputedStyle::hasPseudoElementStyle() const 1988 inline bool ComputedStyle::hasPseudoElementStyle() const
1982 { 1989 {
1983 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1990 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1984 } 1991 }
1985 1992
1986 } // namespace blink 1993 } // namespace blink
1987 1994
1988 #endif // ComputedStyle_h 1995 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.cpp ('k') | third_party/WebKit/Source/core/style/StyleGridData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698