| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class Document; | 46 class Document; |
| 47 class Element; | 47 class Element; |
| 48 class ExceptionState; | 48 class ExceptionState; |
| 49 class InspectorResourceAgent; | 49 class InspectorResourceAgent; |
| 50 class InspectorResourceContainer; | 50 class InspectorResourceContainer; |
| 51 class InspectorStyleSheetBase; | 51 class InspectorStyleSheetBase; |
| 52 | 52 |
| 53 typedef HeapVector<Member<CSSRule>> CSSRuleVector; | 53 typedef HeapVector<Member<CSSRule>> CSSRuleVector; |
| 54 typedef Vector<unsigned> LineEndings; | 54 typedef Vector<unsigned> LineEndings; |
| 55 | 55 |
| 56 class InspectorStyle final : public GarbageCollected<InspectorStyle> { | 56 class InspectorStyle final : public GarbageCollectedFinalized<InspectorStyle> { |
| 57 public: | 57 public: |
| 58 static InspectorStyle* create(CSSStyleDeclaration*, CSSRuleSourceData*, Insp
ectorStyleSheetBase* parentStyleSheet); | 58 static InspectorStyle* create(CSSStyleDeclaration*, CSSRuleSourceData*, Insp
ectorStyleSheetBase* parentStyleSheet); |
| 59 | 59 |
| 60 CSSStyleDeclaration* cssStyle() { return m_style.get(); } | 60 CSSStyleDeclaration* cssStyle() { return m_style.get(); } |
| 61 PassOwnPtr<protocol::CSS::CSSStyle> buildObjectForStyle(); | 61 PassOwnPtr<protocol::CSS::CSSStyle> buildObjectForStyle(); |
| 62 PassOwnPtr<protocol::Array<protocol::CSS::CSSComputedStyleProperty>> buildAr
rayForComputedStyle(); | 62 PassOwnPtr<protocol::Array<protocol::CSS::CSSComputedStyleProperty>> buildAr
rayForComputedStyle(); |
| 63 bool styleText(String* result); | 63 bool styleText(String* result); |
| 64 bool textForRange(const SourceRange&, String* result); | 64 bool textForRange(const SourceRange&, String* result); |
| 65 | 65 |
| 66 DECLARE_TRACE(); | 66 DECLARE_TRACE(); |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 InspectorStyleSheetForInlineStyle(Element*, Listener*); | 213 InspectorStyleSheetForInlineStyle(Element*, Listener*); |
| 214 const String& elementStyleText(); | 214 const String& elementStyleText(); |
| 215 | 215 |
| 216 Member<Element> m_element; | 216 Member<Element> m_element; |
| 217 Member<InspectorStyle> m_inspectorStyle; | 217 Member<InspectorStyle> m_inspectorStyle; |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 } // namespace blink | 220 } // namespace blink |
| 221 | 221 |
| 222 #endif // !defined(InspectorStyleSheet_h) | 222 #endif // !defined(InspectorStyleSheet_h) |
| OLD | NEW |