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

Side by Side Diff: Source/WebCore/dom/DOMImplementation.cpp

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/WebCore/dom/CustomEvent.cpp ('k') | Source/WebCore/dom/DOMStringMap.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 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) 6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org)
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // addString(events3Features, "WheelEvents"); 228 // addString(events3Features, "WheelEvents");
229 initialized = true; 229 initialized = true;
230 } 230 }
231 // FIXME: We do not yet support Events 3 "extended feature strings". 231 // FIXME: We do not yet support Events 3 "extended feature strings".
232 return events3Features.contains(feature); 232 return events3Features.contains(feature);
233 } 233 }
234 234
235 DOMImplementation::DOMImplementation(Document* document) 235 DOMImplementation::DOMImplementation(Document* document)
236 : m_document(document) 236 : m_document(document)
237 { 237 {
238 ScriptWrappable::init(this);
238 } 239 }
239 240
240 bool DOMImplementation::hasFeature(const String& feature, const String& version) 241 bool DOMImplementation::hasFeature(const String& feature, const String& version)
241 { 242 {
242 String lower = feature.lower(); 243 String lower = feature.lower();
243 if (lower == "core" || lower == "html" || lower == "xml" || lower == "xhtml" ) 244 if (lower == "core" || lower == "html" || lower == "xml" || lower == "xhtml" )
244 return version.isEmpty() || version == "1.0" || version == "2.0"; 245 return version.isEmpty() || version == "1.0" || version == "2.0";
245 if (lower == "css" 246 if (lower == "css"
246 || lower == "css2" 247 || lower == "css2"
247 || lower == "range" 248 || lower == "range"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 if (type == "image/svg+xml") 421 if (type == "image/svg+xml")
421 return SVGDocument::create(frame, url); 422 return SVGDocument::create(frame, url);
422 #endif 423 #endif
423 if (isXMLMIMEType(type)) 424 if (isXMLMIMEType(type))
424 return Document::create(frame, url); 425 return Document::create(frame, url);
425 426
426 return HTMLDocument::create(frame, url); 427 return HTMLDocument::create(frame, url);
427 } 428 }
428 429
429 } 430 }
OLDNEW
« no previous file with comments | « Source/WebCore/dom/CustomEvent.cpp ('k') | Source/WebCore/dom/DOMStringMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698