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

Side by Side Diff: sky/engine/core/css/CSSRule.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/CSSPropertySourceData.cpp ('k') | sky/engine/core/css/CSSRule.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 * (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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 m_parentIsRule = false; 58 m_parentIsRule = false;
59 m_parentStyleSheet = styleSheet; 59 m_parentStyleSheet = styleSheet;
60 } 60 }
61 61
62 void setParentRule(CSSRule* rule) 62 void setParentRule(CSSRule* rule)
63 { 63 {
64 m_parentIsRule = true; 64 m_parentIsRule = true;
65 m_parentRule = rule; 65 m_parentRule = rule;
66 } 66 }
67 67
68 virtual void trace(Visitor*);
69
70 CSSStyleSheet* parentStyleSheet() const 68 CSSStyleSheet* parentStyleSheet() const
71 { 69 {
72 if (m_parentIsRule) 70 if (m_parentIsRule)
73 return m_parentRule ? m_parentRule->parentStyleSheet() : 0; 71 return m_parentRule ? m_parentRule->parentStyleSheet() : 0;
74 return m_parentStyleSheet; 72 return m_parentStyleSheet;
75 } 73 }
76 74
77 CSSRule* parentRule() const { return m_parentIsRule ? m_parentRule : 0; } 75 CSSRule* parentRule() const { return m_parentIsRule ? m_parentRule : 0; }
78 76
79 // NOTE: Just calls notImplemented(). 77 // NOTE: Just calls notImplemented().
(...skipping 22 matching lines...) Expand all
102 CSSStyleSheet* m_parentStyleSheet; 100 CSSStyleSheet* m_parentStyleSheet;
103 }; 101 };
104 }; 102 };
105 103
106 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ 104 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \
107 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME) 105 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME)
108 106
109 } // namespace blink 107 } // namespace blink
110 108
111 #endif // CSSRule_h 109 #endif // CSSRule_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSPropertySourceData.cpp ('k') | sky/engine/core/css/CSSRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698