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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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) |
OLD | NEW |