OLD | NEW |
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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 // |rootStyle| is set, use that as the style for the root element, rather than | 896 // |rootStyle| is set, use that as the style for the root element, rather than |
897 // obtaining it on our own. The reason for this is that style may not have | 897 // obtaining it on our own. The reason for this is that style may not have |
898 // been associated with the elements yet - in which case it may have been | 898 // been associated with the elements yet - in which case it may have been |
899 // calculated on the fly (without associating it with the actual element) | 899 // calculated on the fly (without associating it with the actual element) |
900 // somewhere. | 900 // somewhere. |
901 Element* viewportDefiningElement( | 901 Element* viewportDefiningElement( |
902 const ComputedStyle* rootStyle = nullptr) const; | 902 const ComputedStyle* rootStyle = nullptr) const; |
903 | 903 |
904 DocumentMarkerController& markers() const { return *m_markers; } | 904 DocumentMarkerController& markers() const { return *m_markers; } |
905 | 905 |
| 906 // Support for Javascript execCommand, and related methods |
| 907 // See "core/editing/commands/DocumentExecCommand.cpp" for implementations. |
906 bool execCommand(const String& command, | 908 bool execCommand(const String& command, |
907 bool showUI, | 909 bool showUI, |
908 const String& value, | 910 const String& value, |
909 ExceptionState&); | 911 ExceptionState&); |
910 bool isRunningExecCommand() const { return m_isRunningExecCommand; } | 912 bool isRunningExecCommand() const { return m_isRunningExecCommand; } |
911 bool queryCommandEnabled(const String& command, ExceptionState&); | 913 bool queryCommandEnabled(const String& command, ExceptionState&); |
912 bool queryCommandIndeterm(const String& command, ExceptionState&); | 914 bool queryCommandIndeterm(const String& command, ExceptionState&); |
913 bool queryCommandState(const String& command, ExceptionState&); | 915 bool queryCommandState(const String& command, ExceptionState&); |
914 bool queryCommandSupported(const String& command, ExceptionState&); | 916 bool queryCommandSupported(const String& command, ExceptionState&); |
915 String queryCommandValue(const String& command, ExceptionState&); | 917 String queryCommandValue(const String& command, ExceptionState&); |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1718 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1720 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1719 | 1721 |
1720 } // namespace blink | 1722 } // namespace blink |
1721 | 1723 |
1722 #ifndef NDEBUG | 1724 #ifndef NDEBUG |
1723 // Outside the WebCore namespace for ease of invocation from gdb. | 1725 // Outside the WebCore namespace for ease of invocation from gdb. |
1724 CORE_EXPORT void showLiveDocumentInstances(); | 1726 CORE_EXPORT void showLiveDocumentInstances(); |
1725 #endif | 1727 #endif |
1726 | 1728 |
1727 #endif // Document_h | 1729 #endif // Document_h |
OLD | NEW |