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

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

Issue 41363002: Devirtualize several inspector classes destructors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 | « Source/core/inspector/InspectorState.h ('k') | Source/core/inspector/InspectorStyleSheet.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 * 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 bool hasRawText() const { return !rawText.isEmpty(); } 125 bool hasRawText() const { return !rawText.isEmpty(); }
126 126
127 CSSPropertySourceData sourceData; 127 CSSPropertySourceData sourceData;
128 bool hasSource; 128 bool hasSource;
129 String rawText; 129 String rawText;
130 }; 130 };
131 131
132 class InspectorStyle : public RefCounted<InspectorStyle> { 132 class InspectorStyle : public RefCounted<InspectorStyle> {
133 public: 133 public:
134 static PassRefPtr<InspectorStyle> create(const InspectorCSSId& styleId, Pass RefPtr<CSSStyleDeclaration> style, InspectorStyleSheet* parentStyleSheet); 134 static PassRefPtr<InspectorStyle> create(const InspectorCSSId& styleId, Pass RefPtr<CSSStyleDeclaration> style, InspectorStyleSheet* parentStyleSheet);
135 virtual ~InspectorStyle();
136 135
137 CSSStyleDeclaration* cssStyle() const { return m_style.get(); } 136 CSSStyleDeclaration* cssStyle() const { return m_style.get(); }
138 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForStyle() const; 137 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForStyle() const;
139 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> > buildArrayForComputedStyle() const; 138 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> > buildArrayForComputedStyle() const;
140 bool setPropertyText(unsigned index, const String& text, bool overwrite, Str ing* oldText, ExceptionState&); 139 bool setPropertyText(unsigned index, const String& text, bool overwrite, Str ing* oldText, ExceptionState&);
141 bool toggleProperty(unsigned index, bool disable, ExceptionState&); 140 bool toggleProperty(unsigned index, bool disable, ExceptionState&);
142 bool styleText(String* result) const; 141 bool styleText(String* result) const;
143 142
144 private: 143 private:
145 InspectorStyle(const InspectorCSSId& styleId, PassRefPtr<CSSStyleDeclaration > style, InspectorStyleSheet* parentStyleSheet); 144 InspectorStyle(const InspectorCSSId& styleId, PassRefPtr<CSSStyleDeclaration > style, InspectorStyleSheet* parentStyleSheet);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 291
293 // Contains "style" attribute value. 292 // Contains "style" attribute value.
294 mutable String m_styleText; 293 mutable String m_styleText;
295 mutable bool m_isStyleTextValid; 294 mutable bool m_isStyleTextValid;
296 }; 295 };
297 296
298 297
299 } // namespace WebCore 298 } // namespace WebCore
300 299
301 #endif // !defined(InspectorStyleSheet_h) 300 #endif // !defined(InspectorStyleSheet_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorState.h ('k') | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698