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

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

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Sync Created 7 years, 3 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 EBoxAlignment boxAlign() const { return static_cast<EBoxAlignment>(rareNonIn heritedData->m_deprecatedFlexibleBox->align); } 714 EBoxAlignment boxAlign() const { return static_cast<EBoxAlignment>(rareNonIn heritedData->m_deprecatedFlexibleBox->align); }
715 EBoxDirection boxDirection() const { return static_cast<EBoxDirection>(inher ited_flags._box_direction); } 715 EBoxDirection boxDirection() const { return static_cast<EBoxDirection>(inher ited_flags._box_direction); }
716 float boxFlex() const { return rareNonInheritedData->m_deprecatedFlexibleBox ->flex; } 716 float boxFlex() const { return rareNonInheritedData->m_deprecatedFlexibleBox ->flex; }
717 unsigned int boxFlexGroup() const { return rareNonInheritedData->m_deprecate dFlexibleBox->flex_group; } 717 unsigned int boxFlexGroup() const { return rareNonInheritedData->m_deprecate dFlexibleBox->flex_group; }
718 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD ata->m_deprecatedFlexibleBox->lines); } 718 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD ata->m_deprecatedFlexibleBox->lines); }
719 unsigned int boxOrdinalGroup() const { return rareNonInheritedData->m_deprec atedFlexibleBox->ordinal_group; } 719 unsigned int boxOrdinalGroup() const { return rareNonInheritedData->m_deprec atedFlexibleBox->ordinal_group; }
720 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit edData->m_deprecatedFlexibleBox->orient); } 720 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit edData->m_deprecatedFlexibleBox->orient); }
721 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData ->m_deprecatedFlexibleBox->pack); } 721 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData ->m_deprecatedFlexibleBox->pack); }
722 722
723 int order() const { return rareNonInheritedData->m_order; } 723 int order() const { return rareNonInheritedData->m_order; }
724 const Vector<String>& callbackSelectors() const { return rareNonInheritedDat a->m_callbackSelectors; }
724 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG row; } 725 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG row; }
725 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle xShrink; } 726 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle xShrink; }
726 Length flexBasis() const { return rareNonInheritedData->m_flexibleBox->m_fle xBasis; } 727 Length flexBasis() const { return rareNonInheritedData->m_flexibleBox->m_fle xBasis; }
727 EAlignContent alignContent() const { return static_cast<EAlignContent>(rareN onInheritedData->m_alignContent); } 728 EAlignContent alignContent() const { return static_cast<EAlignContent>(rareN onInheritedData->m_alignContent); }
728 EAlignItems alignItems() const { return static_cast<EAlignItems>(rareNonInhe ritedData->m_alignItems); } 729 EAlignItems alignItems() const { return static_cast<EAlignItems>(rareNonInhe ritedData->m_alignItems); }
729 EAlignItems alignSelf() const { return static_cast<EAlignItems>(rareNonInher itedData->m_alignSelf); } 730 EAlignItems alignSelf() const { return static_cast<EAlignItems>(rareNonInher itedData->m_alignSelf); }
730 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra reNonInheritedData->m_flexibleBox->m_flexDirection); } 731 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra reNonInheritedData->m_flexibleBox->m_flexDirection); }
731 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn || flexDirection() == FlowColumnReverse; } 732 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn || flexDirection() == FlowColumnReverse; }
732 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever se || flexDirection() == FlowColumnReverse; } 733 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever se || flexDirection() == FlowColumnReverse; }
733 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD ata->m_flexibleBox->m_flexWrap); } 734 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD ata->m_flexibleBox->m_flexWrap); }
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 void setBoxOrdinalGroup(unsigned int og) { SET_VAR(rareNonInheritedData.acce ss()->m_deprecatedFlexibleBox, ordinal_group, og); } 1170 void setBoxOrdinalGroup(unsigned int og) { SET_VAR(rareNonInheritedData.acce ss()->m_deprecatedFlexibleBox, ordinal_group, og); }
1170 void setBoxOrient(EBoxOrient o) { SET_VAR(rareNonInheritedData.access()->m_d eprecatedFlexibleBox, orient, o); } 1171 void setBoxOrient(EBoxOrient o) { SET_VAR(rareNonInheritedData.access()->m_d eprecatedFlexibleBox, orient, o); }
1171 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre catedFlexibleBox, pack, p); } 1172 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre catedFlexibleBox, pack, p); }
1172 void setBoxShadow(PassOwnPtr<ShadowData>, bool add = false); 1173 void setBoxShadow(PassOwnPtr<ShadowData>, bool add = false);
1173 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r eflect; } 1174 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r eflect; }
1174 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); } 1175 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); }
1175 void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibl eBox, m_flexGrow, f); } 1176 void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibl eBox, m_flexGrow, f); }
1176 void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexi bleBox, m_flexShrink, f); } 1177 void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexi bleBox, m_flexShrink, f); }
1177 void setFlexBasis(Length length) { SET_VAR(rareNonInheritedData.access()->m_ flexibleBox, m_flexBasis, length); } 1178 void setFlexBasis(Length length) { SET_VAR(rareNonInheritedData.access()->m_ flexibleBox, m_flexBasis, length); }
1178 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, o); } 1179 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, o); }
1180 void addCallbackSelector(const String& selector);
1179 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig nContent, p); } 1181 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig nContent, p); }
1180 void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignIte ms, a); } 1182 void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignIte ms, a); }
1181 void setAlignSelf(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignSelf , a); } 1183 void setAlignSelf(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignSelf , a); }
1182 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa ta.access()->m_flexibleBox, m_flexDirection, direction); } 1184 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa ta.access()->m_flexibleBox, m_flexDirection, direction); }
1183 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle xibleBox, m_flexWrap, w); } 1185 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle xibleBox, m_flexWrap, w); }
1184 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_ justifyContent, p); } 1186 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_ justifyContent, p); }
1185 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri tedData.access()->m_grid, m_gridAutoColumns, length); } 1187 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri tedData.access()->m_grid, m_gridAutoColumns, length); }
1186 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited Data.access()->m_grid, m_gridAutoRows, length); } 1188 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited Data.access()->m_grid, m_gridAutoRows, length); }
1187 void setGridDefinitionColumns(const Vector<GridTrackSize>& lengths) { SET_VA R(rareNonInheritedData.access()->m_grid, m_gridDefinitionColumns, lengths); } 1189 void setGridDefinitionColumns(const Vector<GridTrackSize>& lengths) { SET_VA R(rareNonInheritedData.access()->m_grid, m_gridDefinitionColumns, lengths); }
1188 void setGridDefinitionRows(const Vector<GridTrackSize>& lengths) { SET_VAR(r areNonInheritedData.access()->m_grid, m_gridDefinitionRows, lengths); } 1190 void setGridDefinitionRows(const Vector<GridTrackSize>& lengths) { SET_VAR(r areNonInheritedData.access()->m_grid, m_gridDefinitionRows, lengths); }
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) 1756 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation))
1755 return false; 1757 return false;
1756 1758
1757 rareInheritedData.access()->m_textOrientation = textOrientation; 1759 rareInheritedData.access()->m_textOrientation = textOrientation;
1758 return true; 1760 return true;
1759 } 1761 }
1760 1762
1761 } // namespace WebCore 1763 } // namespace WebCore
1762 1764
1763 #endif // RenderStyle_h 1765 #endif // RenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698