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

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

Issue 1070143002: [Alignment] Single class for holding the alignment data. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD ata->m_deprecatedFlexibleBox->lines); } 730 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD ata->m_deprecatedFlexibleBox->lines); }
731 unsigned boxOrdinalGroup() const { return rareNonInheritedData->m_deprecated FlexibleBox->ordinalGroup; } 731 unsigned boxOrdinalGroup() const { return rareNonInheritedData->m_deprecated FlexibleBox->ordinalGroup; }
732 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit edData->m_deprecatedFlexibleBox->orient); } 732 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit edData->m_deprecatedFlexibleBox->orient); }
733 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData ->m_deprecatedFlexibleBox->pack); } 733 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData ->m_deprecatedFlexibleBox->pack); }
734 734
735 int order() const { return rareNonInheritedData->m_order; } 735 int order() const { return rareNonInheritedData->m_order; }
736 const Vector<String>& callbackSelectors() const { return rareNonInheritedDat a->m_callbackSelectors; } 736 const Vector<String>& callbackSelectors() const { return rareNonInheritedDat a->m_callbackSelectors; }
737 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG row; } 737 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG row; }
738 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle xShrink; } 738 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle xShrink; }
739 const Length& flexBasis() const { return rareNonInheritedData->m_flexibleBox ->m_flexBasis; } 739 const Length& flexBasis() const { return rareNonInheritedData->m_flexibleBox ->m_flexBasis; }
740 ContentPosition alignContent() const { return static_cast<ContentPosition>(r areNonInheritedData->m_alignContent); } 740 ContentPosition alignContent() const { return rareNonInheritedData->m_alignC ontent.m_contentPosition; }
741 ContentDistributionType alignContentDistribution() const { return static_cas t<ContentDistributionType>(rareNonInheritedData->m_alignContentDistribution); } 741 ContentDistributionType alignContentDistribution() const { return rareNonInh eritedData->m_alignContent.m_distribution; }
742 OverflowAlignment alignContentOverflowAlignment() const { return static_cast <OverflowAlignment>(rareNonInheritedData->m_alignContentOverflowAlignment); } 742 OverflowAlignment alignContentOverflowAlignment() const { return rareNonInhe ritedData->m_alignContent.m_overflow; }
743 ItemPosition alignItems() const { return static_cast<ItemPosition>(rareNonIn heritedData->m_alignItems); } 743 ItemPosition alignItems() const { return rareNonInheritedData->m_alignItems. m_itemPosition; }
744 OverflowAlignment alignItemsOverflowAlignment() const { return static_cast<O verflowAlignment>(rareNonInheritedData->m_alignItemsOverflowAlignment); } 744 OverflowAlignment alignItemsOverflowAlignment() const { return rareNonInheri tedData->m_alignItems.m_overflow; }
745 ItemPosition alignSelf() const { return static_cast<ItemPosition>(rareNonInh eritedData->m_alignSelf); } 745 ItemPosition alignSelf() const { return rareNonInheritedData->m_alignSelf.m_ itemPosition; }
746 OverflowAlignment alignSelfOverflowAlignment() const { return static_cast<Ov erflowAlignment>(rareNonInheritedData->m_alignSelfOverflowAlignment); } 746 OverflowAlignment alignSelfOverflowAlignment() const { return rareNonInherit edData->m_alignSelf.m_overflow; }
747 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra reNonInheritedData->m_flexibleBox->m_flexDirection); } 747 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra reNonInheritedData->m_flexibleBox->m_flexDirection); }
748 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn || flexDirection() == FlowColumnReverse; } 748 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn || flexDirection() == FlowColumnReverse; }
749 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever se || flexDirection() == FlowColumnReverse; } 749 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever se || flexDirection() == FlowColumnReverse; }
750 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD ata->m_flexibleBox->m_flexWrap); } 750 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD ata->m_flexibleBox->m_flexWrap); }
751 ContentPosition justifyContent() const { return static_cast<ContentPosition> (rareNonInheritedData->m_justifyContent); } 751 ContentPosition justifyContent() const { return rareNonInheritedData->m_just ifyContent.m_contentPosition; }
752 ContentDistributionType justifyContentDistribution() const { return static_c ast<ContentDistributionType>(rareNonInheritedData->m_justifyContentDistribution) ; } 752 ContentDistributionType justifyContentDistribution() const { return rareNonI nheritedData->m_justifyContent.m_distribution; }
753 OverflowAlignment justifyContentOverflowAlignment() const { return static_ca st<OverflowAlignment>(rareNonInheritedData->m_justifyContentOverflowAlignment); } 753 OverflowAlignment justifyContentOverflowAlignment() const { return rareNonIn heritedData->m_justifyContent.m_overflow; }
754 ItemPosition justifyItems() const { return static_cast<ItemPosition>(rareNon InheritedData->m_justifyItems); } 754 ItemPosition justifyItems() const { return rareNonInheritedData->m_justifyIt ems.m_itemPosition; }
755 OverflowAlignment justifyItemsOverflowAlignment() const { return static_cast <OverflowAlignment>(rareNonInheritedData->m_justifyItemsOverflowAlignment); } 755 OverflowAlignment justifyItemsOverflowAlignment() const { return rareNonInhe ritedData->m_justifyItems.m_overflow; }
756 ItemPositionType justifyItemsPositionType() const { return static_cast<ItemP ositionType>(rareNonInheritedData->m_justifyItemsPositionType); } 756 ItemPositionType justifyItemsPositionType() const { return rareNonInheritedD ata->m_justifyItems.m_positionType; }
757 ItemPosition justifySelf() const { return static_cast<ItemPosition>(rareNonI nheritedData->m_justifySelf); } 757 ItemPosition justifySelf() const { return rareNonInheritedData->m_justifySel f.m_itemPosition; }
758 OverflowAlignment justifySelfOverflowAlignment() const { return static_cast< OverflowAlignment>(rareNonInheritedData->m_justifySelfOverflowAlignment); } 758 OverflowAlignment justifySelfOverflowAlignment() const { return rareNonInher itedData->m_justifySelf.m_overflow; }
759 759
760 const Vector<GridTrackSize>& gridTemplateColumns() const { return rareNonInh eritedData->m_grid->m_gridTemplateColumns; } 760 const Vector<GridTrackSize>& gridTemplateColumns() const { return rareNonInh eritedData->m_grid->m_gridTemplateColumns; }
761 const Vector<GridTrackSize>& gridTemplateRows() const { return rareNonInheri tedData->m_grid->m_gridTemplateRows; } 761 const Vector<GridTrackSize>& gridTemplateRows() const { return rareNonInheri tedData->m_grid->m_gridTemplateRows; }
762 const NamedGridLinesMap& namedGridColumnLines() const { return rareNonInheri tedData->m_grid->m_namedGridColumnLines; } 762 const NamedGridLinesMap& namedGridColumnLines() const { return rareNonInheri tedData->m_grid->m_namedGridColumnLines; }
763 const NamedGridLinesMap& namedGridRowLines() const { return rareNonInherited Data->m_grid->m_namedGridRowLines; } 763 const NamedGridLinesMap& namedGridRowLines() const { return rareNonInherited Data->m_grid->m_namedGridRowLines; }
764 const OrderedNamedGridLines& orderedNamedGridColumnLines() const { return ra reNonInheritedData->m_grid->m_orderedNamedGridColumnLines; } 764 const OrderedNamedGridLines& orderedNamedGridColumnLines() const { return ra reNonInheritedData->m_grid->m_orderedNamedGridColumnLines; }
765 const OrderedNamedGridLines& orderedNamedGridRowLines() const { return rareN onInheritedData->m_grid->m_orderedNamedGridRowLines; } 765 const OrderedNamedGridLines& orderedNamedGridRowLines() const { return rareN onInheritedData->m_grid->m_orderedNamedGridRowLines; }
766 const NamedGridAreaMap& namedGridArea() const { return rareNonInheritedData- >m_grid->m_namedGridArea; } 766 const NamedGridAreaMap& namedGridArea() const { return rareNonInheritedData- >m_grid->m_namedGridArea; }
767 size_t namedGridAreaRowCount() const { return rareNonInheritedData->m_grid-> m_namedGridAreaRowCount; } 767 size_t namedGridAreaRowCount() const { return rareNonInheritedData->m_grid-> m_namedGridAreaRowCount; }
768 size_t namedGridAreaColumnCount() const { return rareNonInheritedData->m_gri d->m_namedGridAreaColumnCount; } 768 size_t namedGridAreaColumnCount() const { return rareNonInheritedData->m_gri d->m_namedGridAreaColumnCount; }
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre catedFlexibleBox, pack, p); } 1221 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre catedFlexibleBox, pack, p); }
1222 void setBoxShadow(PassRefPtr<ShadowList>); 1222 void setBoxShadow(PassRefPtr<ShadowList>);
1223 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r eflect; } 1223 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r eflect; }
1224 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); } 1224 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); }
1225 void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibl eBox, m_flexGrow, f); } 1225 void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibl eBox, m_flexGrow, f); }
1226 void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexi bleBox, m_flexShrink, f); } 1226 void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexi bleBox, m_flexShrink, f); }
1227 void setFlexBasis(const Length& length) { SET_VAR(rareNonInheritedData.acces s()->m_flexibleBox, m_flexBasis, length); } 1227 void setFlexBasis(const Length& length) { SET_VAR(rareNonInheritedData.acces s()->m_flexibleBox, m_flexBasis, length); }
1228 // 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. 1228 // 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.
1229 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, max(std::numer ic_limits<int>::min() + 2, o)); } 1229 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, max(std::numer ic_limits<int>::min() + 2, o)); }
1230 void addCallbackSelector(const String& selector); 1230 void addCallbackSelector(const String& selector);
1231 void setAlignContent(ContentPosition p) { SET_VAR(rareNonInheritedData, m_al ignContent, p); } 1231 void setAlignContent(ContentPosition p) { SET_VAR(rareNonInheritedData, m_al ignContent.m_contentPosition, p); }
1232 void setAlignContentDistribution(ContentDistributionType p) { SET_VAR(rareNo nInheritedData, m_alignContentDistribution, p); } 1232 void setAlignContentDistribution(ContentDistributionType p) { SET_VAR(rareNo nInheritedData, m_alignContent.m_distribution, p); }
1233 void setAlignContentOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_alignContentOverflowAlignment, overflowAlignmen t); } 1233 void setAlignContentOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_alignContent.m_overflow, overflowAlignment); }
1234 void setAlignItems(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignIt ems, a); } 1234 void setAlignItems(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignIt ems.m_itemPosition, a); }
1235 void setAlignItemsOverflowAlignment(OverflowAlignment overflowAlignment) { S ET_VAR(rareNonInheritedData, m_alignItemsOverflowAlignment, overflowAlignment); } 1235 void setAlignItemsOverflowAlignment(OverflowAlignment overflowAlignment) { S ET_VAR(rareNonInheritedData, m_alignItems.m_overflow, overflowAlignment); }
1236 void setAlignSelf(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignSel f, a); } 1236 void setAlignSelf(ItemPosition a) { SET_VAR(rareNonInheritedData, m_alignSel f.m_itemPosition, a); }
1237 void setAlignSelfOverflowAlignment(OverflowAlignment overflowAlignment) { SE T_VAR(rareNonInheritedData, m_alignSelfOverflowAlignment, overflowAlignment); } 1237 void setAlignSelfOverflowAlignment(OverflowAlignment overflowAlignment) { SE T_VAR(rareNonInheritedData, m_alignSelf.m_overflow, overflowAlignment); }
1238 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa ta.access()->m_flexibleBox, m_flexDirection, direction); } 1238 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa ta.access()->m_flexibleBox, m_flexDirection, direction); }
1239 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle xibleBox, m_flexWrap, w); } 1239 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle xibleBox, m_flexWrap, w); }
1240 void setJustifyContent(ContentPosition p) { SET_VAR(rareNonInheritedData, m_ justifyContent, p); } 1240 void setJustifyContent(ContentPosition p) { SET_VAR(rareNonInheritedData, m_ justifyContent.m_contentPosition, p); }
1241 void setJustifyContentDistribution(ContentDistributionType p) { SET_VAR(rare NonInheritedData, m_justifyContentDistribution, p); } 1241 void setJustifyContentDistribution(ContentDistributionType p) { SET_VAR(rare NonInheritedData, m_justifyContent.m_distribution, p); }
1242 void setJustifyContentOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_justifyContentOverflowAlignment, overflowAlig nment); } 1242 void setJustifyContentOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_justifyContent.m_overflow, overflowAlignment) ; }
1243 void setJustifyItems(ItemPosition justifyItems) { SET_VAR(rareNonInheritedDa ta, m_justifyItems, justifyItems); } 1243 void setJustifyItems(ItemPosition justifyItems) { SET_VAR(rareNonInheritedDa ta, m_justifyItems.m_itemPosition, justifyItems); }
1244 void setJustifyItemsOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_justifyItemsOverflowAlignment, overflowAlignmen t); } 1244 void setJustifyItemsOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_justifyItems.m_overflow, overflowAlignment); }
1245 void setJustifyItemsPositionType(ItemPositionType positionType) { SET_VAR(ra reNonInheritedData, m_justifyItemsPositionType, positionType); } 1245 void setJustifyItemsPositionType(ItemPositionType positionType) { SET_VAR(ra reNonInheritedData, m_justifyItems.m_positionType, positionType); }
1246 void setJustifySelf(ItemPosition justifySelf) { SET_VAR(rareNonInheritedData , m_justifySelf, justifySelf); } 1246 void setJustifySelf(ItemPosition justifySelf) { SET_VAR(rareNonInheritedData , m_justifySelf.m_itemPosition, justifySelf); }
1247 void setJustifySelfOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_justifySelfOverflowAlignment, overflowAlignment) ; } 1247 void setJustifySelfOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_justifySelf.m_overflow, overflowAlignment); }
1248 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri tedData.access()->m_grid, m_gridAutoColumns, length); } 1248 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri tedData.access()->m_grid, m_gridAutoColumns, length); }
1249 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited Data.access()->m_grid, m_gridAutoRows, length); } 1249 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited Data.access()->m_grid, m_gridAutoRows, length); }
1250 void setGridTemplateColumns(const Vector<GridTrackSize>& lengths) { SET_VAR( rareNonInheritedData.access()->m_grid, m_gridTemplateColumns, lengths); } 1250 void setGridTemplateColumns(const Vector<GridTrackSize>& lengths) { SET_VAR( rareNonInheritedData.access()->m_grid, m_gridTemplateColumns, lengths); }
1251 void setGridTemplateRows(const Vector<GridTrackSize>& lengths) { SET_VAR(rar eNonInheritedData.access()->m_grid, m_gridTemplateRows, lengths); } 1251 void setGridTemplateRows(const Vector<GridTrackSize>& lengths) { SET_VAR(rar eNonInheritedData.access()->m_grid, m_gridTemplateRows, lengths); }
1252 void setNamedGridColumnLines(const NamedGridLinesMap& namedGridColumnLines) { SET_VAR(rareNonInheritedData.access()->m_grid, m_namedGridColumnLines, namedGr idColumnLines); } 1252 void setNamedGridColumnLines(const NamedGridLinesMap& namedGridColumnLines) { SET_VAR(rareNonInheritedData.access()->m_grid, m_namedGridColumnLines, namedGr idColumnLines); }
1253 void setNamedGridRowLines(const NamedGridLinesMap& namedGridRowLines) { SET_ VAR(rareNonInheritedData.access()->m_grid, m_namedGridRowLines, namedGridRowLine s); } 1253 void setNamedGridRowLines(const NamedGridLinesMap& namedGridRowLines) { SET_ VAR(rareNonInheritedData.access()->m_grid, m_namedGridRowLines, namedGridRowLine s); }
1254 void setOrderedNamedGridColumnLines(const OrderedNamedGridLines& orderedName dGridColumnLines) { SET_VAR(rareNonInheritedData.access()->m_grid, m_orderedName dGridColumnLines, orderedNamedGridColumnLines); } 1254 void setOrderedNamedGridColumnLines(const OrderedNamedGridLines& orderedName dGridColumnLines) { SET_VAR(rareNonInheritedData.access()->m_grid, m_orderedName dGridColumnLines, orderedNamedGridColumnLines); }
1255 void setOrderedNamedGridRowLines(const OrderedNamedGridLines& orderedNamedGr idRowLines) { SET_VAR(rareNonInheritedData.access()->m_grid, m_orderedNamedGridR owLines, orderedNamedGridRowLines); } 1255 void setOrderedNamedGridRowLines(const OrderedNamedGridLines& orderedNamedGr idRowLines) { SET_VAR(rareNonInheritedData.access()->m_grid, m_orderedNamedGridR owLines, orderedNamedGridRowLines); }
1256 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_VAR(rareN onInheritedData.access()->m_grid, m_namedGridArea, namedGridArea); } 1256 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_VAR(rareN onInheritedData.access()->m_grid, m_namedGridArea, namedGridArea); }
1257 void setNamedGridAreaRowCount(size_t rowCount) { SET_VAR(rareNonInheritedDat a.access()->m_grid, m_namedGridAreaRowCount, rowCount); } 1257 void setNamedGridAreaRowCount(size_t rowCount) { SET_VAR(rareNonInheritedDat a.access()->m_grid, m_namedGridAreaRowCount, rowCount); }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 void setScrollBlocksOn(WebScrollBlocksOn b) { SET_VAR(rareNonInheritedData, m_scrollBlocksOn, b); } 1359 void setScrollBlocksOn(WebScrollBlocksOn b) { SET_VAR(rareNonInheritedData, m_scrollBlocksOn, b); }
1360 1360
1361 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_ VAR(rareNonInheritedData.access()->m_willChange, m_properties, properties); } 1361 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_ VAR(rareNonInheritedData.access()->m_willChange, m_properties, properties); }
1362 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()-> m_willChange, m_contents, b); } 1362 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()-> m_willChange, m_contents, b); }
1363 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce ss()->m_willChange, m_scrollPosition, b); } 1363 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce ss()->m_willChange, m_scrollPosition, b); }
1364 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub treeWillChangeContents, b); } 1364 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub treeWillChangeContents, b); }
1365 1365
1366 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } 1366 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; }
1367 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } 1367 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); }
1368 1368
1369 StyleAlignmentData alignContentData() const { return rareNonInheritedData->m _alignContent; }
1370 StyleAlignmentData alignItemsData() const { return rareNonInheritedData->m_a lignItems; }
1371 StyleAlignmentData alignSelfData() const { return rareNonInheritedData->m_al ignSelf; }
1372 StyleAlignmentData justifyContentData() const { return rareNonInheritedData- >m_justifyContent; }
1373 StyleAlignmentData justifyItemsData() const { return rareNonInheritedData->m _justifyItems; }
1374 StyleAlignmentData justifySelfData() const { return rareNonInheritedData->m_ justifySelf; }
1375
1369 const SVGComputedStyle& svgStyle() const { return *m_svgStyle.get(); } 1376 const SVGComputedStyle& svgStyle() const { return *m_svgStyle.get(); }
1370 SVGComputedStyle& accessSVGStyle() { return *m_svgStyle.access(); } 1377 SVGComputedStyle& accessSVGStyle() { return *m_svgStyle.access(); }
1371 1378
1372 const SVGPaintType& fillPaintType() const { return svgStyle().fillPaintType( ); } 1379 const SVGPaintType& fillPaintType() const { return svgStyle().fillPaintType( ); }
1373 Color fillPaintColor() const { return svgStyle().fillPaintColor(); } 1380 Color fillPaintColor() const { return svgStyle().fillPaintColor(); }
1374 float fillOpacity() const { return svgStyle().fillOpacity(); } 1381 float fillOpacity() const { return svgStyle().fillOpacity(); }
1375 void setFillOpacity(float f) { accessSVGStyle().setFillOpacity(f); } 1382 void setFillOpacity(float f) { accessSVGStyle().setFillOpacity(f); }
1376 1383
1377 const SVGPaintType& strokePaintType() const { return svgStyle().strokePaintT ype(); } 1384 const SVGPaintType& strokePaintType() const { return svgStyle().strokePaintT ype(); }
1378 Color strokePaintColor() const { return svgStyle().strokePaintColor(); } 1385 Color strokePaintColor() const { return svgStyle().strokePaintColor(); }
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 } 1881 }
1875 1882
1876 inline bool ComputedStyle::hasPseudoElementStyle() const 1883 inline bool ComputedStyle::hasPseudoElementStyle() const
1877 { 1884 {
1878 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1885 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1879 } 1886 }
1880 1887
1881 } // namespace blink 1888 } // namespace blink
1882 1889
1883 #endif // ComputedStyle_h 1890 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698