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

Side by Side Diff: Source/core/css/CSSRule.h

Issue 26896005: IDL compiler: remove special case capitalization (cssText, xmllang, xmlbase, xmlspace) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) 5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 CSSStyleSheet* parentStyleSheet() const 77 CSSStyleSheet* parentStyleSheet() const
78 { 78 {
79 if (m_parentIsRule) 79 if (m_parentIsRule)
80 return m_parentRule ? m_parentRule->parentStyleSheet() : 0; 80 return m_parentRule ? m_parentRule->parentStyleSheet() : 0;
81 return m_parentStyleSheet; 81 return m_parentStyleSheet;
82 } 82 }
83 83
84 CSSRule* parentRule() const { return m_parentIsRule ? m_parentRule : 0; } 84 CSSRule* parentRule() const { return m_parentIsRule ? m_parentRule : 0; }
85 85
86 // NOTE: Just calls notImplemented(). 86 // NOTE: Just calls notImplemented().
87 void setCssText(const String&); 87 void setCSSText(const String&);
88 88
89 protected: 89 protected:
90 CSSRule(CSSStyleSheet* parent) 90 CSSRule(CSSStyleSheet* parent)
91 : m_hasCachedSelectorText(false) 91 : m_hasCachedSelectorText(false)
92 , m_parentIsRule(false) 92 , m_parentIsRule(false)
93 , m_parentStyleSheet(parent) 93 , m_parentStyleSheet(parent)
94 { 94 {
95 } 95 }
96 96
97 bool hasCachedSelectorText() const { return m_hasCachedSelectorText; } 97 bool hasCachedSelectorText() const { return m_hasCachedSelectorText; }
98 void setHasCachedSelectorText(bool hasCachedSelectorText) const { m_hasCache dSelectorText = hasCachedSelectorText; } 98 void setHasCachedSelectorText(bool hasCachedSelectorText) const { m_hasCache dSelectorText = hasCachedSelectorText; }
99 99
100 const CSSParserContext& parserContext() const; 100 const CSSParserContext& parserContext() const;
101 101
102 private: 102 private:
103 mutable unsigned char m_hasCachedSelectorText : 1; 103 mutable unsigned char m_hasCachedSelectorText : 1;
104 unsigned char m_parentIsRule : 1; 104 unsigned char m_parentIsRule : 1;
105 105
106 union { 106 union {
107 CSSRule* m_parentRule; 107 CSSRule* m_parentRule;
108 CSSStyleSheet* m_parentStyleSheet; 108 CSSStyleSheet* m_parentStyleSheet;
109 }; 109 };
110 }; 110 };
111 111
112 } // namespace WebCore 112 } // namespace WebCore
113 113
114 #endif // CSSRule_h 114 #endif // CSSRule_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698