Index: Source/core/dom/StyleEngine.cpp |
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp |
index 1d9b331d7e4d70c42bb8bfc93e387026ee21412a..a9808b1c17be30fbf0109c233baf8da97f074be3 100644 |
--- a/Source/core/dom/StyleEngine.cpp |
+++ b/Source/core/dom/StyleEngine.cpp |
@@ -631,7 +631,7 @@ PassRefPtrWillBeRawPtr<CSSStyleSheet> StyleEngine::createSheet(Element* e, const |
PassRefPtrWillBeRawPtr<CSSStyleSheet> StyleEngine::parseSheet(Element* e, const String& text, TextPosition startPosition, bool createdByParser) |
{ |
RefPtrWillBeRawPtr<CSSStyleSheet> styleSheet = nullptr; |
- styleSheet = CSSStyleSheet::createInline(e, KURL(), startPosition, e->document().inputEncoding()); |
+ styleSheet = CSSStyleSheet::createInline(e, KURL(), startPosition, e->document().characterSet()); |
styleSheet->contents()->parseStringAtPosition(text, startPosition, createdByParser); |
return styleSheet; |
} |