Commit 2bf1a13b authored by Mason Freed's avatar Mason Freed Committed by Commit Bot

Remove the kViewSourceDocumentClass (unused) document class

It seems that the kDefaultDocumentClass should work just the same,
as nothing currently checks for kViewSourceDocumentClass.

Bug: 920571
Change-Id: I63088c00c0fa773f8c597f0f88768a984a6fc994
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2424628
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Reviewed-by: default avatarJoey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809519}
parent c600bdf7
......@@ -242,7 +242,6 @@ enum DocumentClass {
kMediaDocumentClass = 1 << 4,
kSVGDocumentClass = 1 << 5,
kXMLDocumentClass = 1 << 6,
kViewSourceDocumentClass = 1 << 7,
};
enum ShadowCascadeOrder {
......
......@@ -43,8 +43,7 @@
namespace blink {
HTMLViewSourceDocument::HTMLViewSourceDocument(const DocumentInit& initializer)
: HTMLDocument(initializer, kViewSourceDocumentClass),
type_(initializer.GetMimeType()) {
: HTMLDocument(initializer), type_(initializer.GetMimeType()) {
SetIsViewSource(true);
// FIXME: Why do view-source pages need to load in quirks mode?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment