Index: Source/core/page/PageSerializer.cpp |
diff --git a/Source/core/page/PageSerializer.cpp b/Source/core/page/PageSerializer.cpp |
index ec229714753560373a1adcddc08a62cbdd43bd55..cbcf0d2a645705b641d623ee60f3e1e21c7b9609 100644 |
--- a/Source/core/page/PageSerializer.cpp |
+++ b/Source/core/page/PageSerializer.cpp |
@@ -54,7 +54,7 @@ |
#include "core/html/HTMLInputElement.h" |
#include "core/html/HTMLLinkElement.h" |
#include "core/html/HTMLStyleElement.h" |
-#include "core/html/parser/HTMLParserIdioms.h" |
+#include "core/html/parser/HTMLMetaCharsetParser.h" |
#include "core/page/Page.h" |
#include "core/rendering/RenderImage.h" |
#include "core/rendering/style/StyleFetchedImage.h" |
@@ -76,15 +76,15 @@ static bool isCharsetSpecifyingNode(Node* node) |
HTMLElement* element = toHTMLElement(node); |
if (!element->hasTagName(HTMLNames::metaTag)) |
return false; |
- HTMLAttributeList attributes; |
+ HTMLMetaCharsetParser::AttributeList attributes; |
if (element->hasAttributes()) { |
for (unsigned i = 0; i < element->attributeCount(); ++i) { |
const Attribute* attribute = element->attributeItem(i); |
// FIXME: We should deal appropriately with the attribute if they have a namespace. |
- attributes.append(std::make_pair(attribute->name().localName(), attribute->value().string())); |
+ attributes.append(std::make_pair(attribute->name().toString(), attribute->value().string())); |
} |
} |
- WTF::TextEncoding textEncoding = encodingFromMetaAttributes(attributes); |
+ WTF::TextEncoding textEncoding = HTMLMetaCharsetParser::encodingFromMetaAttributes(attributes); |
return textEncoding.isValid(); |
} |