webkit:qtwebkit.git
7 years ago2010-08-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
Laszlo Gombos [Wed, 18 Aug 2010 21:11:27 +0000 (21:11 +0000)]
2010-08-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Unreviewed, trivial Symbian build fix.

        [Qt] Remove unnecessary QtGui include from NotificationPresenterClientQt.cpp

        * WebCoreSupport/NotificationPresenterClientQt.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65629 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-24 Luiz Agostini <luiz.agostini@openbossa.org>
Luiz Agostini [Fri, 24 Sep 2010 21:54:25 +0000 (21:54 +0000)]
2010-09-24  Luiz Agostini  <luiz.agostini@openbossa.org>

        Reviewed by Kenneth Rohde Christiansen.

        Keep viewport information in Document
        https://bugs.webkit.org/show_bug.cgi?id=46385

        The viewport meta data (layout viewport, scale) needs to be set again when bringing
        back a page from the page cache. As the viewport metadata is only retrieved while parsing
        the document, we need to store it in the Document class.

        * fast/viewport/viewport-128-expected.txt: Copied from LayoutTests/fast/viewport/viewport-19-expected.txt.
        * fast/viewport/viewport-128.html: Added.
2010-09-24  Luiz Agostini  <luiz.agostini@openbossa.org>

        Reviewed by Kenneth Rohde Christiansen.

        Keep viewport information in Document
        https://bugs.webkit.org/show_bug.cgi?id=46385

        The viewport meta data (layout viewport, scale) needs to be set again when bringing
        back a page from the page cache. As the viewport metadata is only retrieved while parsing
        the document, we need to store it in the Document class.

        Test: fast/viewport/viewport-128.html

        * WebCore.xcodeproj/project.pbxproj:
        * dom/Document.cpp:
        (WebCore::Document::processViewport):
        (WebCore::Document::setInPageCache):
        * dom/Document.h:
        (WebCore::Document::viewportArguments):
2010-09-24  Luiz Agostini  <luiz.agostini@openbossa.org>

        Reviewed by Kenneth Rohde Christiansen.

        Keep viewport information in Document
        https://bugs.webkit.org/show_bug.cgi?id=46385

        The viewport meta data (layout viewport, scale) needs to be set again when bringing
        back a page from the page cache. As the viewport metadata is only retrieved while parsing
        the document, we need to store it in the Document class.

        * Api/qwebframe.cpp:
        (QWebFramePrivate::viewportArguments):
        * Api/qwebframe_p.h:
        * Api/qwebpage.cpp:
        (QWebPage::viewportConfigurationForSize):
        * WebCoreSupport/ChromeClientQt.cpp:
        (WebCore::ChromeClientQt::didReceiveViewportArguments):
        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
        (DumpRenderTreeSupportQt::viewportAsText):
        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68292 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-27 Girish Ramakrishnan <girish@forwardbias.in>
Girish Ramakrishnan [Mon, 27 Sep 2010 14:54:15 +0000 (14:54 +0000)]
2010-09-27  Girish Ramakrishnan  <girish@forwardbias.in>

        Reviewed by Antonio Gomes.

        [Qt] Enable local rendering of NPAPI plugins on Maemo6.

        https://bugs.webkit.org/show_bug.cgi?id=46618

        * WebCore.pro:
        * bridge/npapi.h:
        * plugins/PluginView.cpp:
        (WebCore::PluginView::setValue):
        (WebCore::PluginView::PluginView):
        * plugins/PluginView.h:
        * plugins/qt/PluginViewQt.cpp:
        (WebCore::PluginView::updatePluginWidget):
        (WebCore::PluginView::paint):
        (WebCore::PluginView::platformGetValueStatic):
        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::createPlugin):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68390 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-27 Benjamin Poulain <benjamin.poulain@nokia.com>
Benjamin Poulain [Mon, 27 Sep 2010 11:48:13 +0000 (11:48 +0000)]
2010-09-27  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] tst_QWebFrame::popupFocus() randomly fail on MeeGo handset because the focus is not set on the window
        https://bugs.webkit.org/show_bug.cgi?id=46617

        This patch avoid the race condition by waiting for the window
        to be mapped on screen before attempting any actions.

        * tests/qwebframe/tst_qwebframe.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68382 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoWebCore: Make db.changeVersion()'s third parameter optional, as required by the spec. qtwebkit-2.1-week38
Dumitru Daniliuc [Thu, 22 Jul 2010 20:56:49 +0000 (20:56 +0000)]
WebCore: Make db.changeVersion()'s third parameter optional, as required by the spec.
https://bugs.webkit.org/show_bug.cgi?id=42787

Reviewed by Ojan Vafai.

* bindings/js/JSDatabaseCustom.cpp:
(WebCore::JSDatabase::changeVersion):
* bindings/js/JSDatabaseSyncCustom.cpp:
(WebCore::JSDatabaseSync::changeVersion):
* bindings/v8/custom/V8DatabaseCustom.cpp:
(WebCore::V8Database::changeVersionCallback):
* bindings/v8/custom/V8DatabaseSyncCustom.cpp:
(WebCore::V8DatabaseSync::changeVersionCallback):
* storage/SQLTransaction.cpp:
(WebCore::SQLTransaction::deliverTransactionCallback):
* storage/SQLTransactionSync.cpp:
(WebCore::SQLTransactionSync::execute):

LayoutTests: Simplify some tests, and make sure db.changeVersion()'s third parameter is optional.
https://bugs.webkit.org/show_bug.cgi?id=42787

Reviewed by Ojan Vafai.

* fast/workers/storage/resources/change-version-sync-1.js:
* fast/workers/storage/resources/change-version-sync-2.js:
* storage/change-version.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63910 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Fix the Wince build.
hausmann@webkit.org [Fri, 24 Sep 2010 14:26:14 +0000 (14:26 +0000)]
[Qt] Fix the Wince build.

Patch by Romain Pokrzywka <romain@kdab.com> on 2010-09-24
Reviewed by Simon Hausmann.

.:

* WebKit.pri: Apply msvc flags to wince, too.

WebCore:

* WebCore.pro: Apply msvc flags to wince, too.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68251 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Enable building Qt/Webkit with debug symbols
hausmann@webkit.org [Fri, 24 Sep 2010 14:24:04 +0000 (14:24 +0000)]
[Qt] Enable building Qt/Webkit with debug symbols

Patch by Anders Bakken <agbakken@gmail.com> on 2010-09-24
Reviewed by Simon Hausmann.

With this patch one can configure with -webkit-debug to build Webkit
with debug symbols without having to manually edit WebCore.pro.

* WebCore.pro:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68250 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-16 Thomas Zander <t.zander@nokia.com>
commit-queue [Thu, 16 Sep 2010 20:05:51 +0000 (20:05 +0000)]
2010-09-16  Thomas Zander <t.zander@nokia.com>

        Reviewed by Andreas Kling.

        https://bugs.webkit.org/show_bug.cgi?id=45878

        [Qt] Fixed incorrect Symbian scoping.

        The missing install functionality is only true for mmp based systems.

        * WebCore.pro: limit functionality to mmp systems.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67657 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-24 Yael Aharon <yael.aharon@nokia.com>
Yael Aharon [Fri, 24 Sep 2010 12:44:42 +0000 (12:44 +0000)]
2010-09-24  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Web Sockets are insecure with QtWebKit
        https://bugs.webkit.org/show_bug.cgi?id=44769

        Throw an error when the server certificate is not valid.
        DRT currently does not support secure websocket connection,
        so no new tests. This was tested with the server at
        http://code.google.com/p/pywebsocket instead.

        * platform/network/qt/SocketStreamHandleQt.cpp:
        (WebCore::SocketStreamHandlePrivate::socketSslErrors):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68248 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoMerge branch 'qtwebkit-2.1' of gitorious.org:+qtwebkit-developers/webkit/qtwebkit...
Ademar de Souza Reis Jr [Thu, 23 Sep 2010 22:22:05 +0000 (19:22 -0300)]
Merge branch 'qtwebkit-2.1' of gitorious.org:+qtwebkit-developers/webkit/qtwebkit into qtwebkit-2.1

7 years ago2010-09-23 Ademar de Souza Reis Jr <ademar.reis@openbossa.org>
commit-queue [Thu, 23 Sep 2010 22:08:51 +0000 (22:08 +0000)]
2010-09-23  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>

        Reviewed by Kenneth Rohde Christiansen.

        Fix QWebHapticFeedbackPlayer exposure via QWebKitPlatformPlugin

        [Qt] QWebHapticFeedbackPlayer needs correct exposure through QWebKitPlatformPlugin
        https://bugs.webkit.org/show_bug.cgi?id=46402

        QWebHapticFeedbackPlayer is exported through
        QWebKitPlatformPlugin::createExtension(), but
        createHapticFeedbackPlayer() and the correct
        inheritage are missing.

        * Api/qwebkitplatformplugin.h:
        * WebCoreSupport/QtPlatformPlugin.cpp:
        (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
        * WebCoreSupport/QtPlatformPlugin.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68204 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoFix Qt build by adding missing file
Tor Arne Vestbø [Thu, 23 Sep 2010 11:24:28 +0000 (11:24 +0000)]
Fix Qt build by adding missing file

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68130 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-23 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
Tor Arne Vestbø [Thu, 23 Sep 2010 10:53:58 +0000 (10:53 +0000)]
2010-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] Refactor QtWebKitPlatformPlugin interface

        Make it easier to keep source-compability for the
        QtWebKitPlatformPlugin interface, and run qmake
        on the example (but not build) for convenience.

        https://bugs.webkit.org/show_bug.cgi?id=46345

        * Api/qwebkitplatformplugin.h:
        * WebCoreSupport/QtPlatformPlugin.cpp:
        * examples/platformplugin/README:
        * examples/platformplugin/WebPlugin.cpp:
        * examples/platformplugin/WebPlugin.h:
        * examples/platformplugin/qwebkitplatformplugin.h:
2010-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] Refactor QtWebKitPlatformPlugin interface

        Make it easier to keep source-compability for the
        QtWebKitPlatformPlugin interface, and run qmake
        on the example (but not build) for convenience.

        https://bugs.webkit.org/show_bug.cgi?id=46345

        * Scripts/webkitdirs.pm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68128 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Symbian] Fix commit/decommit of system memory using RChunk
Simon Hausmann [Tue, 24 Aug 2010 10:38:35 +0000 (10:38 +0000)]
[Symbian] Fix commit/decommit of system memory using RChunk

Patch by Yael Aharon <yael.aharon@nokia.com> on 2010-08-24
Reviewed by Simon Hausmann.

Swap accidentially reversed start and m_base values for determining the
offset within the RChunk.

* wtf/PageReservation.h:
(WTF::PageReservation::systemCommit):
(WTF::PageReservation::systemDecommit):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65886 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoBug 43185 - Switch RegisterFile over to use PageAllocation
Gavin Barraclough [Thu, 5 Aug 2010 20:57:33 +0000 (20:57 +0000)]
Bug 43185 - Switch RegisterFile over to use PageAllocation

Reviewed by Sam Weinig.

Remove platform-specific memory allocation code.

* interpreter/RegisterFile.cpp:
(JSC::RegisterFile::~RegisterFile):
(JSC::RegisterFile::releaseExcessCapacity):
* interpreter/RegisterFile.h:
(JSC::RegisterFile::RegisterFile):
(JSC::RegisterFile::grow):
(JSC::RegisterFile::checkAllocatedOkay):
* wtf/PageAllocation.cpp:
(WTF::PageAllocation::lastError):
* wtf/PageAllocation.h:
(WTF::PageAllocation::allocate):
(WTF::PageAllocation::allocateAt):
(WTF::PageAllocation::allocateAligned):
(WTF::PageAllocation::pageSize):
(WTF::PageAllocation::isPageAligned):
(WTF::PageAllocation::isPowerOfTwo):
* wtf/PageReservation.h:
(WTF::PageReservation::commit):
(WTF::PageReservation::decommit):
(WTF::PageReservation::reserve):
(WTF::PageReservation::reserveAt):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64782 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoWindows build fix part II.
Gavin Barraclough [Thu, 5 Aug 2010 01:19:26 +0000 (01:19 +0000)]
Windows build fix part II.

* wtf/PageReservation.h:
(WTF::PageReservation::systemReserve):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64703 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoWindows build fix.
Gavin Barraclough [Thu, 5 Aug 2010 00:53:18 +0000 (00:53 +0000)]
Windows build fix.

* wtf/PageReservation.h:
(WTF::PageReservation::systemReserve):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64700 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoBuild fix - add new header to !Mac projects.
Gavin Barraclough [Thu, 5 Aug 2010 00:21:56 +0000 (00:21 +0000)]
Build fix - add new header to !Mac projects.

* GNUmakefile.am:
* JavaScriptCore.gypi:
* JavaScriptCore.vcproj/WTF/WTF.vcproj:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64696 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoJavaScriptCore: Bug 43515 - Fix small design issues with PageAllocation, split out...
Gavin Barraclough [Thu, 5 Aug 2010 00:18:58 +0000 (00:18 +0000)]
JavaScriptCore: Bug 43515 - Fix small design issues with PageAllocation, split out PageReservation.

Reviewed by Sam Weinig.

The PageAllocation class has a number of issues:
* Changes in bug #43269 accidentally switched SYMBIAN over to use malloc/free to allocate
  blocks of memory for the GC heap, instead of allocating RChunks.  Revert this change in
  behaviour.
* In order for PageAllocation to work correctly on WinCE we should be decommitting memory
  before deallocating.  In order to simplify understanding the expected state at deallocate,
  split behaviour out into PageAllocation and PageReservation classes.  Require that all
  memory be decommitted before calling deallocate on a PageReservation, add asserts to
  enforce this.
* add many missing asserts.
* inline more functions.
* remove ability to create sub-PageAllocations from an existing PageAllocations object -
  this presented an interface that would allow sub regions to be deallocated, which would
  not have provided expected behaviour.
* remove writable/executable arguments to commit, this value can be cached at the point
  the memory is reserved.
* remove writable/executable arguments to allocateAligned, protection other than RW is not
  supported.
* add missing checks for overflow & failed allocation to mmap path through allocateAligned.

* JavaScriptCore.xcodeproj/project.pbxproj:
* jit/ExecutableAllocator.cpp:
(JSC::ExecutableAllocator::intializePageSize):
* jit/ExecutableAllocator.h:
(JSC::ExecutablePool::Allocation::Allocation):
(JSC::ExecutablePool::Allocation::base):
(JSC::ExecutablePool::Allocation::size):
(JSC::ExecutablePool::Allocation::operator!):
* jit/ExecutableAllocatorFixedVMPool.cpp:
(JSC::FixedVMPoolAllocator::reuse):
(JSC::FixedVMPoolAllocator::coalesceFreeSpace):
(JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
(JSC::FixedVMPoolAllocator::alloc):
(JSC::FixedVMPoolAllocator::free):
(JSC::FixedVMPoolAllocator::allocInternal):
* runtime/AlignedMemoryAllocator.h:
(JSC::::allocate):
(JSC::::AlignedMemoryAllocator):
* runtime/Collector.cpp:
(JSC::Heap::allocateBlock):
* runtime/Collector.h:
* wtf/PageAllocation.cpp:
* wtf/PageAllocation.h:
(WTF::PageAllocation::operator!):
(WTF::PageAllocation::allocate):
(WTF::PageAllocation::allocateAt):
(WTF::PageAllocation::allocateAligned):
(WTF::PageAllocation::deallocate):
(WTF::PageAllocation::pageSize):
(WTF::PageAllocation::systemAllocate):
(WTF::PageAllocation::systemAllocateAt):
(WTF::PageAllocation::systemAllocateAligned):
(WTF::PageAllocation::systemDeallocate):
(WTF::PageAllocation::systemPageSize):
* wtf/PageReservation.h: Copied from JavaScriptCore/wtf/PageAllocation.h.
(WTF::PageReservation::PageReservation):
(WTF::PageReservation::commit):
(WTF::PageReservation::decommit):
(WTF::PageReservation::reserve):
(WTF::PageReservation::reserveAt):
(WTF::PageReservation::deallocate):
(WTF::PageReservation::systemCommit):
(WTF::PageReservation::systemDecommit):
(WTF::PageReservation::systemReserve):
(WTF::PageReservation::systemReserveAt):
* wtf/Platform.h:

JavaScriptGlue: Bug 43515 - Fix small design issues with PageAllocation, split out PageReservation.
(add forwarding headers)

Reviewed by Sam Weinig.

* ForwardingHeaders/wtf/Bitmap.h: Added.
* ForwardingHeaders/wtf/PageReservation.h: Added.

WebCore: Bug 43515 - Fix small design issues with PageAllocation, split out PageReservation.
(add forwarding headers)

Reviewed by Sam Weinig.

* ForwardingHeaders/wtf/Bitmap.h: Added.
* ForwardingHeaders/wtf/PageReservation.h: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64695 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoBuild fix.
Mark Rowe [Wed, 4 Aug 2010 08:16:27 +0000 (08:16 +0000)]
Build fix.

Fix the contents of the forwarding headers too.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64636 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoBuild fix.
Mark Rowe [Wed, 4 Aug 2010 08:06:06 +0000 (08:06 +0000)]
Build fix.

It's really useful if the forwarding headers match the name of the file that they're forwarding to.
Amazingly enough, if the name doesn't match then the file cannot be found! Who'd have thunk it?!

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64635 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoSpeculative windows build fix.
Gavin Barraclough [Wed, 4 Aug 2010 04:37:26 +0000 (04:37 +0000)]
Speculative windows build fix.

* wtf/Bitmap.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64627 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoBuild fix following r64624.
Gavin Barraclough [Wed, 4 Aug 2010 04:25:42 +0000 (04:25 +0000)]
Build fix following r64624.

JavaScriptCore:

* JavaScriptCore.xcodeproj/project.pbxproj:
* wtf/PageAllocation.h:

JavaScriptGlue:

* ForwardingHeaders/wtf/BitMap.h: Added.

WebCore:

* ForwardingHeaders/wtf/BitMap.h: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64626 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agohttps://bugs.webkit.org/show_bug.cgi?id=43269
Gavin Barraclough [Wed, 4 Aug 2010 03:27:13 +0000 (03:27 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=43269

Patch by Nathan Lawrence <nlawrence@apple.com> on 2010-08-03
Reviewed by Gavin Barraclough.

Added new allocateAligned methods to PageAllocation.  In order to
prevent a regress in performance, the function needs to be inlined.

Additionally, I ported the symbian block allocator to use
PageAllocation and added a new WTF::Bitmap class to support this.

* GNUmakefile.am:
* JavaScriptCore.gypi:
* JavaScriptCore.xcodeproj/project.pbxproj:
* runtime/AlignedMemoryAllocator.h: Added.
(JSC::AlignedMemory::deallocate):
(JSC::AlignedMemory::base):
(JSC::AlignedMemory::AlignedMemory):
(JSC::AlignedMemoryAllocator::destroy):
(JSC::AlignedMemoryAllocator::allocate):
(JSC::AlignedMemoryAllocator::AlignedMemoryAllocator):
(JSC::AlignedMemoryAllocator::~AlignedMemoryAllocator):
(JSC::AlignedMemoryAllocator::free):
* runtime/Collector.cpp:
(JSC::Heap::Heap):
(JSC::Heap::destroy):
(JSC::Heap::allocateBlock):
(JSC::Heap::freeBlock):
(JSC::Heap::freeBlocks):
(JSC::Heap::allocate):
(JSC::Heap::shrinkBlocks):
(JSC::Heap::markConservatively):
(JSC::Heap::clearMarkBits):
(JSC::Heap::markedCells):
* runtime/Collector.h:
(JSC::CollectorHeap::collectorBlock):
* runtime/CollectorHeapIterator.h:
(JSC::CollectorHeapIterator::operator*):
(JSC::LiveObjectIterator::operator++):
(JSC::DeadObjectIterator::operator++):
* wtf/Bitmap.h: Added.
(WTF::Bitmap::get):
(WTF::Bitmap::set):
(WTF::Bitmap::clear):
(WTF::Bitmap::clearAll):
(WTF::Bitmap::advanceToNextFreeBit):
(WTF::Bitmap::count):
(WTF::Bitmap::isEmpty):
(WTF::Bitmap::isFull):
* wtf/PageAllocation.h:
(WTF::PageAllocation::operator UnspecifiedBoolType):
(WTF::PageAllocation::allocateAligned):
(WTF::PageAllocation::reserveAligned):
* wtf/Platform.h:
* wtf/symbian: Removed.
* wtf/symbian/BlockAllocatorSymbian.cpp: Removed.
* wtf/symbian/BlockAllocatorSymbian.h: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64624 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoBug 43390 - Do not CRASH if we run out of room for jit code.
Gavin Barraclough [Wed, 4 Aug 2010 00:15:47 +0000 (00:15 +0000)]
Bug 43390 - Do not CRASH if we run out of room for jit code.

Reviewed by Oliver Hunt.

Change the ExecutableAllocator implementations not to crash, and to return 0 if memory cannot be allocated.
The assemblers should pass this through without trying to use it in executableCopy.
Change the LinkBuffer to handle this, and to provide an allocationSuccessful() method to test for this.

Change the JIT to throw an exception if allocation fails.
Make JIT optimizations fail gracefully if memory cannot be allocated (use non-optimized path).
Change YARR JIT to fallback to PCRE

* assembler/ARMAssembler.cpp:
(JSC::ARMAssembler::executableCopy):
* assembler/ARMv7Assembler.h:
(JSC::ARMv7Assembler::executableCopy):
* assembler/LinkBuffer.h:
(JSC::LinkBuffer::allocationSuccessful):
* assembler/MIPSAssembler.h:
(JSC::MIPSAssembler::executableCopy):
* assembler/X86Assembler.h:
(JSC::X86Assembler::executableCopy):
* bytecode/StructureStubInfo.h:
(JSC::StructureStubInfo::initGetByIdProto):
(JSC::StructureStubInfo::initGetByIdChain):
(JSC::StructureStubInfo::initGetByIdSelfList):
(JSC::StructureStubInfo::initGetByIdProtoList):
(JSC::StructureStubInfo::initPutByIdTransition):
* jit/ExecutableAllocator.cpp:
(JSC::ExecutablePool::systemAlloc):
* jit/ExecutableAllocatorFixedVMPool.cpp:
(JSC::FixedVMPoolAllocator::allocInternal):
* jit/JIT.cpp:
(JSC::JIT::privateCompile):
* jit/JIT.h:
(JSC::JIT::compileGetByIdProto):
(JSC::JIT::compileGetByIdSelfList):
(JSC::JIT::compileGetByIdProtoList):
(JSC::JIT::compileGetByIdChainList):
(JSC::JIT::compileGetByIdChain):
(JSC::JIT::compilePutByIdTransition):
(JSC::JIT::compilePatchGetArrayLength):
* jit/JITOpcodes.cpp:
(JSC::JIT::privateCompileCTIMachineTrampolines):
* jit/JITOpcodes32_64.cpp:
(JSC::JIT::privateCompileCTIMachineTrampolines):
(JSC::JIT::privateCompileCTINativeCall):
* jit/JITPropertyAccess.cpp:
(JSC::JIT::stringGetByValStubGenerator):
(JSC::JIT::privateCompilePutByIdTransition):
(JSC::JIT::privateCompilePatchGetArrayLength):
(JSC::JIT::privateCompileGetByIdProto):
(JSC::JIT::privateCompileGetByIdSelfList):
(JSC::JIT::privateCompileGetByIdProtoList):
(JSC::JIT::privateCompileGetByIdChainList):
(JSC::JIT::privateCompileGetByIdChain):
* jit/JITPropertyAccess32_64.cpp:
(JSC::JIT::stringGetByValStubGenerator):
(JSC::JIT::privateCompilePutByIdTransition):
(JSC::JIT::privateCompilePatchGetArrayLength):
(JSC::JIT::privateCompileGetByIdProto):
(JSC::JIT::privateCompileGetByIdSelfList):
(JSC::JIT::privateCompileGetByIdProtoList):
(JSC::JIT::privateCompileGetByIdChainList):
(JSC::JIT::privateCompileGetByIdChain):
* jit/JITStubs.cpp:
(JSC::JITThunks::tryCachePutByID):
(JSC::JITThunks::tryCacheGetByID):
(JSC::DEFINE_STUB_FUNCTION):
(JSC::setupPolymorphicProtoList):
* jit/JITStubs.h:
* jit/SpecializedThunkJIT.h:
(JSC::SpecializedThunkJIT::finalize):
* runtime/ExceptionHelpers.cpp:
(JSC::createOutOfMemoryError):
* runtime/ExceptionHelpers.h:
* runtime/Executable.cpp:
(JSC::EvalExecutable::compileInternal):
(JSC::ProgramExecutable::compileInternal):
(JSC::FunctionExecutable::compileForCallInternal):
(JSC::FunctionExecutable::compileForConstructInternal):
(JSC::FunctionExecutable::reparseExceptionInfo):
(JSC::EvalExecutable::reparseExceptionInfo):
* yarr/RegexJIT.cpp:
(JSC::Yarr::RegexGenerator::compile):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64608 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-02 Mahesh Kulkarni <mahesh.kulkarni@nokia.com>
commit-queue [Mon, 2 Aug 2010 12:21:11 +0000 (12:21 +0000)]
2010-08-02  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>

        Reviewed by Simon Hausmann.

        [QT] build fix for symbian
        https://bugs.webkit.org/show_bug.cgi?id=43234

        1) wrong order of passing param's
        2) static_cast complains on symbian so using reinterpret_cast

        No new tests added. Just a build fix for qt symbian

        * wtf/PageAllocation.cpp:
        (WTF::PageAllocation::commit):
        (WTF::PageAllocation::decommit):
        (WTF::PageAllocation::reserve):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64456 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-07-30 Mahesh Kulkarni <mahesh.kulkarni@nokia.com>
commit-queue [Fri, 30 Jul 2010 11:10:02 +0000 (11:10 +0000)]
2010-07-30  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>

        Reviewed by Simon Hausmann.

        [QT] build fix for symbian
        https://bugs.webkit.org/show_bug.cgi?id=43234

        * wtf/PageAllocation.h:
        (WTF::PageAllocation::PageAllocation):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64346 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoBug 43162 - Add support for MADV_FREE to PageAllocation.
Gavin Barraclough [Thu, 29 Jul 2010 03:22:26 +0000 (03:22 +0000)]
Bug 43162 - Add support for MADV_FREE to PageAllocation.

Reviewed by Darin Adler.

* wtf/PageAllocation.cpp:
(WTF::PageAllocation::commit):
(WTF::PageAllocation::decommit):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64261 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoWindows build fix from Chromium/GTK build fix!
Gavin Barraclough [Tue, 27 Jul 2010 06:04:19 +0000 (06:04 +0000)]
Windows build fix from Chromium/GTK build fix!

* wtf/PageAllocation.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64108 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoChromium/GTK build fix
Gavin Barraclough [Tue, 27 Jul 2010 05:51:10 +0000 (05:51 +0000)]
Chromium/GTK build fix

* wtf/PageAllocation.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64107 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoBuild fix for !Mac platforms.
Gavin Barraclough [Tue, 27 Jul 2010 05:23:28 +0000 (05:23 +0000)]
Build fix for !Mac platforms.

* Android.mk:
* CMakeLists.txt:
* GNUmakefile.am:
* JavaScriptCore.gypi:
* JavaScriptCore.pro:
* JavaScriptCore.vcproj/WTF/WTF.vcproj:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64106 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoBug 43009 - Abstract out page allocation from executable allocators
Gavin Barraclough [Tue, 27 Jul 2010 05:02:09 +0000 (05:02 +0000)]
Bug 43009 - Abstract out page allocation from executable allocators

Reviewed by Oliver Hunt.

JavaScriptCore:

It would be great to have a single platform abstraction for block allocation, rather than copy/paste code.

In this initial implementation I've made Symbian fall back to use malloc/free for non-executable memory.
I think this will match current behaviour for the next client we will want to port across (RegisterFile &
Collector).

* CMakeListsEfl.txt:
* GNUmakefile.am:
* JavaScriptCore.gypi:
* JavaScriptCore.pro:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.xcodeproj/project.pbxproj:
* jit/ExecutableAllocator.cpp:
(JSC::ExecutableAllocator::intializePageSize):
(JSC::ExecutablePool::systemAlloc):
(JSC::ExecutablePool::systemRelease):
(JSC::ExecutableAllocator::isValid):
* jit/ExecutableAllocator.h:
(JSC::ExecutablePool::ExecutablePool):
(JSC::ExecutablePool::poolAllocate):
* jit/ExecutableAllocatorFixedVMPool.cpp:
(JSC::FixedVMPoolAllocator::release):
(JSC::FixedVMPoolAllocator::reuse):
(JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
(JSC::FixedVMPoolAllocator::alloc):
(JSC::FixedVMPoolAllocator::free):
(JSC::FixedVMPoolAllocator::isValid):
(JSC::FixedVMPoolAllocator::isWithinVMPool):
(JSC::ExecutablePool::systemAlloc):
(JSC::ExecutablePool::systemRelease):
* jit/ExecutableAllocatorPosix.cpp: Removed.
* jit/ExecutableAllocatorSymbian.cpp: Removed.
* jit/ExecutableAllocatorWin.cpp: Removed.
* wscript:
* wtf/PageAllocator.cpp: Added.
(WTF::protection):
(WTF::PageAllocation::commit):
(WTF::PageAllocation::decommit):
(WTF::PageAllocator::allocate):
(WTF::PageAllocator::reserve):
(WTF::PageAllocator::deallocate):
(WTF::PageAllocator::pagesize):
* wtf/PageAllocator.h: Added.
(WTF::PageAllocation::PageAllocation):
(WTF::PageAllocation::base):
(WTF::PageAllocation::size):
(WTF::PageAllocation::chunk):
(WTF::PageAllocation::operator!):
(WTF::PageAllocator::):

JavaScriptGlue:

* ForwardingHeaders/wtf/PageAllocation.h: Added.

WebCore:

* ForwardingHeaders/wtf/PageAllocation.h: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64105 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-20 Andreas Kling <andreas.kling@nokia.com>
andreas.kling [Fri, 20 Aug 2010 08:12:08 +0000 (08:12 +0000)]
2010-08-20  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Initialize GDK before loading plugins
        https://bugs.webkit.org/show_bug.cgi?id=44324

        Attempt to call gdk_init_check() before loading any plugins.
        This prevents various crashes and freezes in Adobe's Flash plugin.

        * plugins/qt/PluginPackageQt.cpp:
        (WebCore::initializeGdkIfPossible):
        (WebCore::PluginPackage::load):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65728 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-14 Tasuku Suzuki <tasuku.suzuki@nokia.com>
commit-queue [Sat, 14 Aug 2010 19:24:30 +0000 (19:24 +0000)]
2010-08-14  Tasuku Suzuki  <tasuku.suzuki@nokia.com>

        Reviewed by Antonio Gomes.

        [Qt] Fix compilation with QT_NO_LINEEDIT
        https://bugs.webkit.org/show_bug.cgi?id=38324

        * bridge/qt/qt_runtime.cpp:
        (JSC::Bindings::convertValueToQVariant):
        (JSC::Bindings::convertQVariantToValue):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65371 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-21 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
Jocelyn Turcotte [Tue, 21 Sep 2010 14:30:51 +0000 (14:30 +0000)]
2010-09-21  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] Check if the reply has been deleted before finishing a network request
        https://bugs.webkit.org/show_bug.cgi?id=46174

        A crash can happen with the following sequence:
        1. QNetworkReplyHandler::abort() emits reply->deleteLater()
        2. QNAM emits QNetworkReply::finished() -> calls QNetworkReplyHandler::finish()
        3. event loop would call reply->deleteLater()
        However a crash occurs since m_reply == 0 on step 2.

        * platform/network/qt/QNetworkReplyHandler.cpp:
        (WebCore::QNetworkReplyHandler::finish):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67951 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Add robot loader timeout and extra time options.
Jocelyn Turcotte [Tue, 21 Sep 2010 11:25:54 +0000 (11:25 +0000)]
[Qt] Add robot loader timeout and extra time options.
https://bugs.webkit.org/show_bug.cgi?id=46172

Reviewed by Andreas Kling.

[-robot-timeout <s>]: Load the next page after s seconds if the current
page didn't finish loading.
[-robot-extra-time <s>]: Wait s seconds after the current page finished
loading before loading the next one. This should allow some time for the
page's JavaScript to execute.

* QtTestBrowser/launcherwindow.cpp:
(LauncherWindow::applyPrefs):
* QtTestBrowser/main.cpp:
(LauncherApplication::robotTimeout):
(LauncherApplication::robotExtraTime):
(LauncherApplication::LauncherApplication):
(LauncherApplication::handleUserOptions):
(main):
* QtTestBrowser/urlloader.cpp:
(UrlLoader::UrlLoader):
(UrlLoader::loadNext):
(UrlLoader::loadUrlList):
* QtTestBrowser/urlloader.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67942 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-20 Jacob Dinu <dinu.jacob@nokia.com>
commit-queue [Mon, 20 Sep 2010 20:20:25 +0000 (20:20 +0000)]
2010-09-20  Jacob Dinu  <dinu.jacob@nokia.com>

        Reviewed by Adam Barth.

        When loading a cached page, dispatchDidCommitLoad is called after FrameLoader::open so
        that all initialzations are done before calling client dispatchDidCommitLoad to avoid
        client from accessing incorrect data.
        https://bugs.webkit.org/show_bug.cgi?id=41155

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::commitProvisionalLoad):
        (WebCore::FrameLoader::transitionToCommitted):
2010-09-20  Jacob Dinu  <dinu.jacob@nokia.com>

        Reviewed by Adam Barth.

        Added a new qwebpage test for loading a cached page
        https://bugs.webkit.org/show_bug.cgi?id=41155

        * tests/qwebpage/tst_qwebpage.cpp:
        (tst_QWebPage::loadCachedPage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67878 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-18 Andreas Kling <andreas.kling@nokia.com>
Andreas Kling [Sat, 18 Sep 2010 15:23:47 +0000 (15:23 +0000)]
2010-09-18  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] Don't copy clip path to TransparencyLayer
        https://bugs.webkit.org/show_bug.cgi?id=45965

        We don't need to copy the GC's clip path to the TransparencyLayer since it will
        clip anyway when ending the layer.

        * platform/graphics/qt/GraphicsContextQt.cpp
        (WebCore::TransparencyLayer::TransparencyLayer):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67780 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-16 Leonid Ebril <leonid.ebril@nokia.com> qtwebkit-2.1-week37
commit-queue [Thu, 16 Sep 2010 20:31:02 +0000 (20:31 +0000)]
2010-09-16  Leonid Ebril  <leonid.ebril@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] QtTestBrowser: Disable creation of a new window for screenshot on Symbian platform.
        https://bugs.webkit.org/show_bug.cgi?id=45885

        Avoid creation of an additional window for screenshot to prevent overlapping with original window.

        * QtTestBrowser/launcherwindow.cpp:
        (LauncherWindow::screenshot):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67662 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-16 Andreas Kling <andreas.kling@nokia.com>
Andreas Kling [Thu, 16 Sep 2010 22:35:30 +0000 (22:35 +0000)]
2010-09-16  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Ariya Hidayat.
        Backported to 2.1 by Ademar Reis.

        [Qt] Remove unnecessary QPainter::clipPath() call in TransparencyLayer()
        https://bugs.webkit.org/show_bug.cgi?id=45923

        QPainter::clipPath() can be very expensive, so use QPainter::hasClipping()
        instead of QPainter::clipPath().isEmpty().

        * platform/graphics/qt/GraphicsContextQt.cpp
        (WebCore::TransparencyLayer::TransparencyLayer):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67675 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-10 yi shen <yi.4.shen@nokia.com>
commit-queue [Sat, 11 Sep 2010 07:07:00 +0000 (07:07 +0000)]
2010-09-10  yi shen  <yi.4.shen@nokia.com>

        Reviewed by Antonio Gomes.

        [Qt] selected text gets deleted when qgraphicswebview losts focus
        https://bugs.webkit.org/show_bug.cgi?id=45539

        * Api/qwebpage.cpp:
        (QWebPagePrivate::inputMethodEvent):
        * tests/qwebpage/tst_qwebpage.cpp:
        (tst_QWebPage::inputMethods):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67289 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-14 Luiz Agostini <luiz.agostini@openbossa.org>
commit-queue [Wed, 15 Sep 2010 03:37:14 +0000 (03:37 +0000)]
2010-09-14  Luiz Agostini  <luiz.agostini@openbossa.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Zoom factor for checkboxes and radios.
        https://bugs.webkit.org/show_bug.cgi?id=45776

        RenderThemeQt does not consider RenderStyle::effectiveZoom when calculating sizes of
        checkboxes and radios.

        Even with this change the used QStyle must support different sizes for radios and checkboxes.
        QWindowStyle and QMacStyle, for example, do not.

        * platform/qt/RenderThemeQt.cpp:
        (WebCore::RenderThemeQt::computeSizeBasedOnStyle):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67531 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] QtTestBrowser crashes when enabling QGraphicsView mode after first loading page...
hausmann@webkit.org [Wed, 15 Sep 2010 13:32:02 +0000 (13:32 +0000)]
[Qt] QtTestBrowser crashes when enabling QGraphicsView mode after first loading page without it enabled
https://bugs.webkit.org/show_bug.cgi?id=35247

Reviewed by Tor Arne Vestbø.

The main issue when changing the views is that the plugins and any other components that
depend on view specific attributes such as the native window id are not teared down.
Even if we had a tear-down procedure, we'd have to re-initialize the plugin after
switching to the new view (QGraphicsWebView). This is a rather uncommon situation, so
we decided to work around this in QtTestBrowser by making toggling between QWebView
and QGraphicsWebView also re-create the page.

* QtTestBrowser/launcherwindow.cpp:
(LauncherWindow::initializeView):
* QtTestBrowser/mainwindow.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67554 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Update the Symbian def files
hausmann@webkit.org [Wed, 15 Sep 2010 11:34:25 +0000 (11:34 +0000)]
[Qt] Update the Symbian def files

Re-freeze with the viewport meta tag updates.

* symbian/eabi/QtWebKitu.def:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67549 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-13 Patrick Gansterer <paroga@paroga.com>
commit-queue@webkit.org [Tue, 14 Sep 2010 01:10:21 +0000 (01:10 +0000)]
2010-09-13  Patrick Gansterer  <paroga@paroga.com>

        Reviewed by Kenneth Rohde Christiansen.

        [WINCE] Buildfix for ViewportArguments.cpp
        https://bugs.webkit.org/show_bug.cgi?id=45678

        Use fabs() instead of abs().
        This patch also fixes the return value, when
        the value is between -1 and 1.

        * dom/ViewportArguments.cpp:
        (WebCore::findUserScalableValue):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67427 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoWebCore: Update support for the viewport meta tag algorithm, to
Kenneth Rohde Christiansen [Mon, 13 Sep 2010 10:37:28 +0000 (10:37 +0000)]
WebCore: Update support for the viewport meta tag algorithm, to
match the following draft spec:

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2010-08-27
Reviewed by Antti Koivisto.

http://people.opera.com/rune/TR/ED-css-viewport-20100806/

Add common handling of viewport meta tag based on new Opera spec
https://bugs.webkit.org/show_bug.cgi?id=44201

Tests: fast/viewport/viewport-1.html
       fast/viewport/viewport-10.html
       fast/viewport/viewport-100.html
       fast/viewport/viewport-101.html
       fast/viewport/viewport-102.html
       fast/viewport/viewport-103.html
       fast/viewport/viewport-104.html
       fast/viewport/viewport-105.html
       fast/viewport/viewport-106.html
       fast/viewport/viewport-107.html
       fast/viewport/viewport-108.html
       fast/viewport/viewport-109.html
       fast/viewport/viewport-11.html
       fast/viewport/viewport-110.html
       fast/viewport/viewport-111.html
       fast/viewport/viewport-112.html
       fast/viewport/viewport-113.html
       fast/viewport/viewport-114.html
       fast/viewport/viewport-115.html
       fast/viewport/viewport-116.html
       fast/viewport/viewport-117.html
       fast/viewport/viewport-118.html
       fast/viewport/viewport-119.html
       fast/viewport/viewport-12.html
       fast/viewport/viewport-120.html
       fast/viewport/viewport-121.html
       fast/viewport/viewport-122.html
       fast/viewport/viewport-123.html
       fast/viewport/viewport-124.html
       fast/viewport/viewport-125.html
       fast/viewport/viewport-126.html
       fast/viewport/viewport-127.html
       fast/viewport/viewport-13.html
       fast/viewport/viewport-14.html
       fast/viewport/viewport-15.html
       fast/viewport/viewport-16.html
       fast/viewport/viewport-17.html
       fast/viewport/viewport-18.html
       fast/viewport/viewport-19.html
       fast/viewport/viewport-2.html
       fast/viewport/viewport-20.html
       fast/viewport/viewport-21.html
       fast/viewport/viewport-22.html
       fast/viewport/viewport-23.html
       fast/viewport/viewport-24.html
       fast/viewport/viewport-25.html
       fast/viewport/viewport-26.html
       fast/viewport/viewport-27.html
       fast/viewport/viewport-28.html
       fast/viewport/viewport-29.html
       fast/viewport/viewport-3.html
       fast/viewport/viewport-30.html
       fast/viewport/viewport-31.html
       fast/viewport/viewport-32.html
       fast/viewport/viewport-33.html
       fast/viewport/viewport-34.html
       fast/viewport/viewport-35.html
       fast/viewport/viewport-36.html
       fast/viewport/viewport-37.html
       fast/viewport/viewport-38.html
       fast/viewport/viewport-39.html
       fast/viewport/viewport-4.html
       fast/viewport/viewport-40.html
       fast/viewport/viewport-41.html
       fast/viewport/viewport-42.html
       fast/viewport/viewport-43.html
       fast/viewport/viewport-44.html
       fast/viewport/viewport-45.html
       fast/viewport/viewport-46.html
       fast/viewport/viewport-47.html
       fast/viewport/viewport-48.html
       fast/viewport/viewport-49.html
       fast/viewport/viewport-5.html
       fast/viewport/viewport-50.html
       fast/viewport/viewport-51.html
       fast/viewport/viewport-52.html
       fast/viewport/viewport-53.html
       fast/viewport/viewport-54.html
       fast/viewport/viewport-55.html
       fast/viewport/viewport-56.html
       fast/viewport/viewport-57.html
       fast/viewport/viewport-58.html
       fast/viewport/viewport-59.html
       fast/viewport/viewport-6.html
       fast/viewport/viewport-60.html
       fast/viewport/viewport-61.html
       fast/viewport/viewport-62.html
       fast/viewport/viewport-63.html
       fast/viewport/viewport-64.html
       fast/viewport/viewport-65.html
       fast/viewport/viewport-66.html
       fast/viewport/viewport-67.html
       fast/viewport/viewport-68.html
       fast/viewport/viewport-69.html
       fast/viewport/viewport-7.html
       fast/viewport/viewport-70.html
       fast/viewport/viewport-71.html
       fast/viewport/viewport-72.html
       fast/viewport/viewport-73.html
       fast/viewport/viewport-74.html
       fast/viewport/viewport-75.html
       fast/viewport/viewport-76.html
       fast/viewport/viewport-77.html
       fast/viewport/viewport-78.html
       fast/viewport/viewport-79.html
       fast/viewport/viewport-8.html
       fast/viewport/viewport-80.html
       fast/viewport/viewport-81.html
       fast/viewport/viewport-82.html
       fast/viewport/viewport-83.html
       fast/viewport/viewport-84.html
       fast/viewport/viewport-85.html
       fast/viewport/viewport-86.html
       fast/viewport/viewport-87.html
       fast/viewport/viewport-88.html
       fast/viewport/viewport-9.html
       fast/viewport/viewport-90.html

* dom/ViewportArguments.cpp:
(WebCore::findConfigurationForViewportData):
(WebCore::findSizeValue):
(WebCore::findScaleValue):
(WebCore::findUserScalableValue):
(WebCore::findTargetDensityDPIValue):
(WebCore::setViewportFeature):
* dom/ViewportArguments.h:
(WebCore::ViewportArguments::):
(WebCore::ViewportArguments::ViewportArguments):
(WebCore::ViewportArguments::hasCustomArgument):

WebKit/qt: Add a Qt API for the viewport meta tag support based on the
following draft spec:

Reviewed by Antti Koivisto.

http://people.opera.com/rune/TR/ED-css-viewport-20100806/

Add common handling of viewport meta tag based on new Opera spec
https://bugs.webkit.org/show_bug.cgi?id=44201

* Api/qwebframe_p.h:
(QWebFramePrivate::QWebFramePrivate):
* Api/qwebpage.cpp:
(QWebPage::ViewportConfiguration::ViewportConfiguration):
(QWebPage::ViewportConfiguration::~ViewportConfiguration):
(QWebPage::ViewportConfiguration::operator=):
(QWebPage::viewportConfigurationForSize):
(QWebPage::setPreferredContentsSize):
* Api/qwebpage.h:
* Api/qwebpage_p.h:
(QtViewportConfigurationPrivate::QtViewportConfigurationPrivate):
* WebCoreSupport/ChromeClientQt.cpp:
(WebCore::ChromeClientQt::didReceiveViewportArguments):
* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::viewportAsText):
* WebCoreSupport/DumpRenderTreeSupportQt.h:
* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
(WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):

WebKitTools: Add support for testing the viewport meta tag algorithm,
based on the following draft spec:

Reviewed by Antti Koivisto.

http://people.opera.com/rune/TR/ED-css-viewport-20100806/

Add common handling of viewport meta tag based on new Opera spec
https://bugs.webkit.org/show_bug.cgi?id=44201

* DumpRenderTree/qt/LayoutTestControllerQt.cpp:
(LayoutTestController::dumpConfigurationForViewport):
* DumpRenderTree/qt/LayoutTestControllerQt.h:

LayoutTests: Add tests for the viewport meta tag algorithm and parsing,
based on a test suite developed by Opera employees
Rune Lillesveen and Øyvind Stenhaug.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2010-08-27
Reviewed by Antti Koivisto.

* fast/viewport/viewport-1-expected.txt: Added.
* fast/viewport/viewport-1.html: Added.
* fast/viewport/viewport-10-expected.txt: Added.
* fast/viewport/viewport-10.html: Added.
* fast/viewport/viewport-100-expected.txt: Added.
* fast/viewport/viewport-100.html: Added.
* fast/viewport/viewport-101-expected.txt: Added.
* fast/viewport/viewport-101.html: Added.
* fast/viewport/viewport-102-expected.txt: Added.
* fast/viewport/viewport-102.html: Added.
* fast/viewport/viewport-103-expected.txt: Added.
* fast/viewport/viewport-103.html: Added.
* fast/viewport/viewport-104-expected.txt: Added.
* fast/viewport/viewport-104.html: Added.
* fast/viewport/viewport-105-expected.txt: Added.
* fast/viewport/viewport-105.html: Added.
* fast/viewport/viewport-106-expected.txt: Added.
* fast/viewport/viewport-106.html: Added.
* fast/viewport/viewport-107-expected.txt: Added.
* fast/viewport/viewport-107.html: Added.
* fast/viewport/viewport-108-expected.txt: Added.
* fast/viewport/viewport-108.html: Added.
* fast/viewport/viewport-109-expected.txt: Added.
* fast/viewport/viewport-109.html: Added.
* fast/viewport/viewport-11-expected.txt: Added.
* fast/viewport/viewport-11.html: Added.
* fast/viewport/viewport-110-expected.txt: Added.
* fast/viewport/viewport-110.html: Added.
* fast/viewport/viewport-111-expected.txt: Added.
* fast/viewport/viewport-111.html: Added.
* fast/viewport/viewport-112-expected.txt: Added.
* fast/viewport/viewport-112.html: Added.
* fast/viewport/viewport-113-expected.txt: Added.
* fast/viewport/viewport-113.html: Added.
* fast/viewport/viewport-114-expected.txt: Added.
* fast/viewport/viewport-114.html: Added.
* fast/viewport/viewport-115-expected.txt: Added.
* fast/viewport/viewport-115.html: Added.
* fast/viewport/viewport-116-expected.txt: Added.
* fast/viewport/viewport-116.html: Added.
* fast/viewport/viewport-117-expected.txt: Added.
* fast/viewport/viewport-117.html: Added.
* fast/viewport/viewport-118-expected.txt: Added.
* fast/viewport/viewport-118.html: Added.
* fast/viewport/viewport-119-expected.txt: Added.
* fast/viewport/viewport-119.html: Added.
* fast/viewport/viewport-12-expected.txt: Added.
* fast/viewport/viewport-12.html: Added.
* fast/viewport/viewport-120-expected.txt: Added.
* fast/viewport/viewport-120.html: Added.
* fast/viewport/viewport-121-expected.txt: Added.
* fast/viewport/viewport-121.html: Added.
* fast/viewport/viewport-122-expected.txt: Added.
* fast/viewport/viewport-122.html: Added.
* fast/viewport/viewport-123-expected.txt: Added.
* fast/viewport/viewport-123.html: Added.
* fast/viewport/viewport-124-expected.txt: Added.
* fast/viewport/viewport-124.html: Added.
* fast/viewport/viewport-125-expected.txt: Added.
* fast/viewport/viewport-125.html: Added.
* fast/viewport/viewport-126.html: Added.
* fast/viewport/viewport-127.html: Added.
* fast/viewport/viewport-13-expected.txt: Added.
* fast/viewport/viewport-13.html: Added.
* fast/viewport/viewport-14-expected.txt: Added.
* fast/viewport/viewport-14.html: Added.
* fast/viewport/viewport-15-expected.txt: Added.
* fast/viewport/viewport-15.html: Added.
* fast/viewport/viewport-16-expected.txt: Added.
* fast/viewport/viewport-16.html: Added.
* fast/viewport/viewport-17-expected.txt: Added.
* fast/viewport/viewport-17.html: Added.
* fast/viewport/viewport-18-expected.txt: Added.
* fast/viewport/viewport-18.html: Added.
* fast/viewport/viewport-19-expected.txt: Added.
* fast/viewport/viewport-19.html: Added.
* fast/viewport/viewport-2-expected.txt: Added.
* fast/viewport/viewport-2.html: Added.
* fast/viewport/viewport-20-expected.txt: Added.
* fast/viewport/viewport-20.html: Added.
* fast/viewport/viewport-21-expected.txt: Added.
* fast/viewport/viewport-21.html: Added.
* fast/viewport/viewport-22-expected.txt: Added.
* fast/viewport/viewport-22.html: Added.
* fast/viewport/viewport-23-expected.txt: Added.
* fast/viewport/viewport-23.html: Added.
* fast/viewport/viewport-24-expected.txt: Added.
* fast/viewport/viewport-24.html: Added.
* fast/viewport/viewport-25-expected.txt: Added.
* fast/viewport/viewport-25.html: Added.
* fast/viewport/viewport-26-expected.txt: Added.
* fast/viewport/viewport-26.html: Added.
* fast/viewport/viewport-27-expected.txt: Added.
* fast/viewport/viewport-27.html: Added.
* fast/viewport/viewport-28-expected.txt: Added.
* fast/viewport/viewport-28.html: Added.
* fast/viewport/viewport-29-expected.txt: Added.
* fast/viewport/viewport-29.html: Added.
* fast/viewport/viewport-3-expected.txt: Added.
* fast/viewport/viewport-3.html: Added.
* fast/viewport/viewport-30-expected.txt: Added.
* fast/viewport/viewport-30.html: Added.
* fast/viewport/viewport-31-expected.txt: Added.
* fast/viewport/viewport-31.html: Added.
* fast/viewport/viewport-32-expected.txt: Added.
* fast/viewport/viewport-32.html: Added.
* fast/viewport/viewport-33-expected.txt: Added.
* fast/viewport/viewport-33.html: Added.
* fast/viewport/viewport-34-expected.txt: Added.
* fast/viewport/viewport-34.html: Added.
* fast/viewport/viewport-35-expected.txt: Added.
* fast/viewport/viewport-35.html: Added.
* fast/viewport/viewport-36-expected.txt: Added.
* fast/viewport/viewport-36.html: Added.
* fast/viewport/viewport-37-expected.txt: Added.
* fast/viewport/viewport-37.html: Added.
* fast/viewport/viewport-38-expected.txt: Added.
* fast/viewport/viewport-38.html: Added.
* fast/viewport/viewport-39-expected.txt: Added.
* fast/viewport/viewport-39.html: Added.
* fast/viewport/viewport-4-expected.txt: Added.
* fast/viewport/viewport-4.html: Added.
* fast/viewport/viewport-40-expected.txt: Added.
* fast/viewport/viewport-40.html: Added.
* fast/viewport/viewport-41-expected.txt: Added.
* fast/viewport/viewport-41.html: Added.
* fast/viewport/viewport-42-expected.txt: Added.
* fast/viewport/viewport-42.html: Added.
* fast/viewport/viewport-43-expected.txt: Added.
* fast/viewport/viewport-43.html: Added.
* fast/viewport/viewport-44-expected.txt: Added.
* fast/viewport/viewport-44.html: Added.
* fast/viewport/viewport-45-expected.txt: Added.
* fast/viewport/viewport-45.html: Added.
* fast/viewport/viewport-46-expected.txt: Added.
* fast/viewport/viewport-46.html: Added.
* fast/viewport/viewport-47-expected.txt: Added.
* fast/viewport/viewport-47.html: Added.
* fast/viewport/viewport-48-expected.txt: Added.
* fast/viewport/viewport-48.html: Added.
* fast/viewport/viewport-49-expected.txt: Added.
* fast/viewport/viewport-49.html: Added.
* fast/viewport/viewport-5-expected.txt: Added.
* fast/viewport/viewport-5.html: Added.
* fast/viewport/viewport-50-expected.txt: Added.
* fast/viewport/viewport-50.html: Added.
* fast/viewport/viewport-51-expected.txt: Added.
* fast/viewport/viewport-51.html: Added.
* fast/viewport/viewport-52-expected.txt: Added.
* fast/viewport/viewport-52.html: Added.
* fast/viewport/viewport-53-expected.txt: Added.
* fast/viewport/viewport-53.html: Added.
* fast/viewport/viewport-54-expected.txt: Added.
* fast/viewport/viewport-54.html: Added.
* fast/viewport/viewport-55-expected.txt: Added.
* fast/viewport/viewport-55.html: Added.
* fast/viewport/viewport-56-expected.txt: Added.
* fast/viewport/viewport-56.html: Added.
* fast/viewport/viewport-57-expected.txt: Added.
* fast/viewport/viewport-57.html: Added.
* fast/viewport/viewport-58-expected.txt: Added.
* fast/viewport/viewport-58.html: Added.
* fast/viewport/viewport-59-expected.txt: Added.
* fast/viewport/viewport-59.html: Added.
* fast/viewport/viewport-6-expected.txt: Added.
* fast/viewport/viewport-6.html: Added.
* fast/viewport/viewport-60-expected.txt: Added.
* fast/viewport/viewport-60.html: Added.
* fast/viewport/viewport-61-expected.txt: Added.
* fast/viewport/viewport-61.html: Added.
* fast/viewport/viewport-62-expected.txt: Added.
* fast/viewport/viewport-62.html: Added.
* fast/viewport/viewport-63-expected.txt: Added.
* fast/viewport/viewport-63.html: Added.
* fast/viewport/viewport-64-expected.txt: Added.
* fast/viewport/viewport-64.html: Added.
* fast/viewport/viewport-65.html: Added.
* fast/viewport/viewport-66-expected.txt: Added.
* fast/viewport/viewport-66.html: Added.
* fast/viewport/viewport-67-expected.txt: Added.
* fast/viewport/viewport-67.html: Added.
* fast/viewport/viewport-68-expected.txt: Added.
* fast/viewport/viewport-68.html: Added.
* fast/viewport/viewport-69-expected.txt: Added.
* fast/viewport/viewport-69.html: Added.
* fast/viewport/viewport-7-expected.txt: Added.
* fast/viewport/viewport-7.html: Added.
* fast/viewport/viewport-70-expected.txt: Added.
* fast/viewport/viewport-70.html: Added.
* fast/viewport/viewport-71-expected.txt: Added.
* fast/viewport/viewport-71.html: Added.
* fast/viewport/viewport-72-expected.txt: Added.
* fast/viewport/viewport-72.html: Added.
* fast/viewport/viewport-73-expected.txt: Added.
* fast/viewport/viewport-73.html: Added.
* fast/viewport/viewport-74-expected.txt: Added.
* fast/viewport/viewport-74.html: Added.
* fast/viewport/viewport-75-expected.txt: Added.
* fast/viewport/viewport-75.html: Added.
* fast/viewport/viewport-76-expected.txt: Added.
* fast/viewport/viewport-76.html: Added.
* fast/viewport/viewport-77-expected.txt: Added.
* fast/viewport/viewport-77.html: Added.
* fast/viewport/viewport-78-expected.txt: Added.
* fast/viewport/viewport-78.html: Added.
* fast/viewport/viewport-79-expected.txt: Added.
* fast/viewport/viewport-79.html: Added.
* fast/viewport/viewport-8-expected.txt: Added.
* fast/viewport/viewport-8.html: Added.
* fast/viewport/viewport-80-expected.txt: Added.
* fast/viewport/viewport-80.html: Added.
* fast/viewport/viewport-81-expected.txt: Added.
* fast/viewport/viewport-81.html: Added.
* fast/viewport/viewport-82.html: Added.
* fast/viewport/viewport-83-expected.txt: Added.
* fast/viewport/viewport-83.html: Added.
* fast/viewport/viewport-84.html: Added.
* fast/viewport/viewport-85-expected.txt: Added.
* fast/viewport/viewport-85.html: Added.
* fast/viewport/viewport-86-expected.txt: Added.
* fast/viewport/viewport-86.html: Added.
* fast/viewport/viewport-87.html: Added.
* fast/viewport/viewport-88-expected.txt: Added.
* fast/viewport/viewport-88.html: Added.
* fast/viewport/viewport-9-expected.txt: Added.
* fast/viewport/viewport-9.html: Added.
* fast/viewport/viewport-90-expected.txt: Added.
* fast/viewport/viewport-90.html: Added.
* platform/gtk/Skipped: Skip tests due to missing DRT support.
* platform/mac/Skipped: Skip tests due to missing DRT support.
* platform/win/Skipped: Skip tests due to missing DRT support.
* platform/qt/Skipped: Skip failing tests.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67376 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-05 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
commit-queue [Thu, 5 Aug 2010 17:50:27 +0000 (17:50 +0000)]
2010-08-05  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>

        Reviewed by Simon Hausmann.

        Make the viewport meta tag parser support the Android
        target-densitydpi extension.
        http://webkit.org/b/43492

        http://developer.android.com/reference/android/webkit/WebView.html
        Section 'Building web pages to support different screen densities'

        * dom/ViewportArguments.cpp:
        (WebCore::setViewportFeature):
        (WebCore::viewportErrorMessageTemplate):
        * dom/ViewportArguments.h:
        (WebCore::):
        (WebCore::ViewportArguments::ViewportArguments):
        (WebCore::ViewportArguments::hasCustomArgument):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64764 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoMerge branch 'qtwebkit-2.1' of gitorious.org:+qtwebkit-developers/webkit/qtwebkit...
Ademar de Souza Reis Jr [Mon, 13 Sep 2010 14:26:18 +0000 (11:26 -0300)]
Merge branch 'qtwebkit-2.1' of gitorious.org:+qtwebkit-developers/webkit/qtwebkit into qtwebkit-2.1

7 years ago2010-09-08 Yael Aharon <yael.aharon@nokia.com>
Yael Aharon [Wed, 8 Sep 2010 12:38:02 +0000 (12:38 +0000)]
2010-09-08  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Antonio Gomes.

        Missing EOL in expected test results
        https://bugs.webkit.org/show_bug.cgi?id=45352

        Add the missing EOL.

        * fast/notifications/notifications-click-event-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66974 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-27 John Gregg <johnnyg@google.com>
johnnyg [Tue, 31 Aug 2010 08:58:28 +0000 (08:58 +0000)]
2010-08-27  John Gregg  <johnnyg@google.com>

        Reviewed by David Levin.

        Notifications should support a click event
        https://bugs.webkit.org/show_bug.cgi?id=44800

        * public/WebNotification.h:
        * src/WebNotification.cpp:
        (WebKit::WebNotification::dispatchClickEvent):
2010-08-27  John Gregg  <johnnyg@google.com>

        Reviewed by David Levin.

        Notifications should support a click event
        https://bugs.webkit.org/show_bug.cgi?id=44800

        Test: fast/notifications/notifications-click-event.html

        * notifications/Notification.h:
        * notifications/Notification.idl:
2010-08-27  John Gregg  <johnnyg@google.com>

        Reviewed by David Levin.

        Notifications should support a click event
        https://bugs.webkit.org/show_bug.cgi?id=44800

        * fast/notifications/notifications-click-event-expected.txt: Added.
        * fast/notifications/notifications-click-event.html: Added.
        * platform/qt/Skipped:
2010-08-27  John Gregg  <johnnyg@google.com>

        Reviewed by David Levin.

        Notifications should support a click event.
        Adds necessary hooks to chromium's DRT so that clicks on desktop notifications
        can be simulated during a layout test.  Requires storing a list of active
        notifications so that they can be referred to later for clicking.
        https://bugs.webkit.org/show_bug.cgi?id=44800

        * DumpRenderTree/chromium/LayoutTestController.cpp:
        (LayoutTestController::LayoutTestController):
        (LayoutTestController::simulateDesktopNotificationClick):
        * DumpRenderTree/chromium/LayoutTestController.h:
        * DumpRenderTree/chromium/NotificationPresenter.cpp:
        (NotificationPresenter::simulateClick):
        (NotificationPresenter::show):
        (NotificationPresenter::cancel):
        (NotificationPresenter::objectDestroyed):
        * DumpRenderTree/chromium/NotificationPresenter.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66470 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-10 Yael Aharon <yael.aharon@nokia.com>
Yael Aharon [Sat, 11 Sep 2010 03:42:09 +0000 (03:42 +0000)]
2010-09-10  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] Support click event for notifications
        https://bugs.webkit.org/show_bug.cgi?id=44836

        * fast/notifications/notifications-click-event-expected.txt:
        * platform/qt/Skipped:
2010-09-10  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] Support click event for notifications
        https://bugs.webkit.org/show_bug.cgi?id=44836

        Propagate click events to JavaScript from either the
        platform plugn or from QSystemTrayIcon.
        Also added the method NotificationWrapper::openerPageUrl so that
        if the platform plugin can reopen the page that created the
        notification directly, when the user clicks the notification.

        Added DumpRenderTreeSupportQt::simulateDesktopNotificationClick
        for testing purpose.

        * Api/qwebkitplatformplugin.h:
        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
        (DumpRenderTreeSupportQt::simulateDesktopNotificationClick):
        * WebCoreSupport/DumpRenderTreeSupportQt.h:
        * WebCoreSupport/NotificationPresenterClientQt.cpp:
        (WebCore::NotificationWrapper::openerPageUrl):
        (WebCore::NotificationWrapper::notificationClicked):
        (WebCore::NotificationPresenterClientQt::displayNotification):
        (WebCore::NotificationPresenterClientQt::notificationClicked):
        * WebCoreSupport/NotificationPresenterClientQt.h:
        * examples/platformplugin/WebNotificationPresenter.cpp:
        (WebNotificationWidget::event):
        * examples/platformplugin/WebNotificationPresenter.h:
        (WebNotificationPresenter::WebNotificationPresenter):
        * examples/platformplugin/qwebkitplatformplugin.h:
2010-09-10  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] Support click event for notifications
        https://bugs.webkit.org/show_bug.cgi?id=44836

        Add support for simulateDesktopNotificationClick by calling
        back to DumpRenderTreeSupportQt.cpp.

        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
        (LayoutTestController::simulateDesktopNotificationClick):
        * DumpRenderTree/qt/LayoutTestControllerQt.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67272 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agodoc: Changed the title so lists of contents sort better.
hausmann@webkit.org [Sun, 12 Sep 2010 21:19:15 +0000 (21:19 +0000)]
doc: Changed the title so lists of contents sort better.

Patch by Martin Smith <martin.smith@nokia.com> on 2010-09-12
Reviewed by Simon Hausmann.

* docs/qtwebkit.qdoc:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67348 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoDoc: More work on the QML documentation.
hausmann@webkit.org [Sun, 12 Sep 2010 21:08:55 +0000 (21:08 +0000)]
Doc: More work on the QML documentation.

Patch by David Boddie <david.boddie@nokia.com> on 2010-09-12
Reviewed by Simon Hausmann.

* declarative/qdeclarativewebview.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67347 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qml] Ensure WebView gets focus when an editable node is clicked on.
hausmann@webkit.org [Sun, 12 Sep 2010 20:58:30 +0000 (20:58 +0000)]
[Qml] Ensure WebView gets focus when an editable node is clicked on.

Patch by Martin Jones <martin.jones@nokia.com> on 2010-09-12
Reviewed by Simon Hausmann.

Task-number: QTBUG-13342

* declarative/qdeclarativewebview.cpp:
(GraphicsWebView::mousePressEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67346 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoDoc: qdoc fixes.
hausmann@webkit.org [Sun, 12 Sep 2010 20:56:59 +0000 (20:56 +0000)]
Doc: qdoc fixes.

Patch by David Boddie <david.boddie@nokia.com> on 2010-09-12
Reviewed by Simon Hausmann.

* declarative/qdeclarativewebview.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67345 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] fix qt_webkit_version.pri install for in-Qt builds
hausmann@webkit.org [Sun, 12 Sep 2010 20:53:56 +0000 (20:53 +0000)]
[Qt] fix qt_webkit_version.pri install for in-Qt builds

Patch by Oswald Buddenhagen <oswald.buddenhagen@nokia.com> on 2010-09-12
Reviewed by Simon Hausmann.

Always add the target, even if building inside Qt - as opposed to the
headers and libraries, there are no rules for that coming from
qbase.pri.

Task-number: QTBUG-13306

* WebCore.pro:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67344 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoWebCore: [Qt] Let QtWebKit inject itself into the qt configuration
hausmann@webkit.org [Sun, 12 Sep 2010 20:50:22 +0000 (20:50 +0000)]
WebCore: [Qt] Let QtWebKit inject itself into the qt configuration

Patch by Oswald Buddenhagen <oswald.buddenhagen@nokia.com> on 2010-09-12
Reviewed by Simon Hausmann.

i.e., don't explicitly deal with qt_webkit_version.pri outside of the
webkit source directory.

Task-number: QTBUG-12379

* WebCore.pro:

WebKit/qt: [Qt] let WebKit inject itself into the qt configuration

Patch by Oswald Buddenhagen <oswald.buddenhagen@nokia.com> on 2010-09-12
Reviewed by Simon Hausmann.

Task-number: QTBUG-12379

* qt_webkit_version.pri: Use the faster + instead of *
operator to add webkit to the config.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67343 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Fix group of declarative web view in QML docs.
hausmann@webkit.org [Sun, 12 Sep 2010 20:44:02 +0000 (20:44 +0000)]
[Qt] Fix group of declarative web view in QML docs.

Patch by Martin Smith <martin.smith@nokia.com> on 2010-09-12
Reviewed by Simon Hausmann.

* declarative/qdeclarativewebview.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67342 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoAbsented missing functions
Simon Hausmann [Sun, 12 Sep 2010 12:35:52 +0000 (14:35 +0200)]
Absented missing functions

7 years ago2010-09-07 Kent Hansen <kent.hansen@nokia.com> qtwebkit-2.1-week36
kent.hansen [Tue, 7 Sep 2010 11:14:33 +0000 (11:14 +0000)]
2010-09-07  Kent Hansen  <kent.hansen@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] tst_QWebFrame::connectAndDisconnect() fails on WebKit trunk because __qt_sender__ is never set
        https://bugs.webkit.org/show_bug.cgi?id=44697

        When the signal handler is a JS function, __qt_sender__ is stuffed into a temporary
        object that's pushed onto the function's scope before the function is invoked, and
        popped again afterwards.

        We were pushing this new scope object _after_ calling JSFunction::getCallData(),
        and relying on JSC::call() to use the fresh scope chain from the function object.
        However, this is no longer the case; JSC::call() uses the scope chain passed in
        the CallData argument. Hence, we need to set up the scope before the function's
        CallData is queried.

        * bridge/qt/qt_runtime.cpp:
        (JSC::Bindings::QtConnectionObject::execute):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66875 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-09 Kristian Amlie <kristian.amlie@nokia.com>
commit-queue [Thu, 9 Sep 2010 12:04:35 +0000 (12:04 +0000)]
2010-09-09  Kristian Amlie  <kristian.amlie@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] Fixed incorrect Symbian scoping.

        The missing install functionality is only true for mmp based systems.

        https://bugs.webkit.org/show_bug.cgi?id=45268

        * WebCore.pro:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67080 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoPassing a 32-bit depth X pixmap to NPAPI windowless plugins is too inefficient.
Girish Ramakrishnan [Fri, 3 Sep 2010 09:50:27 +0000 (09:50 +0000)]
Passing a 32-bit depth X pixmap to NPAPI windowless plugins is too inefficient.
Instead, pass a X Pixmap that has same depth as the screen depth since graphics
operations are optimized for this depth.

https://bugs.webkit.org/show_bug.cgi?id=45167

Reviewed by Simon Hausmann.

* plugins/PluginPackage.cpp:
(WebCore::PluginPackage::determineQuirks):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66719 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-09-01 Mahesh Kulkarni <mahesh.kulkarni@nokia.com>
commit-queue [Wed, 1 Sep 2010 12:31:19 +0000 (12:31 +0000)]
2010-09-01  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>

        Reviewed by Laszlo Gombos.

        [Qt] QWebPage::allowGeolocationRequest should be async API
        https://bugs.webkit.org/show_bug.cgi?id=41364

        Enable all geolocation delayed permission layout test for Qt port

        * platform/qt/Skipped:
2010-09-01  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>

        Reviewed by Laszlo Gombos.

        [Qt] QWebPage::allowGeolocationRequest should be async API
        https://bugs.webkit.org/show_bug.cgi?id=41364

        Adding GeolocationPermissionClientQt.cpp/h to build script

        * WebCore.pro:
2010-09-01  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>

        Reviewed by Laszlo Gombos.

        [Qt] QWebPage::allowGeolocationRequest should be async API
        https://bugs.webkit.org/show_bug.cgi?id=41364

        Provides a new async API for geolocation permission. Using
        Notification API approach from qtwebkit. GeolocationPermissionClientQt
        maintains list of pending requests from WebCore and intimates them
        when client either allowes/denies the request. Also implements
        ChromeClientQt::cancelGeolocationPermissionRequestForFrame.

        * Api/qwebpage.cpp:
        (QWebPage::setUserPermission):
        * Api/qwebpage.h:
        * WebCoreSupport/ChromeClientQt.cpp:
        (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
        (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
        * WebCoreSupport/ChromeClientQt.h:
        * WebCoreSupport/GeolocationPermissionClientQt.cpp: Added.
        (WebCore::GeolocationPermissionClientQt::geolocationPermissionClient):
        (WebCore::GeolocationPermissionClientQt::GeolocationPermissionClientQt):
        (WebCore::GeolocationPermissionClientQt::~GeolocationPermissionClientQt):
        (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
        (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
        (WebCore::GeolocationPermissionClientQt::setPermission):
        * WebCoreSupport/GeolocationPermissionClientQt.h: Added.
        * tests/qwebpage/tst_qwebpage.cpp:
        (JSTestPage::requestPermission):
        (tst_QWebPage::geolocationRequestJS):
2010-09-01  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>

        Reviewed by Laszlo Gombos.

        [Qt] QWebPage::allowGeolocationRequest should be async API
        https://bugs.webkit.org/show_bug.cgi?id=41364

        Implements new async API for geolocation permission similar to
        Notification. WebPage maintains list of geolocation permission request
        QtWebkit and set's when LayoutTestController gets the access from test JS

        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
        (WebCore::WebPage::WebPage):
        (WebCore::WebPage::resetSettings):
        (WebCore::WebPage::requestPermission):
        (WebCore::WebPage::cancelPermission):
        (WebCore::WebPage::permissionSet):
        (WebCore::DumpRenderTree::DumpRenderTree):
        (WebCore::DumpRenderTree::processLine):
        (WebCore::DumpRenderTree::geolocationPermissionSet):
        * DumpRenderTree/qt/DumpRenderTreeQt.h:
        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
        (LayoutTestController::reset):
        (LayoutTestController::setGeolocationPermission):
        (LayoutTestController::setGeolocationPermissionCommon):
        * DumpRenderTree/qt/LayoutTestControllerQt.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66597 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-31 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain [Wed, 1 Sep 2010 01:55:40 +0000 (01:55 +0000)]
2010-08-31  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] tst_QWebPage::originatingObjectInNetworkRequests() fails on trunk
        https://bugs.webkit.org/show_bug.cgi?id=45001

        Fix the test, we should not use data encoded URL since we are not
        setting an URL but setting the substituteData directly.

        * tests/qwebpage/tst_qwebpage.cpp:
        (tst_QWebPage::originatingObjectInNetworkRequests):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66565 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-31 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain [Tue, 31 Aug 2010 12:57:44 +0000 (12:57 +0000)]
2010-08-31  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        JSC TimeoutChecker::didTimeOut overflows on ARM
        https://bugs.webkit.org/show_bug.cgi?id=38538

        Re-enabled the test that was skipped for Maemo 5.

        * tests/qwebpage/tst_qwebpage.cpp:
        (tst_QWebPage::infiniteLoopJS):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66478 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-31 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain [Tue, 31 Aug 2010 12:02:10 +0000 (12:02 +0000)]
2010-08-31  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        JSC TimeoutChecker::didTimeOut overflows on ARM
        https://bugs.webkit.org/show_bug.cgi?id=38538

        Make getCPUTime() return values relative to the first call.
        The previous implementation relied on simply on currentTime(), which
        return a time since epoch and not a time since the thread started. This
        made the return value of getCPUTime() overflow on 32 bits.

        * runtime/TimeoutChecker.cpp:
        (JSC::getCPUTime):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66475 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-28 Daniel Bates <dbates@rim.com>
Daniel Bates [Sat, 28 Aug 2010 16:14:19 +0000 (16:14 +0000)]
2010-08-28  Daniel Bates  <dbates@rim.com>

        Attempt to fix the Qt Windows and Qt Linux Release minimal builds
        after changeset 66297 <http://trac.webkit.org/changeset/66297>.

        * Api/qwebplugindatabase.cpp:
        (QWebPluginDatabase::plugins): Wrap the call to PluginPackage::ensurePluginLoaded
        in #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE).

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66307 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-27 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>
commit-queue [Sat, 28 Aug 2010 04:32:17 +0000 (04:32 +0000)]
2010-08-27  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] NPAPI Plugin metadata should be cached, and loading a plugin should not require loading every plugin
        https://bugs.webkit.org/show_bug.cgi?id=43179

        Add ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE flag to enable persistent
        NPAPI Plugin Cache. The flag is enabled by default.

        * wtf/Platform.h: Add ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE
2010-08-27  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Cache plugin info to a persistent database

        https://bugs.webkit.org/show_bug.cgi?id=43179

        Implement a cache of NPAPI plugin metadata. Write the metadata to aa
        file that gets rewritten if any plugin is added / removed.  Compilation
        of the feature is controlled by #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE)

        Currently only enabled for Qt UNIX flavors.

        * WebCore.pro:  Enable NETSCAPE_PLUGIN_METADATA_CACHE for UNIX builds
        * platform/qt/FileSystemQt.cpp:
        (WebCore::openFile): Added.
        (WebCore::readFromFile): Added.
        * plugins/PluginDatabase.cpp:
        (WebCore::persistentPluginMetadataCachePath): Static accessor for the path
        (WebCore::PluginDatabase::PluginDatabase): Add instance variable.
        (WebCore::PluginDatabase::refresh):
        (WebCore::PluginDatabase::pluginForMIMEType): Ensure returned plugin is loaded.
        (WebCore::PluginDatabase::MIMETypeForExtension): Ensure returned plugin is loaded.
        (WebCore::PluginDatabase::clear):
        (WebCore::fillBufferWithContentsOfFile): Static helper function.
        (WebCore::readUTF8String): Static helper function.
        (WebCore::readTime): Static helper function.
        (WebCore::PluginDatabase::loadPersistentMetadataCache):
        (WebCore::writeUTF8String): Static helper function.
        (WebCore::writeTime): Static helper function.
        (WebCore::PluginDatabase::updatePersistentMetadataCache): Added.
        (WebCore::PluginDatabase::isPersistentMetadataCacheEnabled): Added.
        (WebCore::PluginDatabase::setPersistentMetadataCacheEnabled):Added.
        (WebCore::PluginDatabase::persistentMetadataCachePath): Added.
        (WebCore::PluginDatabase::setPersistentMetadataCachePath): Added.
        * plugins/PluginDatabase.h:
        * plugins/PluginPackage.cpp:
        (WebCore::PluginPackage::PluginPackage): Add instance variable.
        (WebCore::PluginPackage::createPackageFromCache): Added.
        (WebCore::PluginPackage::ensurePluginLoaded): Added.
        * plugins/PluginPackage.h:
        (WebCore::PluginPackage::fullMIMEDescription): Added.
        * plugins/qt/PluginPackageQt.cpp:
        (WebCore::PluginPackage::fetchInfo): Split mime parsing.
        (WebCore::PluginPackage::setMIMEDescription): Added. Mime parsing.
2010-08-27  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Cache plugin info to a persistent database

        https://bugs.webkit.org/show_bug.cgi?id=43179

        Implement a cache of NPAPI plugin metadata. Write the metadata to aa
        file that gets rewritten if any plugin is added / removed.  Compilation
        of the feature is controlled by #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE)

        Currently only enabled for Qt UNIX flavors.

        * Api/qwebplugindatabase.cpp:
        (QWebPluginDatabase::plugins):  Match previous behavior: ensure all returned plugins are loaded.
        * Api/qwebsettings.cpp:
        (QWebSettings::enablePersistentStorage): Set plugin cache path.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66297 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-27 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain [Sat, 28 Aug 2010 05:18:29 +0000 (05:18 +0000)]
2010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Antonio Gomes.

        [Qt] tst_QWebView::focusInputTypes() fails on MeeGo Handset with WebKit 2.1
        https://bugs.webkit.org/show_bug.cgi?id=44761

        Make the test more robust to changes in the execution environment. The click
        are now correctly simulated, and the position are determined from the content.

        The test also create the view and page on the stack to avoid the leak when the
        test is failing.

        * tests/qwebview/tst_qwebview.cpp:
        (tst_QWebView::focusInputTypes):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66298 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-27 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain [Fri, 27 Aug 2010 14:03:17 +0000 (14:03 +0000)]
2010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] tst_QWebFrame::hitTestContent() fails on Meego Handset
        https://bugs.webkit.org/show_bug.cgi?id=44701

        Make the test more robust. The position of the text is not relying
        on the size of the fonts anymore.

        * tests/qwebframe/tst_qwebframe.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66219 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-27 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain [Fri, 27 Aug 2010 18:40:39 +0000 (18:40 +0000)]
2010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] tst_QWebFrame::inputFieldFocus() fails on MeeGo Handset with QtWebKit 2.1
        https://bugs.webkit.org/show_bug.cgi?id=44703

        Make the test more robust to changes in the execution environment.
        The position where the mouse events are sent is now computed from the element geometry,
        this make the test less dependent on the fonts.

        The test now also make sure the window manager mapped the window on screen
        before attempting to send the events.

        * tests/qwebframe/tst_qwebframe.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66241 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-27 Antonio Gomes <tonikitoo@webkit.org>
Antonio Gomes [Fri, 27 Aug 2010 14:15:18 +0000 (14:15 +0000)]
2010-08-27  Antonio Gomes  <tonikitoo@webkit.org>

        Unreviewed complementary fix to r66217.

        * Api/qwebpage.cpp:
        * Api/qwebview.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66221 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-26 Antonio Gomes <tonikitoo@webkit.org>
Antonio Gomes [Fri, 27 Aug 2010 13:45:03 +0000 (13:45 +0000)]
2010-08-26  Antonio Gomes  <tonikitoo@webkit.org>

        Reviewed by Simon Hausmann.

        [Qt] Add support for automatically creating new windows in QWebView
        https://bugs.webkit.org/show_bug.cgi?id=29847

        Improved the documentation of createWindow methods of both QWebView and
        QWebPage by mentioning that for any of them be called, QWebSettings'
        JavaScriptCanOpenWindows must be set to true.

        * Api/qwebpage.cpp:
        * Api/qwebview.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66217 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoUnreviewed.
Simon Hausmann [Thu, 26 Aug 2010 12:45:09 +0000 (12:45 +0000)]
Unreviewed.

Update test results after clip-rect changes as part of
https://bugs.webkit.org/show_bug.cgi?id=44594

* platform/qt/plugins/resize-from-plugin-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66097 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Set the clipRect correctly in windowed and windowless mode.
Girish Ramakrishnan [Thu, 26 Aug 2010 11:56:40 +0000 (11:56 +0000)]
[Qt] Set the clipRect correctly in windowed and windowless mode.
In Windowed mode, the values are in page coordinates. In Windowless
mode the values are in drawable coordinates. Setting these values is
purely academic since they are not used by Flash. However, there is a
possibility that plugins might infer a 'null' clipRect to mean 'invisible'.

https://bugs.webkit.org/show_bug.cgi?id=44594

Reviewed by Simon Hausmann.

* plugins/qt/PluginViewQt.cpp:
(WebCore::PluginView::setNPWindowIfNeeded):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66095 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoMerge branch 'qtwebkit-2.1' of gitorious.org:+qtwebkit-developers/webkit/qtwebkit...
Ademar de Souza Reis Jr [Thu, 26 Aug 2010 15:57:54 +0000 (12:57 -0300)]
Merge branch 'qtwebkit-2.1' of gitorious.org:+qtwebkit-developers/webkit/qtwebkit into qtwebkit-2.1

7 years ago2010-08-26 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain [Thu, 26 Aug 2010 12:06:22 +0000 (12:06 +0000)]
2010-08-26  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] tst_QWebFrame::popupFocus() hardcode the element position
        https://bugs.webkit.org/show_bug.cgi?id=44674

        This patch dynamically find the position of the combo element instead
        of hardcoding a position to click.

        * tests/qwebframe/tst_qwebframe.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66096 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-26 Simon Hausmann <simon.hausmann@nokia.com>
Simon Hausmann [Thu, 26 Aug 2010 12:50:54 +0000 (14:50 +0200)]
2010-08-26  Simon Hausmann  <simon.hausmann@nokia.com>

        Skip two more Geolocation tests that are also skipped on the trunk currently

        * platform/qt/Skipped:

7 years ago2010-08-22 Marc Mutz <marc.mutz@kdab.com>
commit-queue [Mon, 23 Aug 2010 00:14:00 +0000 (00:14 +0000)]
2010-08-22  Marc Mutz  <marc.mutz@kdab.com>

        Reviewed by Antonio Gomes.

        [Qt] Actually emit the QWebView::selectionChanged() signal

        https://bugs.webkit.org/show_bug.cgi?id=44252

        * Api/qwebview.cpp:
        (QWebView::setPage): Connect QWebPage::selectionChanged() to QWebView::selectionChanged()

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65789 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Allow wmode=transparent in QWebView on Maemo5 after r65775.
Girish Ramakrishnan [Mon, 23 Aug 2010 08:10:30 +0000 (08:10 +0000)]
[Qt] Allow wmode=transparent in QWebView on Maemo5 after r65775.

https://bugs.webkit.org/show_bug.cgi?id=44043

Reviewed by Ariya Hidayat.

* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::createPlugin):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65796 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] When using the raster graphics system on Maemo5, allow
Girish Ramakrishnan [Sat, 21 Aug 2010 05:14:18 +0000 (05:14 +0000)]
[Qt] When using the raster graphics system on Maemo5, allow
Flash to render directly into the raster window surface.
wmode=transparent is now supported as a result of this change.

Reviewed by Ariya Hidayat.

https://bugs.webkit.org/show_bug.cgi?id=44043

* plugins/qt/PluginViewQt.cpp:
(WebCore::PluginView::paintUsingImageSurfaceExtension):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65775 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Inject wmode=opaque for both QWebView and QGraphicsWebView on Maemo5
Girish Ramakrishnan [Thu, 19 Aug 2010 14:47:23 +0000 (14:47 +0000)]
[Qt] Inject wmode=opaque for both QWebView and QGraphicsWebView on Maemo5
as Flash XEmbed support is flaky.

https://bugs.webkit.org/show_bug.cgi?id=44043

Reviewed by Kenneth Christiansen.

* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::createPlugin):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65668 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Implement Maemo5 local rendering NPAPI extension. See
Girish Ramakrishnan [Wed, 18 Aug 2010 16:52:32 +0000 (16:52 +0000)]
[Qt] Implement Maemo5 local rendering NPAPI extension. See
https://wiki.mozilla.org/Plugins:NokiaMaemoImageSurface for details.

With the local rendering extension, Flash will paint into a 16-bit surface.
For wmode=transparent, Flash expects the surface to contain the contents
beneath it. As it is tricky to implement the content propagation across all
graphics systems, transparent Flash is not supported. We just fill the surface
with white and wmode=transparent behaves the same as wmode=opaque with a white
background.

Reviewed by Kenneth Rohde Christiansen.

https://bugs.webkit.org/show_bug.cgi?id=44043

* WebCore.pro:
* plugins/PluginView.cpp:
(WebCore::PluginView::setValue):
(WebCore::PluginView::PluginView):
* plugins/PluginView.h:
* plugins/qt/PluginViewQt.cpp:
(WebCore::PluginView::updatePluginWidget):
(WebCore::PluginView::paintUsingImageSurfaceExtension):
(WebCore::PluginView::paint):
(WebCore::PluginView::platformGetValueStatic):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65612 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoReviewed by Antonio Gomes.
Girish Ramakrishnan [Wed, 18 Aug 2010 03:53:08 +0000 (03:53 +0000)]
Reviewed by Antonio Gomes.

[Qt] On Maemo5, there is no libgdk-x11-2.0.so symlink. Look for
libgdk-x11-2.0.so.0 instead on X11 and Maemo5.

https://bugs.webkit.org/show_bug.cgi?id=44043

* plugins/qt/PluginViewQt.cpp:
(WebCore::getPluginDisplay):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65586 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoSet PluginQuirkRequiresDefaultScreenDepth for all Flash versions and not
Girish Ramakrishnan [Tue, 17 Aug 2010 18:39:54 +0000 (18:39 +0000)]
Set PluginQuirkRequiresDefaultScreenDepth for all Flash versions and not
just Flash 10.

Reviewed by Kenneth Rohde Christiansen.

https://bugs.webkit.org/show_bug.cgi?id=44043

* plugins/PluginPackage.cpp:
(WebCore::PluginPackage::determineQuirks):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65524 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Fix failing layout-tests after r64114
Tor Arne Vestbø [Tue, 27 Jul 2010 10:05:22 +0000 (10:05 +0000)]
[Qt] Fix failing layout-tests after r64114

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64119 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoUpdate expected result as well to match r64115.
Tor Arne Vestbø [Tue, 27 Jul 2010 09:29:03 +0000 (09:29 +0000)]
Update expected result as well to match r64115.

Reviewed by NOBODY.

* fast/events/spatial-navigation/snav-clipped-overflowed-content-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64116 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoFix GTK layout-test break after r64114
Tor Arne Vestbø [Tue, 27 Jul 2010 09:12:40 +0000 (09:12 +0000)]
Fix GTK layout-test break after r64114

Reviewed by NOBODY.

Skipping the test for Qt until we can find a non-fragile way to write
the test.

* fast/events/spatial-navigation/snav-clipped-overflowed-content.html:
* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64115 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Change default font from sans-serif to serif
Tor Arne Vestbø [Tue, 27 Jul 2010 08:38:23 +0000 (08:38 +0000)]
[Qt] Change default font from sans-serif to serif

Reviewed by Simon Hausmann.

This matches what other ports and browser engines do.

We now also use QFont's defaultFontFamily() to resolve the
correct fonts for each platform. For Qt >= 4.7 we can take
advantage of the new enums for generic font families.

The spatial-navigation test had to be changed due to the
fragile nature of the down-action. By changing the font we
hit the case where the two down actions were not enough to
scroll the link into view.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64114 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoUnreviewed build fix.
steveblock@google.com [Wed, 4 Aug 2010 11:39:33 +0000 (11:39 +0000)]
Unreviewed build fix.

Add new Geolocation delayed permission tests to Qt skipped list
https://bugs.webkit.org/show_bug.cgi?id=43478

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64640 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago[Qt] Request for permission before starting Geolocation service
Csaba Osztrogonac [Wed, 18 Aug 2010 17:51:24 +0000 (17:51 +0000)]
[Qt] Request for permission before starting Geolocation service
https://bugs.webkit.org/show_bug.cgi?id=42027

Patch by Mahesh Kulkarni <mahesh.kulkarni@nokia.com> on 2010-08-18
Reviewed by Steve Block.

Handles starting location acquisition when request is granted for ports using
"!CLIENT_BASED_GEOLOCATION and PREEMPT_GEOLOCATION_PERMISSION" policy
Only Qt port as of today uses the above combination. Enable
PREEMPT_GEOLOCATION_PERMISSION for qt port.

Below tests cover these changes on platform using PREEMPT_GEOLOCATION_PERMISSION
- fast/dom/Geolocation/delayed-permission-allowed.html
- fast/dom/Geolocation/delayed-permission-denied.html
- fast/dom/Geolocation/delayed-permission-allowed-for-multiple-requests.html
- fast/dom/Geolocation/delayed-permission-denied-for-multiple-requests.html

* WebCore.pro:
* page/Geolocation.cpp:
(WebCore::Geolocation::handlePendingPermissionNotifiers):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65616 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-18 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue [Wed, 18 Aug 2010 16:09:12 +0000 (16:09 +0000)]
2010-08-18  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r65603.
        http://trac.webkit.org/changeset/65603
        https://bugs.webkit.org/show_bug.cgi?id=44179

        4 tests crash on Qt bot (Requested by Ossy on #webkit).

        * WebCore.pro:
        * page/Geolocation.cpp:
        (WebCore::Geolocation::handlePendingPermissionNotifiers):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65611 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoUnreviewed build fix.
steveblock@google.com [Wed, 4 Aug 2010 11:39:33 +0000 (11:39 +0000)]
Unreviewed build fix.

Add new Geolocation delayed permission tests to Qt skipped list
https://bugs.webkit.org/show_bug.cgi?id=43478

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64640 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years agoAdds Geolocation LayoutTests for the case where permission is not granted or denied...
steveblock@google.com [Wed, 4 Aug 2010 11:13:20 +0000 (11:13 +0000)]
Adds Geolocation LayoutTests for the case where permission is not granted or denied immediately
https://bugs.webkit.org/show_bug.cgi?id=40002

Reviewed by Alexey Proskuryakov.

WebKitTools:

The code in LayoutTestController::setGeolocationPermission() was moved to
setGeolocationPermissionCommon() to allow each port to provide its own
implementation of setGeolocationPermission().

For the Mac port, setGeolocationPermission() notifies the UIDelegate of the
new permission, so it can call back to WebCore if permission requests are in
progress and are waiting for a response. A minor fix to the Mac
MockGeolocationProvider was also required to make sure that the mock provider
calls back to WebCore when it is first started.

For other ports, LayoutTestController::setGeolocationPermission() is not
implemented.

* DumpRenderTree/LayoutTestController.cpp:
(LayoutTestController::setGeolocationPermissionCommon):
* DumpRenderTree/LayoutTestController.h:
* DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
(LayoutTestController::setGeolocationPermission):
* DumpRenderTree/mac/LayoutTestControllerMac.mm:
(LayoutTestController::setGeolocationPermission):
* DumpRenderTree/mac/MockGeolocationProvider.mm:
(-[MockGeolocationProvider registerWebView:]):
* DumpRenderTree/mac/UIDelegate.h:
* DumpRenderTree/mac/UIDelegate.mm:
(-[UIDelegate webView:decidePolicyForGeolocationRequestFromOrigin:frame:listener:]):
(-[UIDelegate setGeolocationPermission:]):
(-[UIDelegate dealloc]):
* DumpRenderTree/win/LayoutTestControllerWin.cpp:
(LayoutTestController::setGeolocationPermission):
* DumpRenderTree/wx/LayoutTestControllerWx.cpp:
(LayoutTestController::setGeolocationPermission):

LayoutTests:

* fast/dom/Geolocation/delayed-permission-allowed-expected.txt: Added.
* fast/dom/Geolocation/delayed-permission-allowed.html: Added.
* fast/dom/Geolocation/delayed-permission-denied-expected.txt: Added.
* fast/dom/Geolocation/delayed-permission-denied.html: Added.
* fast/dom/Geolocation/script-tests/delayed-permission-allowed.js: Added.
* fast/dom/Geolocation/script-tests/delayed-permission-denied.js: Added.
* platform/gtk/Skipped: Added new tests to GTK skipped lists

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64639 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-18 Mahesh Kulkarni <mahesh.kulkarni@nokia.com>
commit-queue [Wed, 18 Aug 2010 12:36:33 +0000 (12:36 +0000)]
2010-08-18  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>

        Reviewed by Steve Block.

        [Qt] Request for permission before starting Geolocation service
        https://bugs.webkit.org/show_bug.cgi?id=42027

        Handles starting location acquisition when request is granted for ports using
        "!CLIENT_BASED_GEOLOCATION and PREEMPT_GEOLOCATION_PERMISSION" policy
        Only Qt port as of today uses the above combination. Enable
        PREEMPT_GEOLOCATION_PERMISSION for qt port.

        Below tests cover these changes on platform using PREEMPT_GEOLOCATION_PERMISSION
        - fast/dom/Geolocation/delayed-permission-allowed.html
        - fast/dom/Geolocation/delayed-permission-denied.html
        - fast/dom/Geolocation/delayed-permission-allowed-for-multiple-requests.html
        - fast/dom/Geolocation/delayed-permission-denied-for-multiple-requests.html

        * WebCore.pro:
        * page/Geolocation.cpp:
        (WebCore::Geolocation::handlePendingPermissionNotifiers):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65603 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-17 Mahesh Kulkarni <mahesh.kulkarni@nokia.com>
commit-queue [Tue, 17 Aug 2010 16:54:23 +0000 (16:54 +0000)]
2010-08-17  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>

        Reviewed by Steve Block.

        Geolocation preemptive permissions policy is buggy
        https://bugs.webkit.org/show_bug.cgi?id=42811

        Adds cases where permission is niether denied or granted immediately and multiple
        requests are waiting.

        * fast/dom/Geolocation/delayed-permission-allowed-for-multiple-requests-expected.txt: Added.
        * fast/dom/Geolocation/delayed-permission-allowed-for-multiple-requests.html: Added.
        * fast/dom/Geolocation/delayed-permission-denied-for-multiple-requests-expected.txt: Added.
        * fast/dom/Geolocation/delayed-permission-denied-for-multiple-requests.html: Added.
        * fast/dom/Geolocation/script-tests/delayed-permission-allowed-for-multiple-requests.js: Added.
        (allowPermission):
        ():
        (maybeFinishTest):
        * fast/dom/Geolocation/script-tests/delayed-permission-denied-for-multiple-requests.js: Added.
        (denyPermission):
        (maybeFinishTest):
        * platform/gtk/Skipped:
        * platform/qt/Skipped:
2010-08-17  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>

        Reviewed by Steve Block.

        Geolocation preemptive permissions policy is buggy
        https://bugs.webkit.org/show_bug.cgi?id=42811

        While waiting for permission, m_startRequestPermissionNotifier was
        used to consider only one pending request. This patch implements a set
        m_pendingForPermissionNotifiers to maintain set of pending requests.
        When user grants/denies permission all listeners will be notified.
        Also fixed issue with hasZeroTimeout() where startTimerIfNeeded() has
        to start irrespective of permission state

        Tests: fast/dom/Geolocation/delayed-permission-allowed-for-multiple-requests.html
               fast/dom/Geolocation/delayed-permission-denied-for-multiple-requests.html

        * WebCore.pro:
        * page/Geolocation.cpp:
        (WebCore::Geolocation::startRequest):
        (WebCore::Geolocation::setIsAllowed):
        (WebCore::Geolocation::startUpdating):
        (WebCore::Geolocation::handlePendingPermissionNotifiers):
        * page/Geolocation.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65511 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-07-27 Steve Block <steveblock@google.com>
Steve Block [Tue, 27 Jul 2010 14:12:25 +0000 (14:12 +0000)]
2010-07-27  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Client-based Geolocation does not pass enableHighAccuracy option to controller and client
        https://bugs.webkit.org/show_bug.cgi?id=40374

        This change passes the enableHighAccuracy request option to the GeolocationController.
        The GeolocationController tracks whether this should be used by the client.

        No new tests possible as the mock provider doesn't support this feature.

        * page/Geolocation.cpp:
        (WebCore::Geolocation::setIsAllowed):
        (WebCore::Geolocation::startUpdating):
        * page/GeolocationController.cpp:
        (WebCore::GeolocationController::addObserver):
        (WebCore::GeolocationController::removeObserver):
        * page/GeolocationController.h:
        * page/GeolocationControllerClient.h:
2010-07-27  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Client-based Geolocation does not pass enableHighAccuracy option to controller and client
        https://bugs.webkit.org/show_bug.cgi?id=40374

        Stub out setEnableHighAccuracy method for the Mac port.

        * WebCoreSupport/WebGeolocationControllerClient.h:
        (WebGeolocationControllerClient::setEnableHighAccuracy):
2010-07-27  Steve Block  <steveblock@google.com>

        Reviewed by Alexey Proskuryakov.

        Client-based Geolocation does not pass enableHighAccuracy option to controller and client
        https://bugs.webkit.org/show_bug.cgi?id=40374

        Stub out setEnableHighAccuracy method for the Win port.

        * WebCoreSupport/WebGeolocationControllerClient.h:
        (WebGeolocationControllerClient::setEnableHighAccuracy):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64126 268f45cc-cd09-0410-ab3c-d52691b4dbfc

7 years ago2010-08-25 Simon Hausmann <simon.hausmann@nokia.com>
Simon Hausmann [Wed, 25 Aug 2010 08:10:07 +0000 (10:10 +0200)]
2010-08-25  Simon Hausmann  <simon.hausmann@nokia.com>

        Fix up previous fast/events/xsl skip entry to skip the correct test.

        * platform/qt/Skipped:

7 years ago2010-08-24 Simon Hausmann <simon.hausmann@nokia.com>
Simon Hausmann [Tue, 24 Aug 2010 15:27:29 +0000 (17:27 +0200)]
2010-08-24  Simon Hausmann  <simon.hausmann@nokia.com>

        Skip more xsl related tests.

        * platform/qt/Skipped:

7 years ago[Qt][Symbian] Make sure WebKit headers are included before platform headers on Symbian
hausmann@webkit.org [Tue, 24 Aug 2010 08:51:39 +0000 (08:51 +0000)]
[Qt][Symbian] Make sure WebKit headers are included before platform headers on Symbian
https://bugs.webkit.org/show_bug.cgi?id=31273

Patch by Laszlo Gombos <laszlo.1.gombos@nokia.com> on 2010-08-24
Reviewed by Simon Hausmann.

On Symbian PREPEND_INCLUDEPATH is the best way to make sure that
WebKit headers are included before platform headers. On all other
platforms continue to use INCLUDEPATH (as before).

This patch also removed the workarounds that are put in place
now that we have a better solution.

No new tests as there is no new functionality.

* WebCore.pro:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65877 268f45cc-cd09-0410-ab3c-d52691b4dbfc