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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2242743002: Make custom elements work in HTML imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses tkent's comments. Created 4 years, 3 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
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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
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 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 bool isTemplateDocument() const { return !!m_templateDocumentHost; } 1005 bool isTemplateDocument() const { return !!m_templateDocumentHost; }
1006 Document& ensureTemplateDocument(); 1006 Document& ensureTemplateDocument();
1007 Document* templateDocumentHost() { return m_templateDocumentHost; } 1007 Document* templateDocumentHost() { return m_templateDocumentHost; }
1008 1008
1009 // TODO(thestig): Rename these and related functions, since we can call them 1009 // TODO(thestig): Rename these and related functions, since we can call them
1010 // for controls outside of forms as well. 1010 // for controls outside of forms as well.
1011 void didAssociateFormControl(Element*); 1011 void didAssociateFormControl(Element*);
1012 1012
1013 void addConsoleMessage(ConsoleMessage*) final; 1013 void addConsoleMessage(ConsoleMessage*) final;
1014 1014
1015 LocalDOMWindow* executingWindow() final; 1015 LocalDOMWindow* executingWindow() const final;
1016 LocalFrame* executingFrame(); 1016 LocalFrame* executingFrame();
1017 1017
1018 DocumentLifecycle& lifecycle() { return m_lifecycle; } 1018 DocumentLifecycle& lifecycle() { return m_lifecycle; }
1019 bool isActive() const { return m_lifecycle.isActive(); } 1019 bool isActive() const { return m_lifecycle.isActive(); }
1020 bool isDetached() const { return m_lifecycle.state() >= DocumentLifecycle::S topping; } 1020 bool isDetached() const { return m_lifecycle.state() >= DocumentLifecycle::S topping; }
1021 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St opped; } 1021 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St opped; }
1022 1022
1023 enum HttpRefreshType { 1023 enum HttpRefreshType {
1024 HttpRefreshFromHeader, 1024 HttpRefreshFromHeader,
1025 HttpRefreshFromMetaTag 1025 HttpRefreshFromMetaTag
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1460 1460
1461 } // namespace blink 1461 } // namespace blink
1462 1462
1463 #ifndef NDEBUG 1463 #ifndef NDEBUG
1464 // Outside the WebCore namespace for ease of invocation from gdb. 1464 // Outside the WebCore namespace for ease of invocation from gdb.
1465 CORE_EXPORT void showLiveDocumentInstances(); 1465 CORE_EXPORT void showLiveDocumentInstances();
1466 #endif 1466 #endif
1467 1467
1468 #endif // Document_h 1468 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698