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, 2011, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
(...skipping 16 matching lines...) Expand all Loading... |
27 * Boston, MA 02110-1301, USA. | 27 * Boston, MA 02110-1301, USA. |
28 */ | 28 */ |
29 | 29 |
30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
31 | 31 |
32 #include "core/editing/Editor.h" | 32 #include "core/editing/Editor.h" |
33 #include "core/events/ScopedEventQueue.h" | 33 #include "core/events/ScopedEventQueue.h" |
34 #include "core/html/TextControlElement.h" | 34 #include "core/html/TextControlElement.h" |
35 #include "core/inspector/ConsoleMessage.h" | 35 #include "core/inspector/ConsoleMessage.h" |
36 #include "platform/Histogram.h" | 36 #include "platform/Histogram.h" |
37 #include "wtf/AutoReset.h" | 37 #include "platform/wtf/AutoReset.h" |
38 #include "wtf/StdLibExtras.h" | 38 #include "platform/wtf/StdLibExtras.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 Editor::Command GetCommand(Document* document, const String& command_name) { | 44 Editor::Command GetCommand(Document* document, const String& command_name) { |
45 LocalFrame* frame = document->GetFrame(); | 45 LocalFrame* frame = document->GetFrame(); |
46 if (!frame || frame->GetDocument() != document) | 46 if (!frame || frame->GetDocument() != document) |
47 return Editor::Command(); | 47 return Editor::Command(); |
48 | 48 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 exception_state.ThrowDOMException( | 145 exception_state.ThrowDOMException( |
146 kInvalidStateError, | 146 kInvalidStateError, |
147 "queryCommandValue is only supported on HTML documents."); | 147 "queryCommandValue is only supported on HTML documents."); |
148 return ""; | 148 return ""; |
149 } | 149 } |
150 | 150 |
151 return GetCommand(this, command_name).Value(); | 151 return GetCommand(this, command_name).Value(); |
152 } | 152 } |
153 | 153 |
154 } // namespace blink | 154 } // namespace blink |
OLD | NEW |