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

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

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/dom/Document.cpp ('k') | Source/core/html/HTMLDocument.cpp » ('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) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void removeNamedItem(const AtomicString& name); 70 void removeNamedItem(const AtomicString& name);
71 bool hasNamedItem(AtomicStringImpl* name); 71 bool hasNamedItem(AtomicStringImpl* name);
72 72
73 void addExtraNamedItem(const AtomicString& name); 73 void addExtraNamedItem(const AtomicString& name);
74 void removeExtraNamedItem(const AtomicString& name); 74 void removeExtraNamedItem(const AtomicString& name);
75 bool hasExtraNamedItem(AtomicStringImpl* name); 75 bool hasExtraNamedItem(AtomicStringImpl* name);
76 76
77 static bool isCaseSensitiveAttribute(const QualifiedName&); 77 static bool isCaseSensitiveAttribute(const QualifiedName&);
78 78
79 protected: 79 protected:
80 HTMLDocument(Frame*, const KURL&); 80 HTMLDocument(Frame*, const KURL&, unsigned extendedDocumentClass = DefaultDo cumentClass);
81 81
82 private: 82 private:
83 virtual PassRefPtr<Element> createElement(const AtomicString& tagName, Excep tionCode&); 83 virtual PassRefPtr<Element> createElement(const AtomicString& tagName, Excep tionCode&);
84 84
85 virtual bool isFrameSet() const; 85 virtual bool isFrameSet() const;
86 virtual PassRefPtr<DocumentParser> createParser(); 86 virtual PassRefPtr<DocumentParser> createParser();
87 87
88 void addItemToMap(HashCountedSet<AtomicStringImpl*>&, const AtomicString&); 88 void addItemToMap(HashCountedSet<AtomicStringImpl*>&, const AtomicString&);
89 void removeItemFromMap(HashCountedSet<AtomicStringImpl*>&, const AtomicStrin g&); 89 void removeItemFromMap(HashCountedSet<AtomicStringImpl*>&, const AtomicStrin g&);
90 90
(...skipping 24 matching lines...) Expand all
115 ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isHTMLDocument()); 115 ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isHTMLDocument());
116 return static_cast<const HTMLDocument*>(document); 116 return static_cast<const HTMLDocument*>(document);
117 } 117 }
118 118
119 // This will catch anyone doing an unnecessary cast. 119 // This will catch anyone doing an unnecessary cast.
120 void toHTMLDocument(const HTMLDocument*); 120 void toHTMLDocument(const HTMLDocument*);
121 121
122 } // namespace WebCore 122 } // namespace WebCore
123 123
124 #endif // HTMLDocument_h 124 #endif // HTMLDocument_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/HTMLDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698