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

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

Issue 129633003: Add a first pass of a class descendant invalidator, and a containing RuleSetAnalyzer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Implement tree walk for descendant class invalidation. Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.cpp ('k') | no next file » | 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 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 static QuotesData* initialQuotes() { return 0; } 1709 static QuotesData* initialQuotes() { return 0; }
1710 1710
1711 // Keep these at the end. 1711 // Keep these at the end.
1712 // FIXME: Why? Seems these should all be one big sorted list. 1712 // FIXME: Why? Seems these should all be one big sorted list.
1713 static LineClampValue initialLineClamp() { return LineClampValue(); } 1713 static LineClampValue initialLineClamp() { return LineClampValue(); }
1714 static ETextSecurity initialTextSecurity() { return TSNONE; } 1714 static ETextSecurity initialTextSecurity() { return TSNONE; }
1715 static Color initialTapHighlightColor(); 1715 static Color initialTapHighlightColor();
1716 static const FilterOperations& initialFilter() { DEFINE_STATIC_LOCAL(FilterO perations, ops, ()); return ops; } 1716 static const FilterOperations& initialFilter() { DEFINE_STATIC_LOCAL(FilterO perations, ops, ()); return ops; }
1717 static blink::WebBlendMode initialBlendMode() { return blink::WebBlendModeNo rmal; } 1717 static blink::WebBlendMode initialBlendMode() { return blink::WebBlendModeNo rmal; }
1718 static EIsolation initialIsolation() { return IsolationAuto; } 1718 static EIsolation initialIsolation() { return IsolationAuto; }
1719
1720 Color backgroundColor() const { return m_background->color(); }
1721
1722
1719 private: 1723 private:
1720 void setVisitedLinkColor(const Color&); 1724 void setVisitedLinkColor(const Color&);
1721 void setVisitedLinkBackgroundColor(const Color& v) { SET_VAR(rareNonInherite dData, m_visitedLinkBackgroundColor, v); } 1725 void setVisitedLinkBackgroundColor(const Color& v) { SET_VAR(rareNonInherite dData, m_visitedLinkBackgroundColor, v); }
1722 void setVisitedLinkBorderLeftColor(const Color& v) { SET_VAR(rareNonInherite dData, m_visitedLinkBorderLeftColor, v); } 1726 void setVisitedLinkBorderLeftColor(const Color& v) { SET_VAR(rareNonInherite dData, m_visitedLinkBorderLeftColor, v); }
1723 void setVisitedLinkBorderRightColor(const Color& v) { SET_VAR(rareNonInherit edData, m_visitedLinkBorderRightColor, v); } 1727 void setVisitedLinkBorderRightColor(const Color& v) { SET_VAR(rareNonInherit edData, m_visitedLinkBorderRightColor, v); }
1724 void setVisitedLinkBorderBottomColor(const Color& v) { SET_VAR(rareNonInheri tedData, m_visitedLinkBorderBottomColor, v); } 1728 void setVisitedLinkBorderBottomColor(const Color& v) { SET_VAR(rareNonInheri tedData, m_visitedLinkBorderBottomColor, v); }
1725 void setVisitedLinkBorderTopColor(const Color& v) { SET_VAR(rareNonInherited Data, m_visitedLinkBorderTopColor, v); } 1729 void setVisitedLinkBorderTopColor(const Color& v) { SET_VAR(rareNonInherited Data, m_visitedLinkBorderTopColor, v); }
1726 void setVisitedLinkOutlineColor(const Color& v) { SET_VAR(rareNonInheritedDa ta, m_visitedLinkOutlineColor, v); } 1730 void setVisitedLinkOutlineColor(const Color& v) { SET_VAR(rareNonInheritedDa ta, m_visitedLinkOutlineColor, v); }
1727 void setVisitedLinkColumnRuleColor(const Color& v) { SET_VAR(rareNonInherite dData.access()->m_multiCol, m_visitedLinkColumnRuleColor, v); } 1731 void setVisitedLinkColumnRuleColor(const Color& v) { SET_VAR(rareNonInherite dData.access()->m_multiCol, m_visitedLinkColumnRuleColor, v); }
1728 void setVisitedLinkTextDecorationColor(const Color& v) { SET_VAR(rareNonInhe ritedData, m_visitedLinkTextDecorationColor, v); } 1732 void setVisitedLinkTextDecorationColor(const Color& v) { SET_VAR(rareNonInhe ritedData, m_visitedLinkTextDecorationColor, v); }
(...skipping 25 matching lines...) Expand all
1754 { 1758 {
1755 return display == INLINE || isDisplayReplacedType(display); 1759 return display == INLINE || isDisplayReplacedType(display);
1756 } 1760 }
1757 1761
1758 // Color accessors are all private to make sure callers use visitedDependent Color instead to access them. 1762 // Color accessors are all private to make sure callers use visitedDependent Color instead to access them.
1759 Color invalidColor() const { static Color invalid; return invalid; } 1763 Color invalidColor() const { static Color invalid; return invalid; }
1760 Color borderLeftColor() const { return surround->border.left().color(); } 1764 Color borderLeftColor() const { return surround->border.left().color(); }
1761 Color borderRightColor() const { return surround->border.right().color(); } 1765 Color borderRightColor() const { return surround->border.right().color(); }
1762 Color borderTopColor() const { return surround->border.top().color(); } 1766 Color borderTopColor() const { return surround->border.top().color(); }
1763 Color borderBottomColor() const { return surround->border.bottom().color(); } 1767 Color borderBottomColor() const { return surround->border.bottom().color(); }
1764 Color backgroundColor() const { return m_background->color(); }
1765 Color color() const; 1768 Color color() const;
1766 Color columnRuleColor() const { return rareNonInheritedData->m_multiCol->m_r ule.color(); } 1769 Color columnRuleColor() const { return rareNonInheritedData->m_multiCol->m_r ule.color(); }
1767 Color outlineColor() const { return m_background->outline().color(); } 1770 Color outlineColor() const { return m_background->outline().color(); }
1768 Color textEmphasisColor() const { return rareInheritedData->textEmphasisColo r; } 1771 Color textEmphasisColor() const { return rareInheritedData->textEmphasisColo r; }
1769 Color textFillColor() const { return rareInheritedData->textFillColor; } 1772 Color textFillColor() const { return rareInheritedData->textFillColor; }
1770 Color textStrokeColor() const { return rareInheritedData->textStrokeColor; } 1773 Color textStrokeColor() const { return rareInheritedData->textStrokeColor; }
1771 Color visitedLinkColor() const; 1774 Color visitedLinkColor() const;
1772 Color visitedLinkBackgroundColor() const { return rareNonInheritedData->m_vi sitedLinkBackgroundColor; } 1775 Color visitedLinkBackgroundColor() const { return rareNonInheritedData->m_vi sitedLinkBackgroundColor; }
1773 Color visitedLinkBorderLeftColor() const { return rareNonInheritedData->m_vi sitedLinkBorderLeftColor; } 1776 Color visitedLinkBorderLeftColor() const { return rareNonInheritedData->m_vi sitedLinkBorderLeftColor; }
1774 Color visitedLinkBorderRightColor() const { return rareNonInheritedData->m_v isitedLinkBorderRightColor; } 1777 Color visitedLinkBorderRightColor() const { return rareNonInheritedData->m_v isitedLinkBorderRightColor; }
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) 1877 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo)
1875 { 1878 {
1876 ASSERT(pseudo > NOPSEUDO); 1879 ASSERT(pseudo > NOPSEUDO);
1877 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); 1880 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID);
1878 noninherited_flags._pseudoBits |= 1 << (pseudo - 1); 1881 noninherited_flags._pseudoBits |= 1 << (pseudo - 1);
1879 } 1882 }
1880 1883
1881 } // namespace WebCore 1884 } // namespace WebCore
1882 1885
1883 #endif // RenderStyle_h 1886 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698