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

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

Issue 47613002: Use FINAL macro for classes whose virtual destructor was removed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorState.h ('k') | Source/core/inspector/ScriptProfile.h » ('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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 rawText = styleDeclaration.substring(start, end - start); 122 rawText = styleDeclaration.substring(start, end - start);
123 } 123 }
124 124
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 FINAL : 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 135
136 CSSStyleDeclaration* cssStyle() const { return m_style.get(); } 136 CSSStyleDeclaration* cssStyle() const { return m_style.get(); }
137 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForStyle() const; 137 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForStyle() const;
138 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> > buildArrayForComputedStyle() const; 138 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> > buildArrayForComputedStyle() const;
139 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&);
140 bool toggleProperty(unsigned index, bool disable, ExceptionState&); 140 bool toggleProperty(unsigned index, bool disable, ExceptionState&);
141 bool styleText(String* result) const; 141 bool styleText(String* result) const;
142 142
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 291
292 // Contains "style" attribute value. 292 // Contains "style" attribute value.
293 mutable String m_styleText; 293 mutable String m_styleText;
294 mutable bool m_isStyleTextValid; 294 mutable bool m_isStyleTextValid;
295 }; 295 };
296 296
297 297
298 } // namespace WebCore 298 } // namespace WebCore
299 299
300 #endif // !defined(InspectorStyleSheet_h) 300 #endif // !defined(InspectorStyleSheet_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorState.h ('k') | Source/core/inspector/ScriptProfile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698