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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 } | 354 } |
355 | 355 |
356 void DOMWindow::clearEventQueue() | 356 void DOMWindow::clearEventQueue() |
357 { | 357 { |
358 if (!m_eventQueue) | 358 if (!m_eventQueue) |
359 return; | 359 return; |
360 m_eventQueue->close(); | 360 m_eventQueue->close(); |
361 m_eventQueue.clear(); | 361 m_eventQueue.clear(); |
362 } | 362 } |
363 | 363 |
| 364 void DOMWindow::acceptLanguagesChanged() |
| 365 { |
| 366 if (m_navigator) |
| 367 m_navigator->setLanguagesChanged(); |
| 368 |
| 369 dispatchEvent(Event::create(EventTypeNames::languagechange)); |
| 370 } |
| 371 |
364 PassRefPtr<Document> DOMWindow::createDocument(const String& mimeType, const Doc
umentInit& init, bool forceXHTML) | 372 PassRefPtr<Document> DOMWindow::createDocument(const String& mimeType, const Doc
umentInit& init, bool forceXHTML) |
365 { | 373 { |
366 RefPtr<Document> document; | 374 RefPtr<Document> document; |
367 if (forceXHTML) { | 375 if (forceXHTML) { |
368 // This is a hack for XSLTProcessor. See XSLTProcessor::createDocumentFr
omSource(). | 376 // This is a hack for XSLTProcessor. See XSLTProcessor::createDocumentFr
omSource(). |
369 document = Document::create(init); | 377 document = Document::create(init); |
370 } else { | 378 } else { |
371 document = DOMImplementation::createDocument(mimeType, init, init.frame(
) ? init.frame()->inViewSourceMode() : false); | 379 document = DOMImplementation::createDocument(mimeType, init, init.frame(
) ? init.frame()->inViewSourceMode() : false); |
372 if (document->isPluginDocument() && document->isSandboxed(SandboxPlugins
)) | 380 if (document->isPluginDocument() && document->isSandboxed(SandboxPlugins
)) |
373 document = SinkDocument::create(init); | 381 document = SinkDocument::create(init); |
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1865 visitor->trace(m_media); | 1873 visitor->trace(m_media); |
1866 visitor->trace(m_sessionStorage); | 1874 visitor->trace(m_sessionStorage); |
1867 visitor->trace(m_localStorage); | 1875 visitor->trace(m_localStorage); |
1868 visitor->trace(m_applicationCache); | 1876 visitor->trace(m_applicationCache); |
1869 visitor->trace(m_performance); | 1877 visitor->trace(m_performance); |
1870 visitor->trace(m_css); | 1878 visitor->trace(m_css); |
1871 WillBeHeapSupplementable<DOMWindow>::trace(visitor); | 1879 WillBeHeapSupplementable<DOMWindow>::trace(visitor); |
1872 } | 1880 } |
1873 | 1881 |
1874 } // namespace WebCore | 1882 } // namespace WebCore |
OLD | NEW |