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

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

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/StyleRule.cpp ('k') | 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void clearParentStyleSheet() { m_parentStyleSheet = 0; } 44 void clearParentStyleSheet() { m_parentStyleSheet = 0; }
45 45
46 String href() const { return m_strHref; } 46 String href() const { return m_strHref; }
47 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); } 47 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); }
48 48
49 bool isLoading() const; 49 bool isLoading() const;
50 MediaQuerySet* mediaQueries() { return m_mediaQueries.get(); } 50 MediaQuerySet* mediaQueries() { return m_mediaQueries.get(); }
51 51
52 void requestStyleSheet(); 52 void requestStyleSheet();
53 53
54 void reportDescendantMemoryUsage(MemoryObjectInfo*) const;
55
56 private: 54 private:
57 // NOTE: We put the CachedStyleSheetClient in a member instead of inheriting from it 55 // NOTE: We put the CachedStyleSheetClient in a member instead of inheriting from it
58 // to avoid adding a vptr to StyleRuleImport. 56 // to avoid adding a vptr to StyleRuleImport.
59 class ImportedStyleSheetClient : public CachedStyleSheetClient { 57 class ImportedStyleSheetClient : public CachedStyleSheetClient {
60 public: 58 public:
61 ImportedStyleSheetClient(StyleRuleImport* ownerRule) : m_ownerRule(owner Rule) { } 59 ImportedStyleSheetClient(StyleRuleImport* ownerRule) : m_ownerRule(owner Rule) { }
62 virtual ~ImportedStyleSheetClient() { } 60 virtual ~ImportedStyleSheetClient() { }
63 virtual void setCSSStyleSheet(const String& href, const KURL& baseURL, c onst String& charset, const CachedCSSStyleSheet* sheet) 61 virtual void setCSSStyleSheet(const String& href, const KURL& baseURL, c onst String& charset, const CachedCSSStyleSheet* sheet)
64 { 62 {
65 m_ownerRule->setCSSStyleSheet(href, baseURL, charset, sheet); 63 m_ownerRule->setCSSStyleSheet(href, baseURL, charset, sheet);
(...skipping 13 matching lines...) Expand all
79 String m_strHref; 77 String m_strHref;
80 RefPtr<MediaQuerySet> m_mediaQueries; 78 RefPtr<MediaQuerySet> m_mediaQueries;
81 RefPtr<StyleSheetContents> m_styleSheet; 79 RefPtr<StyleSheetContents> m_styleSheet;
82 CachedResourceHandle<CachedCSSStyleSheet> m_cachedSheet; 80 CachedResourceHandle<CachedCSSStyleSheet> m_cachedSheet;
83 bool m_loading; 81 bool m_loading;
84 }; 82 };
85 83
86 } // namespace WebCore 84 } // namespace WebCore
87 85
88 #endif 86 #endif
OLDNEW
« no previous file with comments | « Source/core/css/StyleRule.cpp ('k') | Source/core/css/StyleRuleImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698