OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
11 * 2. Redistributions in binary form must reproduce the above copyright | 11 * 2. Redistributions in binary form must reproduce the above copyright |
12 * notice, this list of conditions and the following disclaimer in the | 12 * notice, this list of conditions and the following disclaimer in the |
13 * documentation and/or other materials provided with the distribution. | 13 * documentation and/or other materials provided with the distribution. |
14 * | 14 * |
15 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY | 15 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
18 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY | 18 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "Internals.h" | 28 #include "Internals.h" |
29 | 29 |
30 #include "ClientRect.h" | |
31 #include "ClientRectList.h" | |
32 #include "ComposedShadowTreeWalker.h" | |
33 #include "ContentDistributor.h" | 30 #include "ContentDistributor.h" |
34 #include "DOMStringList.h" | |
35 #include "Document.h" | |
36 #include "DocumentMarker.h" | |
37 #include "DocumentMarkerController.h" | |
38 #include "Element.h" | |
39 #include "ElementShadow.h" | |
40 #include "ExceptionCode.h" | |
41 #include "FormController.h" | 31 #include "FormController.h" |
42 #include "HTMLContentElement.h" | 32 #include "HTMLContentElement.h" |
43 #include "HTMLInputElement.h" | 33 #include "HTMLInputElement.h" |
44 #include "HTMLMediaElement.h" | 34 #include "HTMLMediaElement.h" |
45 #include "HTMLNames.h" | 35 #include "HTMLNames.h" |
46 #include "HTMLSelectElement.h" | 36 #include "HTMLSelectElement.h" |
47 #include "HTMLTextAreaElement.h" | 37 #include "HTMLTextAreaElement.h" |
48 #include "InspectorClient.h" | 38 #include "InspectorClient.h" |
49 #include "InspectorConsoleAgent.h" | 39 #include "InspectorConsoleAgent.h" |
50 #include "InspectorController.h" | 40 #include "InspectorController.h" |
51 #include "InspectorCounters.h" | 41 #include "InspectorCounters.h" |
52 #include "InspectorFrontendChannel.h" | 42 #include "InspectorFrontendChannel.h" |
53 #include "InspectorFrontendClientLocal.h" | 43 #include "InspectorFrontendClientLocal.h" |
54 #include "InspectorInstrumentation.h" | 44 #include "InspectorInstrumentation.h" |
55 #include "InspectorOverlay.h" | 45 #include "InspectorOverlay.h" |
56 #include "InstrumentingAgents.h" | 46 #include "InstrumentingAgents.h" |
57 #include "InternalSettings.h" | 47 #include "InternalSettings.h" |
58 #include "MallocStatistics.h" | 48 #include "MallocStatistics.h" |
59 #include "MockPagePopupDriver.h" | 49 #include "MockPagePopupDriver.h" |
60 #include "NodeRenderingContext.h" | |
61 #include "PseudoElement.h" | |
62 #include "Range.h" | |
63 #include "SelectRuleFeatureSet.h" | 50 #include "SelectRuleFeatureSet.h" |
64 #include "SerializedScriptValue.h" | 51 #include "SerializedScriptValue.h" |
65 #include "ShadowRoot.h" | |
66 #include "TreeScope.h" | |
67 #include "TypeConversions.h" | 52 #include "TypeConversions.h" |
68 #include "ViewportArguments.h" | |
69 #include "WorkerThread.h" | 53 #include "WorkerThread.h" |
70 #include "core/css/StyleSheetContents.h" | 54 #include "core/css/StyleSheetContents.h" |
| 55 #include "core/dom/ClientRect.h" |
| 56 #include "core/dom/ClientRectList.h" |
| 57 #include "core/dom/ComposedShadowTreeWalker.h" |
| 58 #include "core/dom/DOMStringList.h" |
| 59 #include "core/dom/Document.h" |
| 60 #include "core/dom/DocumentMarker.h" |
| 61 #include "core/dom/DocumentMarkerController.h" |
| 62 #include "core/dom/Element.h" |
| 63 #include "core/dom/ElementShadow.h" |
| 64 #include "core/dom/ExceptionCode.h" |
| 65 #include "core/dom/NodeRenderingContext.h" |
| 66 #include "core/dom/PseudoElement.h" |
| 67 #include "core/dom/Range.h" |
| 68 #include "core/dom/ShadowRoot.h" |
71 #include "core/dom/StaticNodeList.h" | 69 #include "core/dom/StaticNodeList.h" |
| 70 #include "core/dom/TreeScope.h" |
| 71 #include "core/dom/ViewportArguments.h" |
72 #include "core/editing/Editor.h" | 72 #include "core/editing/Editor.h" |
73 #include "core/editing/SpellChecker.h" | 73 #include "core/editing/SpellChecker.h" |
74 #include "core/editing/TextIterator.h" | 74 #include "core/editing/TextIterator.h" |
75 #include "core/history/BackForwardController.h" | 75 #include "core/history/BackForwardController.h" |
76 #include "core/history/HistoryItem.h" | 76 #include "core/history/HistoryItem.h" |
77 #include "core/loader/FrameLoader.h" | 77 #include "core/loader/FrameLoader.h" |
78 #include "core/loader/cache/CachedResourceLoader.h" | 78 #include "core/loader/cache/CachedResourceLoader.h" |
79 #include "core/loader/cache/MemoryCache.h" | 79 #include "core/loader/cache/MemoryCache.h" |
80 #include "core/page/Chrome.h" | 80 #include "core/page/Chrome.h" |
81 #include "core/page/ChromeClient.h" | 81 #include "core/page/ChromeClient.h" |
(...skipping 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1995 | 1995 |
1996 RenderObject* renderer = select->renderer(); | 1996 RenderObject* renderer = select->renderer(); |
1997 if (!renderer->isMenuList()) | 1997 if (!renderer->isMenuList()) |
1998 return false; | 1998 return false; |
1999 | 1999 |
2000 RenderMenuList* menuList = toRenderMenuList(renderer); | 2000 RenderMenuList* menuList = toRenderMenuList(renderer); |
2001 return menuList->popupIsVisible(); | 2001 return menuList->popupIsVisible(); |
2002 } | 2002 } |
2003 | 2003 |
2004 } | 2004 } |
OLD | NEW |