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

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

Issue 703193004: XSLT-in-PrivateScript (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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
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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 Document* parentDocument() const; 806 Document* parentDocument() const;
807 Document& topDocument() const; 807 Document& topDocument() const;
808 WeakPtrWillBeRawPtr<Document> contextDocument(); 808 WeakPtrWillBeRawPtr<Document> contextDocument();
809 809
810 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } 810 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); }
811 811
812 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : nullptr; } 812 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : nullptr; }
813 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>); 813 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>);
814 void popCurrentScript(); 814 void popCurrentScript();
815 815
816 void applyXSLTransform(ProcessingInstruction* pi);
817 PassRefPtrWillBeRawPtr<Document> transformSourceDocument() { return m_transf ormSourceDocument; }
818 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument = doc; }
819
820 void setTransformSource(PassOwnPtr<TransformSource>); 816 void setTransformSource(PassOwnPtr<TransformSource>);
821 TransformSource* transformSource() const { return m_transformSource.get(); } 817 TransformSource* transformSource() const { return m_transformSource.get(); }
822 818
823 void incDOMTreeVersion() { ASSERT(m_lifecycle.stateAllowsTreeMutations()); m _domTreeVersion = ++s_globalTreeVersion; } 819 void incDOMTreeVersion() { ASSERT(m_lifecycle.stateAllowsTreeMutations()); m _domTreeVersion = ++s_globalTreeVersion; }
824 uint64_t domTreeVersion() const { return m_domTreeVersion; } 820 uint64_t domTreeVersion() const { return m_domTreeVersion; }
825 821
826 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe ets, IgnoreLayoutWithPendingSheets }; 822 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe ets, IgnoreLayoutWithPendingSheets };
827 823
828 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout = = DidLayoutWithPendingSheets; } 824 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout = = DidLayoutWithPendingSheets; }
829 bool ignoreLayoutWithPendingStylesheets() const { return m_pendingSheetLayou t == IgnoreLayoutWithPendingSheets; } 825 bool ignoreLayoutWithPendingStylesheets() const { return m_pendingSheetLayou t == IgnoreLayoutWithPendingSheets; }
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1418 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1423 1419
1424 } // namespace blink 1420 } // namespace blink
1425 1421
1426 #ifndef NDEBUG 1422 #ifndef NDEBUG
1427 // Outside the WebCore namespace for ease of invocation from gdb. 1423 // Outside the WebCore namespace for ease of invocation from gdb.
1428 void showLiveDocumentInstances(); 1424 void showLiveDocumentInstances();
1429 #endif 1425 #endif
1430 1426
1431 #endif // Document_h 1427 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698