Polish code for r189579.
[WebKit-https.git] / Source / WebCore / dom / Document.cpp
index be326f0fc5e6ae12c3c550c408b0dd1922504376..9192147d9c88a231a257b92166976f617ab18b94 100644 (file)
 #include "StyleSheetList.h"
 #include "SubresourceLoader.h"
 #include "TextNodeTraversal.h"
 #include "StyleSheetList.h"
 #include "SubresourceLoader.h"
 #include "TextNodeTraversal.h"
-#include "TextResourceDecoder.h"
 #include "TransformSource.h"
 #include "TreeWalker.h"
 #include "VisitedLinkState.h"
 #include "TransformSource.h"
 #include "TreeWalker.h"
 #include "VisitedLinkState.h"
@@ -1248,14 +1247,7 @@ void Document::setVisualUpdatesAllowedByClient(bool visualUpdatesAllowedByClient
         setVisualUpdatesAllowed(true);
 }
 
         setVisualUpdatesAllowed(true);
 }
 
-AtomicString Document::encoding() const
-{
-    if (TextResourceDecoder* d = decoder())
-        return d->encoding().domName();
-    return nullAtom;
-}
-
-String Document::characterSetForBindings() const
+String Document::characterSetWithUTF8Fallback() const
 {
     AtomicString name = encoding();
     if (!name.isNull())
 {
     AtomicString name = encoding();
     if (!name.isNull())