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

Side by Side Diff: Source/core/inspector/InspectorStyleSheet.h

Issue 192473003: Move CSSRuleList to the garbage collected heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ager feedback Created 6 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 public: 165 public:
166 Listener() { } 166 Listener() { }
167 virtual ~Listener() { } 167 virtual ~Listener() { }
168 virtual void styleSheetChanged(InspectorStyleSheet*) = 0; 168 virtual void styleSheetChanged(InspectorStyleSheet*) = 0;
169 virtual void willReparseStyleSheet() = 0; 169 virtual void willReparseStyleSheet() = 0;
170 virtual void didReparseStyleSheet() = 0; 170 virtual void didReparseStyleSheet() = 0;
171 }; 171 };
172 172
173 static PassRefPtr<InspectorStyleSheet> create(InspectorPageAgent*, Inspector ResourceAgent*, const String& id, PassRefPtr<CSSStyleSheet> pageStyleSheet, Type Builder::CSS::StyleSheetOrigin::Enum, const String& documentURL, Listener*); 173 static PassRefPtr<InspectorStyleSheet> create(InspectorPageAgent*, Inspector ResourceAgent*, const String& id, PassRefPtr<CSSStyleSheet> pageStyleSheet, Type Builder::CSS::StyleSheetOrigin::Enum, const String& documentURL, Listener*);
174 static String styleSheetURL(CSSStyleSheet* pageStyleSheet); 174 static String styleSheetURL(CSSStyleSheet* pageStyleSheet);
175 static void collectFlatRules(PassRefPtr<CSSRuleList>, CSSRuleVector* result) ; 175 static void collectFlatRules(PassRefPtrWillBeRawPtr<CSSRuleList>, CSSRuleVec tor* result);
176 176
177 virtual ~InspectorStyleSheet(); 177 virtual ~InspectorStyleSheet();
178 178
179 String id() const { return m_id; } 179 String id() const { return m_id; }
180 String finalURL() const; 180 String finalURL() const;
181 virtual Document* ownerDocument() const; 181 virtual Document* ownerDocument() const;
182 bool canBind() const { return m_origin != TypeBuilder::CSS::StyleSheetOrigin ::User_agent && m_origin != TypeBuilder::CSS::StyleSheetOrigin::User; } 182 bool canBind() const { return m_origin != TypeBuilder::CSS::StyleSheetOrigin ::User_agent && m_origin != TypeBuilder::CSS::StyleSheetOrigin::User; }
183 CSSStyleSheet* pageStyleSheet() const { return m_pageStyleSheet.get(); } 183 CSSStyleSheet* pageStyleSheet() const { return m_pageStyleSheet.get(); }
184 virtual void reparseStyleSheet(const String&); 184 virtual void reparseStyleSheet(const String&);
185 virtual bool setText(const String&, ExceptionState&); 185 virtual bool setText(const String&, ExceptionState&);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 // Contains "style" attribute value. 285 // Contains "style" attribute value.
286 mutable String m_styleText; 286 mutable String m_styleText;
287 mutable bool m_isStyleTextValid; 287 mutable bool m_isStyleTextValid;
288 }; 288 };
289 289
290 290
291 } // namespace WebCore 291 } // namespace WebCore
292 292
293 #endif // !defined(InspectorStyleSheet_h) 293 #endif // !defined(InspectorStyleSheet_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698