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

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

Issue 1439023002: Oilpan: add reqd tracing of ImportedStyleSheetClients. (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StyleRuleImport.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, 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class ImportedStyleSheetClient final : public StyleSheetResourceClient { 61 class ImportedStyleSheetClient final : public StyleSheetResourceClient {
62 DISALLOW_NEW(); 62 DISALLOW_NEW();
63 public: 63 public:
64 ImportedStyleSheetClient(StyleRuleImport* ownerRule) : m_ownerRule(owner Rule) { } 64 ImportedStyleSheetClient(StyleRuleImport* ownerRule) : m_ownerRule(owner Rule) { }
65 ~ImportedStyleSheetClient() override { } 65 ~ImportedStyleSheetClient() override { }
66 void setCSSStyleSheet(const String& href, const KURL& baseURL, const Str ing& charset, const CSSStyleSheetResource* sheet) override 66 void setCSSStyleSheet(const String& href, const KURL& baseURL, const Str ing& charset, const CSSStyleSheetResource* sheet) override
67 { 67 {
68 m_ownerRule->setCSSStyleSheet(href, baseURL, charset, sheet); 68 m_ownerRule->setCSSStyleSheet(href, baseURL, charset, sheet);
69 } 69 }
70 String debugName() const override { return "ImportedStyleSheetClient"; } 70 String debugName() const override { return "ImportedStyleSheetClient"; }
71
72 DEFINE_INLINE_TRACE()
73 {
74 visitor->trace(m_ownerRule);
75 }
76
71 private: 77 private:
72 StyleRuleImport* m_ownerRule; 78 RawPtrWillBeMember<StyleRuleImport> m_ownerRule;
73 }; 79 };
74 80
75 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*); 81 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*);
76 friend class ImportedStyleSheetClient; 82 friend class ImportedStyleSheetClient;
77 83
78 StyleRuleImport(const String& href, PassRefPtrWillBeRawPtr<MediaQuerySet>); 84 StyleRuleImport(const String& href, PassRefPtrWillBeRawPtr<MediaQuerySet>);
79 85
80 RawPtrWillBeMember<StyleSheetContents> m_parentStyleSheet; 86 RawPtrWillBeMember<StyleSheetContents> m_parentStyleSheet;
81 87
82 ImportedStyleSheetClient m_styleSheetClient; 88 ImportedStyleSheetClient m_styleSheetClient;
83 String m_strHref; 89 String m_strHref;
84 RefPtrWillBeMember<MediaQuerySet> m_mediaQueries; 90 RefPtrWillBeMember<MediaQuerySet> m_mediaQueries;
85 RefPtrWillBeMember<StyleSheetContents> m_styleSheet; 91 RefPtrWillBeMember<StyleSheetContents> m_styleSheet;
86 ResourcePtr<CSSStyleSheetResource> m_resource; 92 ResourcePtr<CSSStyleSheetResource> m_resource;
87 bool m_loading; 93 bool m_loading;
88 }; 94 };
89 95
90 DEFINE_STYLE_RULE_TYPE_CASTS(Import); 96 DEFINE_STYLE_RULE_TYPE_CASTS(Import);
91 97
92 } // namespace blink 98 } // namespace blink
93 99
94 #endif 100 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StyleRuleImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698