2012-03-11 Vsevolod Vlasov Web Inspector: Network panel does not show responses for application/json data https://bugs.webkit.org/show_bug.cgi?id=80684 Reviewed by Pavel Feldman. Test: http/tests/inspector/network/async-xhr-json-mime-type.html * inspector/InspectorPageAgent.cpp: (WebCore::createXHRTextDecoder): (WebCore::InspectorPageAgent::cachedResourceContent): * inspector/InspectorPageAgent.h: * inspector/NetworkResourcesData.cpp: (WebCore::createOtherResourceTextDecoder): (WebCore): (WebCore::NetworkResourcesData::responseReceived): 2012-03-11 Vsevolod Vlasov Web Inspector: CSS content is not shown when stylesheet is loaded with invalid mime type in quirks mode. https://bugs.webkit.org/show_bug.cgi?id=80528 Reviewed by Pavel Feldman. Test: http/tests/inspector/resource-tree/resource-tree-invalid-mime-type-css-content.html * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::cachedResourceContent): 2012-03-11 Viatcheslav Ostapenko [Qt] [WK2] Support threaded renderer in WK2 https://bugs.webkit.org/show_bug.cgi?id=76661 Reviewed by Noam Rosenthal. Add TransformationMatrix conversions from/to Qt QMatrix4x4. Used by Qt WebKit2 rendering and tested by Qt WebKit2 API tests. * platform/graphics/qt/TransformationMatrixQt.cpp: (WebCore::TransformationMatrix::operator QMatrix4x4): (WebCore): (WebCore::TransformationMatrix::TransformationMatrix): * platform/graphics/transforms/TransformationMatrix.h: (TransformationMatrix): 2012-03-09 Jon Lee Rename NotificationPresenter to NotificationClient https://bugs.webkit.org/show_bug.cgi?id=80488 Reviewed by Kentaro Hara. * notifications/NotificationCenter.h: Renamed from notifications/NotificationPresenter.h. Refactor to use renamed WebCore::NotificationClient. * GNUmakefile.list.am: * Target.pri: * WebCore.exp.in: * WebCore.gypi: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * notifications/Notification.cpp: (WebCore::Notification::Notification): (WebCore::Notification::show): (WebCore::Notification::cancel): (WebCore::Notification::contextDestroyed): (WebCore::Notification::finishLoading): * notifications/NotificationCenter.cpp: (WebCore::NotificationCenter::create): (WebCore::NotificationCenter::NotificationCenter): (WebCore::NotificationCenter::checkPermission): (WebCore::NotificationCenter::requestPermission): (WebCore::NotificationCenter::disconnectFrame): * notifications/NotificationController.cpp: (WebCore::NotificationController::NotificationController): (WebCore::NotificationController::create): (WebCore::NotificationController::clientFrom): (WebCore::provideNotification): * notifications/NotificationController.h: (WebCore): (NotificationController): (WebCore::NotificationController::client): * page/DOMWindow.cpp: (WebCore::DOMWindow::webkitNotifications): * page/DOMWindow.h: (DOMWindow): * workers/WorkerContext.cpp: (WebCore::WorkerContext::webkitNotifications): * workers/WorkerThread.cpp: (WebCore::WorkerThread::WorkerThread): * workers/WorkerThread.h: (WebCore): (WebCore::WorkerThread::getNotificationClient): (WebCore::WorkerThread::setNotificationClient): (WorkerThread): 2012-03-10 Julien Chaffraix RenderObject with 'resize' different from 'none' should have a RenderLayer https://bugs.webkit.org/show_bug.cgi?id=80738 Reviewed by James Robinson. Covered by fast/css/resize-single-axis.html. * rendering/RenderBox.h: (WebCore::RenderBox::requiresLayerForOverflowClip): The resizer logic is tied to RenderLayer so force a RenderLayer to be allocated if resize() != RESIZE_NONE. 2012-03-10 Stephen White Unreviewed, rolling out r110358. http://trac.webkit.org/changeset/110358 https://bugs.webkit.org/show_bug.cgi?id=80706 No improvement on specified benchmarks. * dom/ContainerNode.cpp: (WebCore::collectNodes): (WebCore::collectTargetNodes): 2012-03-10 MORITA Hajime ShadowTree uses weak iteration patterns https://bugs.webkit.org/show_bug.cgi?id=80572 Reviewed by Dimitri Glazkov. Patch by Adam Barth. This patch moves various ShadowTree to using a better iteration pattern in which we collect all the ShadowRoots we're planning to iterate into a vector and then iterate over them. * dom/ShadowTree.cpp: (ShadowRootVector): (WebCore::ShadowRootVector::ShadowRootVector): (WebCore): (WebCore::ShadowTree::removeAllShadowRoots): (WebCore::ShadowTree::insertedIntoDocument): (WebCore::ShadowTree::removedFromDocument): (WebCore::ShadowTree::insertedIntoTree): (WebCore::ShadowTree::removedFromTree): (WebCore::ShadowTree::willRemove): 2012-03-10 Sheriff Bot Unreviewed, rolling out r110363. http://trac.webkit.org/changeset/110363 https://bugs.webkit.org/show_bug.cgi?id=80757 link error in chromium: unresolved external symbol webkit_support::CreateScopedTempDirectory(void) (Requested by ukai_home on #webkit). * Modules/indexeddb/IDBLevelDBBackingStore.cpp: (WebCore::IDBLevelDBBackingStore::open): * platform/leveldb/LevelDBDatabase.cpp: * platform/leveldb/LevelDBDatabase.h: (LevelDBDatabase): 2012-03-09 Robert Kroeger Handle more Gesture* events by performing scrolls on the correct target ScrollableArea https://bugs.webkit.org/show_bug.cgi?id=80311 Implement GestureScroll* events via re-use of WheelEvent dispatch. Reviewed by James Robinson. Layout tests previously submited as https://bugs.webkit.org/show_bug.cgi?id=80201 and unit test added as part of this patch. * page/EventHandler.cpp: (WebCore::wheelGranularityToScrollGranularity): Refactoring. (WebCore): (WebCore::scrollNode): (WebCore::EventHandler::EventHandler): (WebCore::EventHandler::clear): (WebCore::EventHandler::handleWheelEvent): (WebCore::EventHandler::defaultWheelEventHandler): (WebCore::EventHandler::handleGestureEvent): Added GestureScrollBegin & End. (WebCore::EventHandler::handleGestureTap): (WebCore::EventHandler::handleGestureScrollUpdate): (WebCore::EventHandler::handleGestureScrollCore): Refactoring. * page/EventHandler.h: (EventHandler): * platform/PlatformWheelEvent.h: Added additional scroll type. * platform/ScrollAnimator.cpp: (WebCore::ScrollAnimator::handleWheelEvent): Forward additional scroll type. * platform/ScrollAnimator.h: (WebCore): * platform/ScrollAnimatorNone.cpp: (WebCore::ScrollAnimatorNone::ScrollAnimatorNone): Handle additional scroll type. (WebCore::ScrollAnimatorNone::fireUpAnAnimation): (WebCore): (WebCore::ScrollAnimatorNone::scroll): * platform/ScrollAnimatorNone.h: (ScrollAnimatorNone): * platform/ScrollTypes.h: Added an additional scroll type. * platform/ScrollableArea.cpp: (WebCore::ScrollableArea::scroll): 2012-03-09 Erik Arvidsson [V8] Fix a fixme in v8 bindings https://bugs.webkit.org/show_bug.cgi?id=80734 Reviewed by Kentaro Hara. No new tests. Covered by existing tests. * bindings/v8/V8Binding.cpp: (WebCore::toInt32): (WebCore::toUInt32): 2012-03-09 Lauro Neto [Qt] WebCore/Target.pri contains obsolete FileStreamProxy.h reference. https://bugs.webkit.org/show_bug.cgi?id=80730 Reviewed by Tor Arne Vestbø. Build fix. Target.pri was still including old FileStreamProxy.h. * Target.pri: 2012-03-05 Cem Kocagil Pan scroll icon is painted at incorrect coordinates in frames https://bugs.webkit.org/show_bug.cgi?id=79378 Convert client coordinates to parent ScrollView coordinates Reviewed by Antonio Gomes * platform/ScrollView.cpp: (WebCore::ScrollView::paintPanScrollIcon): 2012-03-09 Joshua Bell IndexedDB: Handle LevelDB database corruption https://bugs.webkit.org/show_bug.cgi?id=79413 Add LevelDBDatabase::destroy() method so that clients can retry if open() fails. Reviewed by Tony Chang. Test: webkit_unit_tests --gtest_filter='LevelDBDatabaseTest.CorruptionTest' * Modules/indexeddb/IDBLevelDBBackingStore.cpp: Implement open/destroy/open strategy. (WebCore::IDBLevelDBBackingStore::open): * platform/leveldb/LevelDBDatabase.cpp: (WebCore::LevelDBDatabase::destroy): (WebCore): * platform/leveldb/LevelDBDatabase.h: (LevelDBDatabase): 2012-03-09 Jessie Berlin Fix one of the Windows build warnings. * html/track/TextTrackCueList.idl: Add a newline to the end of the file. 2012-03-09 Tyler Abbott BlackBerry PlayBook doesn't sniff mime types https://bugs.webkit.org/show_bug.cgi?id=73869 Reviewed by Rob Buis. Hook up MIMESniffing for BlackBerry. Override Content-Types will not be overriden. File extensions will be trusted when content is loaded from disk. No tests, BlackBerry tests are not yet present in webkit.org codebase. * PlatformBlackBerry.cmake: * platform/network/blackberry/NetworkJob.cpp: (WebCore::NetworkJob::NetworkJob): (WebCore::NetworkJob::initialize): (WebCore::NetworkJob::handleNotifyDataReceived): (WebCore::NetworkJob::sendResponseIfNeeded): * platform/network/blackberry/NetworkJob.h: (NetworkJob): 2012-03-09 Enrica Casucci Move WebNSURLExtras code down to WebCore. https://bugs.webkit.org/show_bug.cgi?id=80611 Reviewed by Alexey Proskuryakov. * WebCore.exp.in: Added new exported functions. * WebCore.xcodeproj/project.pbxproj: Added WebCoreNSURLExtras.* * platform/FileSystem.h: Added setMetadataURL. * platform/mac/FileSystemMac.mm: (WebCore::setMetaData): Added. (WebCore::setMetadataURL): Added. * platform/mac/WebCoreNSStringExtras.h: * platform/mac/WebCoreNSStringExtras.mm: (hasCaseInsensitivePrefix): Added. * platform/mac/WebCoreNSURLExtras.h: Added. * platform/mac/WebCoreNSURLExtras.mm: Added. * platform/mac/WebCoreObjCExtras.h: * platform/mac/WebCoreSystemInterface.h: * platform/mac/WebCoreSystemInterface.mm: 2012-03-09 Tim Dresser [chromium] Increase size of Combo Box Options for touch and high DPI devices https://bugs.webkit.org/show_bug.cgi?id=80027 Reviewed by Darin Fisher. Scale Combo box popups by defaultDeviceScaleFactor, and add padding to