Index: Source/core/inspector/InspectorStyleSheet.cpp |
diff --git a/Source/core/inspector/InspectorStyleSheet.cpp b/Source/core/inspector/InspectorStyleSheet.cpp |
index 6192e2d47bc59b2aa9f59a3a47944c182db982b5..08b92d94e0ed777012921e7620a0b8b99622cc16 100644 |
--- a/Source/core/inspector/InspectorStyleSheet.cpp |
+++ b/Source/core/inspector/InspectorStyleSheet.cpp |
@@ -1652,6 +1652,21 @@ void InspectorStyleSheetForInlineStyle::didModifyElementAttribute() |
m_ruleSourceData.clear(); |
} |
+void InspectorStyleSheetForInlineStyle::reparseStyleSheet(const String& text) |
+{ |
+ fireStyleSheetChanged(); |
+} |
+ |
+bool InspectorStyleSheetForInlineStyle::setText(const String& text, ExceptionState& exceptionState) |
+{ |
+ bool success = setStyleText(inlineStyle(), text); |
+ if (!success) { |
+ exceptionState.throwDOMException(SyntaxError, "Style sheet text is invalid."); |
+ return false; |
apavlov
2014/02/12 11:52:32
Collapse both returns into
return success;
lushnikov
2014/02/12 12:21:23
Done.
|
+ } |
+ return true; |
+} |
+ |
bool InspectorStyleSheetForInlineStyle::getText(String* result) const |
{ |
if (!m_isStyleTextValid) { |