| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 303 |
| 304 Settings* settings = firstFrame.settings(); | 304 Settings* settings = firstFrame.settings(); |
| 305 return settings && settings->javaScriptCanOpenWindowsAutomatically(); | 305 return settings && settings->javaScriptCanOpenWindowsAutomatically(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 bool DOMWindow::allowPopUp() | 308 bool DOMWindow::allowPopUp() |
| 309 { | 309 { |
| 310 return m_frame && allowPopUp(*m_frame); | 310 return m_frame && allowPopUp(*m_frame); |
| 311 } | 311 } |
| 312 | 312 |
| 313 bool DOMWindow::canShowModalDialog(const LocalFrame* frame) | |
| 314 { | |
| 315 if (!frame) | |
| 316 return false; | |
| 317 FrameHost* host = frame->host(); | |
| 318 if (!host) | |
| 319 return false; | |
| 320 return host->chrome().canRunModal(); | |
| 321 } | |
| 322 | |
| 323 bool DOMWindow::canShowModalDialogNow(const LocalFrame* frame) | 313 bool DOMWindow::canShowModalDialogNow(const LocalFrame* frame) |
| 324 { | 314 { |
| 325 if (!frame) | 315 if (!frame) |
| 326 return false; | 316 return false; |
| 327 FrameHost* host = frame->host(); | 317 FrameHost* host = frame->host(); |
| 328 if (!host) | 318 if (!host) |
| 329 return false; | 319 return false; |
| 330 return host->chrome().canRunModalNow(); | 320 return host->chrome().canRunModalNow(); |
| 331 } | 321 } |
| 332 | 322 |
| (...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1886 visitor->trace(m_media); | 1876 visitor->trace(m_media); |
| 1887 visitor->trace(m_sessionStorage); | 1877 visitor->trace(m_sessionStorage); |
| 1888 visitor->trace(m_localStorage); | 1878 visitor->trace(m_localStorage); |
| 1889 visitor->trace(m_applicationCache); | 1879 visitor->trace(m_applicationCache); |
| 1890 visitor->trace(m_performance); | 1880 visitor->trace(m_performance); |
| 1891 visitor->trace(m_css); | 1881 visitor->trace(m_css); |
| 1892 WillBeHeapSupplementable<DOMWindow>::trace(visitor); | 1882 WillBeHeapSupplementable<DOMWindow>::trace(visitor); |
| 1893 } | 1883 } |
| 1894 | 1884 |
| 1895 } // namespace WebCore | 1885 } // namespace WebCore |
| OLD | NEW |