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

Side by Side Diff: sky/engine/core/dom/DOMImplementation.cpp

Issue 697363002: Remove DOMImplementation. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
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/)
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
18 *
19 * You should have received a copy of the GNU Library General Public License
20 * along with this library; see the file COPYING.LIB. If not, write to
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
23 */
24
25 #include "config.h"
26 #include "core/dom/DOMImplementation.h"
27
28 #include "bindings/core/v8/ExceptionState.h"
29 #include "core/dom/DocumentInit.h"
30 #include "core/dom/Element.h"
31 #include "core/dom/ExceptionCode.h"
32 #include "core/dom/Text.h"
33 #include "core/dom/custom/CustomElementRegistrationContext.h"
34 #include "core/frame/LocalFrame.h"
35 #include "core/frame/UseCounter.h"
36 #include "core/html/HTMLDocument.h"
37 #include "core/page/Page.h"
38 #include "platform/ContentType.h"
39 #include "wtf/StdLibExtras.h"
40
41 namespace blink {
42
43 DOMImplementation::DOMImplementation(Document& document)
44 : m_document(document)
45 {
46 ScriptWrappable::init(this);
47 }
48
49 PassRefPtr<Document> DOMImplementation::createDocument()
50 {
51 // FIXME: Removing this function will require adding new API:
52 DocumentInit init = DocumentInit::fromContext(document().contextDocument())
53 .withRegistrationContext(document().registrationContext());
54 return HTMLDocument::create(init);
55 }
56
57 void DOMImplementation::trace(Visitor* visitor)
58 {
59 visitor->trace(m_document);
60 }
61
62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698