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

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

Issue 186823002: CSS: remove dead code from InspectorStyleSheet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 private: 143 private:
144 InspectorStyle(const InspectorCSSId& styleId, PassRefPtr<CSSStyleDeclaration > style, InspectorStyleSheet* parentStyleSheet); 144 InspectorStyle(const InspectorCSSId& styleId, PassRefPtr<CSSStyleDeclaration > style, InspectorStyleSheet* parentStyleSheet);
145 145
146 bool verifyPropertyText(const String& propertyText, bool canOmitSemicolon); 146 bool verifyPropertyText(const String& propertyText, bool canOmitSemicolon);
147 void populateAllProperties(Vector<InspectorStyleProperty>& result) const; 147 void populateAllProperties(Vector<InspectorStyleProperty>& result) const;
148 PassRefPtr<TypeBuilder::CSS::CSSStyle> styleWithProperties() const; 148 PassRefPtr<TypeBuilder::CSS::CSSStyle> styleWithProperties() const;
149 PassRefPtr<CSSRuleSourceData> extractSourceData() const; 149 PassRefPtr<CSSRuleSourceData> extractSourceData() const;
150 bool applyStyleText(const String&); 150 bool applyStyleText(const String&);
151 String shorthandValue(const String& shorthandProperty) const; 151 String shorthandValue(const String& shorthandProperty) const;
152 String shorthandPriority(const String& shorthandProperty) const;
153 Vector<String> longhandProperties(const String& shorthandProperty) const;
154 NewLineAndWhitespace& newLineAndWhitespaceDelimiters() const; 152 NewLineAndWhitespace& newLineAndWhitespaceDelimiters() const;
155 inline Document* ownerDocument() const; 153 inline Document* ownerDocument() const;
156 154
157 InspectorCSSId m_styleId; 155 InspectorCSSId m_styleId;
158 RefPtr<CSSStyleDeclaration> m_style; 156 RefPtr<CSSStyleDeclaration> m_style;
159 InspectorStyleSheet* m_parentStyleSheet; 157 InspectorStyleSheet* m_parentStyleSheet;
160 mutable std::pair<String, String> m_format; 158 mutable std::pair<String, String> m_format;
161 mutable bool m_formatAcquired; 159 mutable bool m_formatAcquired;
162 }; 160 };
163 161
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 virtual PassOwnPtr<Vector<unsigned> > lineEndings() const; 221 virtual PassOwnPtr<Vector<unsigned> > lineEndings() const;
224 222
225 private: 223 private:
226 friend class InspectorStyle; 224 friend class InspectorStyle;
227 225
228 bool checkPageStyleSheet(ExceptionState&) const; 226 bool checkPageStyleSheet(ExceptionState&) const;
229 bool ensureText() const; 227 bool ensureText() const;
230 bool ensureSourceData(); 228 bool ensureSourceData();
231 void ensureFlatRules() const; 229 void ensureFlatRules() const;
232 bool styleSheetTextWithChangedStyle(CSSStyleDeclaration*, const String& newS tyleText, String* result); 230 bool styleSheetTextWithChangedStyle(CSSStyleDeclaration*, const String& newS tyleText, String* result);
233 void revalidateStyle(CSSStyleDeclaration*);
234 bool originalStyleSheetText(String* result) const; 231 bool originalStyleSheetText(String* result) const;
235 bool resourceStyleSheetText(String* result) const; 232 bool resourceStyleSheetText(String* result) const;
236 bool inlineStyleSheetText(String* result) const; 233 bool inlineStyleSheetText(String* result) const;
237 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::Selector> > selectorsFromSou rce(const CSSRuleSourceData*, const String&) const; 234 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::Selector> > selectorsFromSou rce(const CSSRuleSourceData*, const String&) const;
238 PassRefPtr<TypeBuilder::CSS::SelectorList> buildObjectForSelectorList(CSSSty leRule*); 235 PassRefPtr<TypeBuilder::CSS::SelectorList> buildObjectForSelectorList(CSSSty leRule*);
239 String url() const; 236 String url() const;
240 bool hasSourceURL() const; 237 bool hasSourceURL() const;
241 bool startsAtZero() const; 238 bool startsAtZero() const;
242 239
243 InspectorPageAgent* m_pageAgent; 240 InspectorPageAgent* m_pageAgent;
244 InspectorResourceAgent* m_resourceAgent; 241 InspectorResourceAgent* m_resourceAgent;
245 String m_id; 242 String m_id;
246 RefPtr<CSSStyleSheet> m_pageStyleSheet; 243 RefPtr<CSSStyleSheet> m_pageStyleSheet;
247 TypeBuilder::CSS::StyleSheetOrigin::Enum m_origin; 244 TypeBuilder::CSS::StyleSheetOrigin::Enum m_origin;
248 String m_documentURL; 245 String m_documentURL;
249 bool m_isRevalidating;
250 ParsedStyleSheet* m_parsedStyleSheet; 246 ParsedStyleSheet* m_parsedStyleSheet;
251 mutable CSSRuleVector m_flatRules; 247 mutable CSSRuleVector m_flatRules;
252 Listener* m_listener; 248 Listener* m_listener;
253 mutable String m_sourceURL; 249 mutable String m_sourceURL;
254 }; 250 };
255 251
256 class InspectorStyleSheetForInlineStyle FINAL : public InspectorStyleSheet { 252 class InspectorStyleSheetForInlineStyle FINAL : public InspectorStyleSheet {
257 public: 253 public:
258 static PassRefPtr<InspectorStyleSheetForInlineStyle> create(InspectorPageAge nt*, InspectorResourceAgent*, const String& id, PassRefPtr<Element>, TypeBuilder ::CSS::StyleSheetOrigin::Enum, Listener*); 254 static PassRefPtr<InspectorStyleSheetForInlineStyle> create(InspectorPageAge nt*, InspectorResourceAgent*, const String& id, PassRefPtr<Element>, TypeBuilder ::CSS::StyleSheetOrigin::Enum, Listener*);
259 255
(...skipping 30 matching lines...) Expand all
290 286
291 // Contains "style" attribute value. 287 // Contains "style" attribute value.
292 mutable String m_styleText; 288 mutable String m_styleText;
293 mutable bool m_isStyleTextValid; 289 mutable bool m_isStyleTextValid;
294 }; 290 };
295 291
296 292
297 } // namespace WebCore 293 } // namespace WebCore
298 294
299 #endif // !defined(InspectorStyleSheet_h) 295 #endif // !defined(InspectorStyleSheet_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698