Changeset 56412 in webkit
- Timestamp:
- Mar 23, 2010 1:48:19 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r56411 r56412 1 2010-03-23 Darin Adler <darin@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Reduce and straighten internal use of DOMImplementation 6 https://bugs.webkit.org/show_bug.cgi?id=36501 7 8 * WebCore.xcodeproj/project.pbxproj: Xcode decided to 9 re-sort this file. 10 11 * dom/Clipboard.cpp: Removed unneeded include of DOMImplementation.h. 12 13 * dom/DOMImplementation.cpp: Removed unneeded createDocument and 14 createHTMLDocument functions. These should be done directly instead 15 of involving the DOMImplementation class. 16 * dom/DOMImplementation.h: Ditto. 17 18 * dom/DocumentType.cpp: Removed unneeded include of DOMImplementation.h. 19 20 * html/HTMLViewSourceDocument.cpp: 21 (WebCore::HTMLViewSourceDocument::createTokenizer): Don't allocate a 22 DOMImplementation object just to use a class member function. 23 24 * loader/CachedFont.cpp: Removed unneeded include of DOMImplementation.h. 25 26 * xml/XMLHttpRequest.cpp: 27 (WebCore::XMLHttpRequest::responseXML): Use Document::create to create a 28 new document instead of involving DOMImplementation. 29 * xml/XSLTProcessor.cpp: 30 (WebCore::XSLTProcessor::createDocumentFromSource): Ditto. And in the case 31 where we do need to call DOMImplementation to interpret the MIME type, 32 don't allocate a DOMImplementation object just to use a class member 33 function. 34 1 35 2010-03-23 Luiz Agostini <luiz.agostini@openbossa.org> 2 36 -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r56394 r56412 2488 2488 9F72305011184B4100AD0126 /* ScriptProfiler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9F72304D11184B4100AD0126 /* ScriptProfiler.cpp */; }; 2489 2489 9F72305111184B4100AD0126 /* ScriptProfiler.h in Headers */ = {isa = PBXBuildFile; fileRef = 9F72304E11184B4100AD0126 /* ScriptProfiler.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2490 A136A00C1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A136A00A1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.cpp */; }; 2491 A136A00D1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.h in Headers */ = {isa = PBXBuildFile; fileRef = A136A00B1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.h */; }; 2490 2492 A17C81220F2A5CF7005DAAEB /* HTMLElementFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A17C81200F2A5CF7005DAAEB /* HTMLElementFactory.cpp */; }; 2491 2493 A17C81230F2A5CF7005DAAEB /* HTMLElementFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = A17C81210F2A5CF7005DAAEB /* HTMLElementFactory.h */; }; … … 4396 4398 BC772C460C4EB2C60083285F /* XMLHttpRequest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC772C440C4EB2C60083285F /* XMLHttpRequest.cpp */; }; 4397 4399 BC772C470C4EB2C60083285F /* XMLHttpRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = BC772C450C4EB2C60083285F /* XMLHttpRequest.h */; }; 4398 A136A00C1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A136A00A1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.cpp */; };4399 A136A00D1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.h in Headers */ = {isa = PBXBuildFile; fileRef = A136A00B1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.h */; };4400 4400 BC772C4E0C4EB3040083285F /* MIMETypeRegistry.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC772C4C0C4EB3040083285F /* MIMETypeRegistry.cpp */; }; 4401 4401 BC772C4F0C4EB3040083285F /* MIMETypeRegistry.h in Headers */ = {isa = PBXBuildFile; fileRef = BC772C4D0C4EB3040083285F /* MIMETypeRegistry.h */; settings = {ATTRIBUTES = (Private, ); }; }; -
trunk/WebCore/dom/Clipboard.cpp
r55977 r56412 28 28 29 29 #include "CachedImage.h" 30 #include "DOMImplementation.h"31 30 #include "Frame.h" 32 31 #include "FrameLoader.h" -
trunk/WebCore/dom/DOMImplementation.cpp
r55449 r56412 274 274 } 275 275 276 PassRefPtr<Document> DOMImplementation::createDocument(Frame* frame)277 {278 return Document::create(frame);279 }280 281 PassRefPtr<HTMLDocument> DOMImplementation::createHTMLDocument(Frame* frame)282 {283 return HTMLDocument::create(frame);284 }285 286 276 bool DOMImplementation::isXMLMIMEType(const String& mimeType) 287 277 { -
trunk/WebCore/dom/DOMImplementation.h
r34574 r56412 58 58 // Other methods (not part of DOM) 59 59 static PassRefPtr<Document> createDocument(const String& MIMEType, Frame*, bool inViewSourceMode); 60 static PassRefPtr<Document> createDocument(Frame*);61 static PassRefPtr<HTMLDocument> createHTMLDocument(Frame*);62 60 63 61 static bool isXMLMIMEType(const String& MIMEType); -
trunk/WebCore/dom/DocumentType.cpp
r47313 r56412 24 24 #include "DocumentType.h" 25 25 26 #include "DOMImplementation.h"27 26 #include "Document.h" 28 27 #include "NamedNodeMap.h" -
trunk/WebCore/html/HTMLViewSourceDocument.cpp
r47688 r56412 55 55 { 56 56 // Use HTMLTokenizer if applicable, otherwise use TextTokenizer. 57 if (m_type == "text/html" || m_type == "application/xhtml+xml" || m_type == "image/svg+xml" || implementation()->isXMLMIMEType(m_type)57 if (m_type == "text/html" || m_type == "application/xhtml+xml" || m_type == "image/svg+xml" || DOMImplementation::isXMLMIMEType(m_type) 58 58 #if ENABLE(XHTMLMP) 59 59 || m_type == "application/vnd.wap.xhtml+xml" -
trunk/WebCore/loader/CachedFont.cpp
r55643 r56412 35 35 #include "CachedResourceClient.h" 36 36 #include "CachedResourceClientWalker.h" 37 #include "DOMImplementation.h"38 37 #include "FontPlatformData.h" 39 38 #include "SharedBuffer.h" -
trunk/WebCore/xml/XMLHttpRequest.cpp
r56394 r56412 217 217 m_responseXML = 0; 218 218 } else { 219 m_responseXML = document()->implementation()->createDocument(0);219 m_responseXML = Document::create(0); 220 220 m_responseXML->open(); 221 221 m_responseXML->setURL(m_url); -
trunk/WebCore/xml/XSLTProcessor.cpp
r55633 r56412 70 70 RefPtr<Document> result; 71 71 if (sourceMIMEType == "text/plain") { 72 result = ownerDocument->implementation()->createDocument(frame);72 result = Document::create(frame); 73 73 transformTextStringToXHTMLDocumentString(documentSource); 74 74 } else 75 result = ownerDocument->implementation()->createDocument(sourceMIMEType, frame, false);75 result = DOMImplementation::createDocument(sourceMIMEType, frame, false); 76 76 77 77 // Before parsing, we need to save & detach the old document and get the new document
Note: See TracChangeset
for help on using the changeset viewer.