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. |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 delete s_pagePopupDriver; | 188 delete s_pagePopupDriver; |
189 s_pagePopupDriver = 0; | 189 s_pagePopupDriver = 0; |
190 page->chrome().client()->resetPagePopupDriver(); | 190 page->chrome().client()->resetPagePopupDriver(); |
191 if (!page->mainFrame()->editor()->isContinuousSpellCheckingEnabled()) | 191 if (!page->mainFrame()->editor()->isContinuousSpellCheckingEnabled()) |
192 page->mainFrame()->editor()->toggleContinuousSpellChecking(); | 192 page->mainFrame()->editor()->toggleContinuousSpellChecking(); |
193 if (page->mainFrame()->editor()->isOverwriteModeEnabled()) | 193 if (page->mainFrame()->editor()->isOverwriteModeEnabled()) |
194 page->mainFrame()->editor()->toggleOverwriteModeEnabled(); | 194 page->mainFrame()->editor()->toggleOverwriteModeEnabled(); |
195 } | 195 } |
196 | 196 |
197 Internals::Internals(Document* document) | 197 Internals::Internals(Document* document) |
198 : ContextDestructionObserver(document) | 198 : ContextLifecycleObserver(document) |
199 , m_runtimeFlags(InternalRuntimeFlags::create()) | 199 , m_runtimeFlags(InternalRuntimeFlags::create()) |
200 { | 200 { |
201 } | 201 } |
202 | 202 |
203 Document* Internals::contextDocument() const | 203 Document* Internals::contextDocument() const |
204 { | 204 { |
205 return toDocument(scriptExecutionContext()); | 205 return toDocument(scriptExecutionContext()); |
206 } | 206 } |
207 | 207 |
208 Frame* Internals::frame() const | 208 Frame* Internals::frame() const |
(...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1946 | 1946 |
1947 RenderObject* renderer = select->renderer(); | 1947 RenderObject* renderer = select->renderer(); |
1948 if (!renderer->isMenuList()) | 1948 if (!renderer->isMenuList()) |
1949 return false; | 1949 return false; |
1950 | 1950 |
1951 RenderMenuList* menuList = toRenderMenuList(renderer); | 1951 RenderMenuList* menuList = toRenderMenuList(renderer); |
1952 return menuList->popupIsVisible(); | 1952 return menuList->popupIsVisible(); |
1953 } | 1953 } |
1954 | 1954 |
1955 } | 1955 } |
OLD | NEW |