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

Side by Side Diff: third_party/WebKit/Source/core/css/StyleRuleImport.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: CORE_EXPORT 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 * (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, 2008, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2008, 2012 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 22 matching lines...) Expand all
33 class MediaQuerySet; 33 class MediaQuerySet;
34 class StyleSheetContents; 34 class StyleSheetContents;
35 35
36 class StyleRuleImport : public StyleRuleBase { 36 class StyleRuleImport : public StyleRuleBase {
37 USING_FAST_MALLOC_WILL_BE_REMOVED(StyleRuleImport); 37 USING_FAST_MALLOC_WILL_BE_REMOVED(StyleRuleImport);
38 public: 38 public:
39 static PassRefPtrWillBeRawPtr<StyleRuleImport> create(const String& href, Pa ssRefPtrWillBeRawPtr<MediaQuerySet>); 39 static PassRefPtrWillBeRawPtr<StyleRuleImport> create(const String& href, Pa ssRefPtrWillBeRawPtr<MediaQuerySet>);
40 40
41 ~StyleRuleImport(); 41 ~StyleRuleImport();
42 42
43 StyleSheetContents* parentStyleSheet() const { return m_parentStyleSheet; } 43 StyleSheetContents* parentStyleSheet() const;
44 void setParentStyleSheet(StyleSheetContents* sheet) { ASSERT(sheet); m_paren tStyleSheet = sheet; } 44 void setParentStyleSheet(StyleSheetContents*);
45 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; } 45 void clearParentStyleSheet();
46 46
47 String href() const { return m_strHref; } 47 String href() const { return m_strHref; }
48 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); } 48 StyleSheetContents* styleSheet() const;
49 49
50 bool isLoading() const; 50 bool isLoading() const;
51 MediaQuerySet* mediaQueries() { return m_mediaQueries.get(); } 51 MediaQuerySet* mediaQueries() const;
52 52
53 void requestStyleSheet(); 53 void requestStyleSheet();
54 54
55 DECLARE_TRACE_AFTER_DISPATCH(); 55 DECLARE_TRACE_AFTER_DISPATCH();
56 56
57 private: 57 private:
58 // FIXME: inherit from StyleSheetResourceClient directly to eliminate raw ba ck pointer, as there are no space savings in this. 58 // FIXME: inherit from StyleSheetResourceClient directly to eliminate raw ba ck pointer, as there are no space savings in this.
59 // NOTE: We put the StyleSheetResourceClient in a member instead of inheriti ng from it 59 // NOTE: We put the StyleSheetResourceClient in a member instead of inheriti ng from it
60 // to avoid adding a vptr to StyleRuleImport. 60 // to avoid adding a vptr to StyleRuleImport.
61 class ImportedStyleSheetClient final : public StyleSheetResourceClient { 61 class ImportedStyleSheetClient final : public StyleSheetResourceClient {
(...skipping 29 matching lines...) Expand all
91 RefPtrWillBeMember<StyleSheetContents> m_styleSheet; 91 RefPtrWillBeMember<StyleSheetContents> m_styleSheet;
92 ResourcePtr<CSSStyleSheetResource> m_resource; 92 ResourcePtr<CSSStyleSheetResource> m_resource;
93 bool m_loading; 93 bool m_loading;
94 }; 94 };
95 95
96 DEFINE_STYLE_RULE_TYPE_CASTS(Import); 96 DEFINE_STYLE_RULE_TYPE_CASTS(Import);
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif 100 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698