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

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

Issue 2392343005: Reflow comments in core/css (Closed)
Patch Set: Revert clang-format Created 4 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); } 51 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); }
52 52
53 bool isLoading() const; 53 bool isLoading() const;
54 MediaQuerySet* mediaQueries() { return m_mediaQueries.get(); } 54 MediaQuerySet* mediaQueries() { return m_mediaQueries.get(); }
55 55
56 void requestStyleSheet(); 56 void requestStyleSheet();
57 57
58 DECLARE_TRACE_AFTER_DISPATCH(); 58 DECLARE_TRACE_AFTER_DISPATCH();
59 59
60 private: 60 private:
61 // FIXME: inherit from StyleSheetResourceClient directly to eliminate back poi nter, as there are no space savings in this. 61 // FIXME: inherit from StyleSheetResourceClient directly to eliminate back
62 // NOTE: We put the StyleSheetResourceClient in a member instead of inheriting from it 62 // pointer, as there are no space savings in this.
63 // to avoid adding a vptr to StyleRuleImport. 63 // NOTE: We put the StyleSheetResourceClient in a member instead of inheriting
64 // from it to avoid adding a vptr to StyleRuleImport.
64 class ImportedStyleSheetClient final 65 class ImportedStyleSheetClient final
65 : public GarbageCollectedFinalized<ImportedStyleSheetClient>, 66 : public GarbageCollectedFinalized<ImportedStyleSheetClient>,
66 public StyleSheetResourceClient { 67 public StyleSheetResourceClient {
67 USING_GARBAGE_COLLECTED_MIXIN(ImportedStyleSheetClient); 68 USING_GARBAGE_COLLECTED_MIXIN(ImportedStyleSheetClient);
68 69
69 public: 70 public:
70 ImportedStyleSheetClient(StyleRuleImport* ownerRule) 71 ImportedStyleSheetClient(StyleRuleImport* ownerRule)
71 : m_ownerRule(ownerRule) {} 72 : m_ownerRule(ownerRule) {}
72 ~ImportedStyleSheetClient() override {} 73 ~ImportedStyleSheetClient() override {}
73 void setCSSStyleSheet(const String& href, 74 void setCSSStyleSheet(const String& href,
(...skipping 30 matching lines...) Expand all
104 Member<StyleSheetContents> m_styleSheet; 105 Member<StyleSheetContents> m_styleSheet;
105 Member<CSSStyleSheetResource> m_resource; 106 Member<CSSStyleSheetResource> m_resource;
106 bool m_loading; 107 bool m_loading;
107 }; 108 };
108 109
109 DEFINE_STYLE_RULE_TYPE_CASTS(Import); 110 DEFINE_STYLE_RULE_TYPE_CASTS(Import);
110 111
111 } // namespace blink 112 } // namespace blink
112 113
113 #endif 114 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698