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

Side by Side Diff: Source/core/html/HTMLDocument.cpp

Issue 14839007: Devirtualize Document class type checking (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Try again Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLDocument.h ('k') | Source/core/html/ImageDocument.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #include "core/page/Page.h" 74 #include "core/page/Page.h"
75 #include "core/page/Settings.h" 75 #include "core/page/Settings.h"
76 #include "core/platform/HashTools.h" 76 #include "core/platform/HashTools.h"
77 #include "core/platform/KURL.h" 77 #include "core/platform/KURL.h"
78 #include <wtf/text/CString.h> 78 #include <wtf/text/CString.h>
79 79
80 namespace WebCore { 80 namespace WebCore {
81 81
82 using namespace HTMLNames; 82 using namespace HTMLNames;
83 83
84 HTMLDocument::HTMLDocument(Frame* frame, const KURL& url) 84 HTMLDocument::HTMLDocument(Frame* frame, const KURL& url, unsigned extendedDocum entClass)
85 : Document(frame, url, false, true) 85 : Document(frame, url, HTMLDocumentClass | extendedDocumentClass)
86 { 86 {
87 ScriptWrappable::init(this); 87 ScriptWrappable::init(this);
88 clearXMLVersion(); 88 clearXMLVersion();
89 } 89 }
90 90
91 HTMLDocument::~HTMLDocument() 91 HTMLDocument::~HTMLDocument()
92 { 92 {
93 } 93 }
94 94
95 int HTMLDocument::width() 95 int HTMLDocument::width()
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 // But I do see it in the documentation for Mozilla. 400 // But I do see it in the documentation for Mozilla.
401 } 401 }
402 402
403 bool HTMLDocument::isFrameSet() const 403 bool HTMLDocument::isFrameSet() const
404 { 404 {
405 HTMLElement* bodyElement = body(); 405 HTMLElement* bodyElement = body();
406 return bodyElement && bodyElement->hasTagName(framesetTag); 406 return bodyElement && bodyElement->hasTagName(framesetTag);
407 } 407 }
408 408
409 } 409 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDocument.h ('k') | Source/core/html/ImageDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698