| OLD | NEW |
| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 protected: | 237 protected: |
| 238 virtual PassRefPtr<InspectorStyle> inspectorStyleForId(const InspectorCSSId&
) OVERRIDE; | 238 virtual PassRefPtr<InspectorStyle> inspectorStyleForId(const InspectorCSSId&
) OVERRIDE; |
| 239 | 239 |
| 240 // Also accessed by friend class InspectorStyle. | 240 // Also accessed by friend class InspectorStyle. |
| 241 virtual PassRefPtr<CSSRuleSourceData> ruleSourceDataFor(CSSStyleDeclaration*
) const OVERRIDE; | 241 virtual PassRefPtr<CSSRuleSourceData> ruleSourceDataFor(CSSStyleDeclaration*
) const OVERRIDE; |
| 242 virtual bool setStyleText(CSSStyleDeclaration*, const String&) OVERRIDE; | 242 virtual bool setStyleText(CSSStyleDeclaration*, const String&) OVERRIDE; |
| 243 virtual PassOwnPtr<Vector<unsigned> > lineEndings() const OVERRIDE; | 243 virtual PassOwnPtr<Vector<unsigned> > lineEndings() const OVERRIDE; |
| 244 virtual bool ensureParsedDataReady() OVERRIDE; | 244 virtual bool ensureParsedDataReady() OVERRIDE; |
| 245 | 245 |
| 246 private: | 246 private: |
| 247 InspectorStyleSheet(InspectorPageAgent*, InspectorResourceAgent*, const Stri
ng& id, PassRefPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::StyleSheetOr
igin::Enum, const String& documentURL, Listener*); | 247 InspectorStyleSheet(InspectorPageAgent*, InspectorResourceAgent*, const Stri
ng& id, PassRefPtrWillBeRawPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::
StyleSheetOrigin::Enum, const String& documentURL, Listener*); |
| 248 | 248 |
| 249 InspectorCSSId ruleIdByStyle(CSSStyleDeclaration*) const; | 249 InspectorCSSId ruleIdByStyle(CSSStyleDeclaration*) const; |
| 250 unsigned ruleIndexByStyle(CSSStyleDeclaration*) const; | 250 unsigned ruleIndexByStyle(CSSStyleDeclaration*) const; |
| 251 unsigned ruleIndexByRule(const CSSRule*) const; | 251 unsigned ruleIndexByRule(const CSSRule*) const; |
| 252 String sourceMapURL() const; | 252 String sourceMapURL() const; |
| 253 String sourceURL() const; | 253 String sourceURL() const; |
| 254 bool checkPageStyleSheet(ExceptionState&) const; | 254 bool checkPageStyleSheet(ExceptionState&) const; |
| 255 bool ensureText() const; | 255 bool ensureText() const; |
| 256 void ensureFlatRules() const; | 256 void ensureFlatRules() const; |
| 257 bool styleSheetTextWithChangedStyle(CSSStyleDeclaration*, const String& newS
tyleText, String* result); | 257 bool styleSheetTextWithChangedStyle(CSSStyleDeclaration*, const String& newS
tyleText, String* result); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 308 |
| 309 // Contains "style" attribute value. | 309 // Contains "style" attribute value. |
| 310 mutable String m_styleText; | 310 mutable String m_styleText; |
| 311 mutable bool m_isStyleTextValid; | 311 mutable bool m_isStyleTextValid; |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 | 314 |
| 315 } // namespace WebCore | 315 } // namespace WebCore |
| 316 | 316 |
| 317 #endif // !defined(InspectorStyleSheet_h) | 317 #endif // !defined(InspectorStyleSheet_h) |
| OLD | NEW |