Index: Source/core/xml/parser/XMLDocumentParser.cpp |
diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp |
index 531e397b7eddf871ba1add52cc4876c270b0355e..52f2c1fce15bf4520ff6ff3dccc9996b643dc919 100644 |
--- a/Source/core/xml/parser/XMLDocumentParser.cpp |
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp |
@@ -1507,6 +1507,11 @@ xmlDocPtr xmlDocPtrForString(ResourceFetcher* fetcher, const String& source, con |
return xmlReadMemory(input.data(), input.size(), url.latin1().data(), input.encoding(), XSLT_PARSE_OPTIONS); |
} |
+bool XMLDocumentParser::hasLineNumber() const |
+{ |
+ return true; |
rmcilroy
2014/12/12 14:18:31
maybe return isParsing()?
pfeldman
2014/12/12 17:21:06
Done, all necessary checks are in ScriptableDocume
|
+} |
+ |
OrdinalNumber XMLDocumentParser::lineNumber() const |
{ |
return OrdinalNumber::fromOneBasedInt(context() ? context()->input->line : 1); |