Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: Source/core/xml/XMLTreeViewer.cpp

Issue 22150003: XMLTreeViewer should be created only in the XML viewer mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/xml/XMLTreeViewer.h ('k') | Source/core/xml/parser/XMLDocumentParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XMLTreeViewer.cpp
diff --git a/Source/core/xml/XMLTreeViewer.cpp b/Source/core/xml/XMLTreeViewer.cpp
index 4c9109b8c947db72d27075b3c0c61bdc0dab3b57..c8ce86e0bdee3e895b030950d8baa38d1b45446d 100644
--- a/Source/core/xml/XMLTreeViewer.cpp
+++ b/Source/core/xml/XMLTreeViewer.cpp
@@ -48,20 +48,6 @@ XMLTreeViewer::XMLTreeViewer(Document* document)
{
}
-bool XMLTreeViewer::hasNoStyleInformation() const
-{
- if (m_document->sawElementsInKnownNamespaces() || m_document->transformSourceDocument())
- return false;
-
- if (!m_document->frame() || !m_document->frame()->page())
- return false;
-
- if (m_document->frame()->tree()->parent())
- return false; // This document is not in a top frame
-
- return true;
-}
-
void XMLTreeViewer::transformDocumentToTreeView()
{
m_document->setIsViewSource(true);
« no previous file with comments | « Source/core/xml/XMLTreeViewer.h ('k') | Source/core/xml/parser/XMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698