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

Side by Side Diff: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 34
35 class CSSRule; 35 class CSSRule;
36 class CSSValue; 36 class CSSValue;
37 class Element; 37 class Element;
38 class ExceptionState; 38 class ExceptionState;
39 class MutableStylePropertySet; 39 class MutableStylePropertySet;
40 class StyleSheetContents; 40 class StyleSheetContents;
41 41
42 class AbstractPropertySetCSSStyleDeclaration : public CSSStyleDeclaration { 42 class AbstractPropertySetCSSStyleDeclaration : public CSSStyleDeclaration {
43 public: 43 public:
44 virtual Element* parentElement() const { return 0; } 44 virtual Element* parentElement() const { return nullptr; }
45 StyleSheetContents* contextStyleSheet() const; 45 StyleSheetContents* contextStyleSheet() const;
46 46
47 DECLARE_VIRTUAL_TRACE(); 47 DECLARE_VIRTUAL_TRACE();
48 48
49 private: 49 private:
50 CSSRule* parentRule() const override { return 0; } 50 CSSRule* parentRule() const override { return 0; }
51 unsigned length() const final; 51 unsigned length() const final;
52 String item(unsigned index) const final; 52 String item(unsigned index) const final;
53 String getPropertyValue(const String& propertyName) final; 53 String getPropertyValue(const String& propertyName) final;
54 String getPropertyPriority(const String& propertyName) final; 54 String getPropertyPriority(const String& propertyName) final;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void didMutate(MutationType) override; 120 void didMutate(MutationType) override;
121 121
122 #if !ENABLE(OILPAN) 122 #if !ENABLE(OILPAN)
123 unsigned m_refCount; 123 unsigned m_refCount;
124 #endif 124 #endif
125 RawPtrWillBeMember<CSSRule> m_parentRule; 125 RawPtrWillBeMember<CSSRule> m_parentRule;
126 }; 126 };
127 127
128 class InlineCSSStyleDeclaration final : public AbstractPropertySetCSSStyleDeclar ation { 128 class InlineCSSStyleDeclaration final : public AbstractPropertySetCSSStyleDeclar ation {
129 public: 129 public:
130 explicit InlineCSSStyleDeclaration(Element* parentElement) 130 explicit InlineCSSStyleDeclaration(Element* parentElement);
131 : m_parentElement(parentElement)
132 {
133 }
134 131
135 DECLARE_VIRTUAL_TRACE(); 132 DECLARE_VIRTUAL_TRACE();
136 133
137 private: 134 private:
138 MutableStylePropertySet& propertySet() const override; 135 MutableStylePropertySet& propertySet() const override;
139 #if !ENABLE(OILPAN) 136 #if !ENABLE(OILPAN)
140 void ref() override; 137 void ref() override;
141 void deref() override; 138 void deref() override;
142 #endif 139 #endif
143 CSSStyleSheet* parentStyleSheet() const override; 140 CSSStyleSheet* parentStyleSheet() const override;
144 Element* parentElement() const override { return m_parentElement; } 141 Element* parentElement() const override;
145 142
146 void didMutate(MutationType) override; 143 void didMutate(MutationType) override;
147 144
148 RawPtrWillBeMember<Element> m_parentElement; 145 RawPtrWillBeMember<Element> m_parentElement;
149 }; 146 };
150 147
151 } // namespace blink 148 } // namespace blink
152 149
153 #endif 150 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698