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

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: Initial Created 7 years, 5 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
« no previous file with comments | « Source/core/page/UseCounter.cpp ('k') | Source/core/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 EBoxAlignment boxAlign() const { return static_cast<EBoxAlignment>(rareNonIn heritedData->m_deprecatedFlexibleBox->align); } 720 EBoxAlignment boxAlign() const { return static_cast<EBoxAlignment>(rareNonIn heritedData->m_deprecatedFlexibleBox->align); }
721 EBoxDirection boxDirection() const { return static_cast<EBoxDirection>(inher ited_flags._box_direction); } 721 EBoxDirection boxDirection() const { return static_cast<EBoxDirection>(inher ited_flags._box_direction); }
722 float boxFlex() const { return rareNonInheritedData->m_deprecatedFlexibleBox ->flex; } 722 float boxFlex() const { return rareNonInheritedData->m_deprecatedFlexibleBox ->flex; }
723 unsigned int boxFlexGroup() const { return rareNonInheritedData->m_deprecate dFlexibleBox->flex_group; } 723 unsigned int boxFlexGroup() const { return rareNonInheritedData->m_deprecate dFlexibleBox->flex_group; }
724 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD ata->m_deprecatedFlexibleBox->lines); } 724 EBoxLines boxLines() const { return static_cast<EBoxLines>(rareNonInheritedD ata->m_deprecatedFlexibleBox->lines); }
725 unsigned int boxOrdinalGroup() const { return rareNonInheritedData->m_deprec atedFlexibleBox->ordinal_group; } 725 unsigned int boxOrdinalGroup() const { return rareNonInheritedData->m_deprec atedFlexibleBox->ordinal_group; }
726 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit edData->m_deprecatedFlexibleBox->orient); } 726 EBoxOrient boxOrient() const { return static_cast<EBoxOrient>(rareNonInherit edData->m_deprecatedFlexibleBox->orient); }
727 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData ->m_deprecatedFlexibleBox->pack); } 727 EBoxPack boxPack() const { return static_cast<EBoxPack>(rareNonInheritedData ->m_deprecatedFlexibleBox->pack); }
728 728
729 int order() const { return rareNonInheritedData->m_order; } 729 int order() const { return rareNonInheritedData->m_order; }
730 #if ENABLE(CSS_CALLBACKS)
731 const Vector<String>& callbackSelectors() const { return rareNonInheritedDat a->m_callbackSelectors; }
732 #endif
730 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG row; } 733 float flexGrow() const { return rareNonInheritedData->m_flexibleBox->m_flexG row; }
731 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle xShrink; } 734 float flexShrink() const { return rareNonInheritedData->m_flexibleBox->m_fle xShrink; }
732 Length flexBasis() const { return rareNonInheritedData->m_flexibleBox->m_fle xBasis; } 735 Length flexBasis() const { return rareNonInheritedData->m_flexibleBox->m_fle xBasis; }
733 EAlignContent alignContent() const { return static_cast<EAlignContent>(rareN onInheritedData->m_alignContent); } 736 EAlignContent alignContent() const { return static_cast<EAlignContent>(rareN onInheritedData->m_alignContent); }
734 EAlignItems alignItems() const { return static_cast<EAlignItems>(rareNonInhe ritedData->m_alignItems); } 737 EAlignItems alignItems() const { return static_cast<EAlignItems>(rareNonInhe ritedData->m_alignItems); }
735 EAlignItems alignSelf() const { return static_cast<EAlignItems>(rareNonInher itedData->m_alignSelf); } 738 EAlignItems alignSelf() const { return static_cast<EAlignItems>(rareNonInher itedData->m_alignSelf); }
736 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra reNonInheritedData->m_flexibleBox->m_flexDirection); } 739 EFlexDirection flexDirection() const { return static_cast<EFlexDirection>(ra reNonInheritedData->m_flexibleBox->m_flexDirection); }
737 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn || flexDirection() == FlowColumnReverse; } 740 bool isColumnFlexDirection() const { return flexDirection() == FlowColumn || flexDirection() == FlowColumnReverse; }
738 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever se || flexDirection() == FlowColumnReverse; } 741 bool isReverseFlexDirection() const { return flexDirection() == FlowRowRever se || flexDirection() == FlowColumnReverse; }
739 EFlexWrap flexWrap() const { return static_cast<EFlexWrap>(rareNonInheritedD ata->m_flexibleBox->m_flexWrap); } 742 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
1175 void setBoxOrdinalGroup(unsigned int og) { SET_VAR(rareNonInheritedData.acce ss()->m_deprecatedFlexibleBox, ordinal_group, og); } 1178 void setBoxOrdinalGroup(unsigned int og) { SET_VAR(rareNonInheritedData.acce ss()->m_deprecatedFlexibleBox, ordinal_group, og); }
1176 void setBoxOrient(EBoxOrient o) { SET_VAR(rareNonInheritedData.access()->m_d eprecatedFlexibleBox, orient, o); } 1179 void setBoxOrient(EBoxOrient o) { SET_VAR(rareNonInheritedData.access()->m_d eprecatedFlexibleBox, orient, o); }
1177 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre catedFlexibleBox, pack, p); } 1180 void setBoxPack(EBoxPack p) { SET_VAR(rareNonInheritedData.access()->m_depre catedFlexibleBox, pack, p); }
1178 void setBoxShadow(PassOwnPtr<ShadowData>, bool add = false); 1181 void setBoxShadow(PassOwnPtr<ShadowData>, bool add = false);
1179 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r eflect; } 1182 void setBoxReflect(PassRefPtr<StyleReflection> reflect) { if (rareNonInherit edData->m_boxReflect != reflect) rareNonInheritedData.access()->m_boxReflect = r eflect; }
1180 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); } 1183 void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); }
1181 void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibl eBox, m_flexGrow, f); } 1184 void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibl eBox, m_flexGrow, f); }
1182 void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexi bleBox, m_flexShrink, f); } 1185 void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexi bleBox, m_flexShrink, f); }
1183 void setFlexBasis(Length length) { SET_VAR(rareNonInheritedData.access()->m_ flexibleBox, m_flexBasis, length); } 1186 void setFlexBasis(Length length) { SET_VAR(rareNonInheritedData.access()->m_ flexibleBox, m_flexBasis, length); }
1184 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, o); } 1187 void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, o); }
1188 #if ENABLE(CSS_CALLBACKS)
1189 void addCallbackSelector(const String& selector, Document*);
1190 void removeCallbackSelector(const String& selector);
1191 #endif
1185 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig nContent, p); } 1192 void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alig nContent, p); }
1186 void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignIte ms, a); } 1193 void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignIte ms, a); }
1187 void setAlignSelf(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignSelf , a); } 1194 void setAlignSelf(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignSelf , a); }
1188 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa ta.access()->m_flexibleBox, m_flexDirection, direction); } 1195 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa ta.access()->m_flexibleBox, m_flexDirection, direction); }
1189 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle xibleBox, m_flexWrap, w); } 1196 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle xibleBox, m_flexWrap, w); }
1190 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_ justifyContent, p); } 1197 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_ justifyContent, p); }
1191 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri tedData.access()->m_grid, m_gridAutoColumns, length); } 1198 void setGridAutoColumns(const GridTrackSize& length) { SET_VAR(rareNonInheri tedData.access()->m_grid, m_gridAutoColumns, length); }
1192 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited Data.access()->m_grid, m_gridAutoRows, length); } 1199 void setGridAutoRows(const GridTrackSize& length) { SET_VAR(rareNonInherited Data.access()->m_grid, m_gridAutoRows, length); }
1193 void setGridDefinitionColumns(const Vector<GridTrackSize>& lengths) { SET_VA R(rareNonInheritedData.access()->m_grid, m_gridDefinitionColumns, lengths); } 1200 void setGridDefinitionColumns(const Vector<GridTrackSize>& lengths) { SET_VA R(rareNonInheritedData.access()->m_grid, m_gridDefinitionColumns, lengths); }
1194 void setGridDefinitionRows(const Vector<GridTrackSize>& lengths) { SET_VAR(r areNonInheritedData.access()->m_grid, m_gridDefinitionRows, lengths); } 1201 void setGridDefinitionRows(const Vector<GridTrackSize>& lengths) { SET_VAR(r areNonInheritedData.access()->m_grid, m_gridDefinitionRows, lengths); }
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) 1761 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation))
1755 return false; 1762 return false;
1756 1763
1757 rareInheritedData.access()->m_textOrientation = textOrientation; 1764 rareInheritedData.access()->m_textOrientation = textOrientation;
1758 return true; 1765 return true;
1759 } 1766 }
1760 1767
1761 } // namespace WebCore 1768 } // namespace WebCore
1762 1769
1763 #endif // RenderStyle_h 1770 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/page/UseCounter.cpp ('k') | Source/core/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698