[Qt] Make use of ASCIILiteral in PlatformKeyboardEventQt.cpp
https://bugs.webkit.org/show_bug.cgi?id=97612

Patch by Marcelo Lira <marcelo.lira@openbossa.org> on 2012-09-26
Reviewed by Jocelyn Turcotte.

String literals returned by keyIdentifierForQtKeyCode and
keyTextForKeyEvent now make use of more efficient ASCIILiteral.

* platform/qt/PlatformKeyboardEventQt.cpp:
(WebCore::keyIdentifierForQtKeyCode):
(WebCore::keyTextForKeyEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: paint inspector overlay on a transparency layer
https://bugs.webkit.org/show_bug.cgi?id=97659

Reviewed by Pavel Feldman.

Set composite operation to copy and begin transparency layer before painting the
    frame view of overlay page, so that text on transparent background is properly rendered.

* inspector/InspectorOverlay.cpp:
(WebCore::InspectorOverlay::paint):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] [DRT] eventSender.keyDown() doesn't support Ctrl key modifier
https://bugs.webkit.org/show_bug.cgi?id=97665

Patch by Xiaobo Wang <xbwang@torchmobile.com.cn> on 2012-09-26
Reviewed by Rob Buis.

This patch fixes test fast/forms/input-text-option-delete.html.

* DumpRenderTree/blackberry/EventSender.cpp:
(keyDownCallback):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unreviewed gardening after r129629.

Marking http/tests/security/xss-eval.html as failing again because of the fix being rolled out.

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[soup] Obey setTimeoutInterval in soup backend
https://bugs.webkit.org/show_bug.cgi?id=94796

Reviewed by Gustavo Noronha Silva.

Implementing ResourceHandle's setTimeoutInterval support for the soup backend.
This is preparatory work for bug 74802, timeout support for XHR2. The patch
has been successfully tested in combination with my work-in-progress
for that bug.

No new tests yet, tests will be added with the patch in bug 74802.

* platform/network/ResourceHandleInternal.h:
(WebCore::ResourceHandleInternal::ResourceHandleInternal): Adding a timeout source.
(ResourceHandleInternal):
* platform/network/soup/ResourceHandleSoup.cpp:
(WebCore):
(WebCore::cleanupSoupRequestOperation): Resetting the timer.
(WebCore::sendRequestCallback): Stopping the timer.
(WebCore::startHTTPRequest): Starting a timeout timer before the async request.
(WebCore::ResourceHandle::platformSetDefersLoading): Starting a timeout timer before the async request.
(WebCore::requestTimeoutCallback): Preparing a corresponding resource error and notifying clients of failure.
(WebCore::startNonHTTPRequest): Starting a timeout timer before the async request.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: extract HashSet instrumentation from core NMI code and put it into MemoryInstrumentationHashSet.h
https://bugs.webkit.org/show_bug.cgi?id=97198

Reviewed by Yury Semikhatsky.

Current implementation has overloads for HashSet.
This prevents us from instrumenting complex cases like Vector<HashSet<...> >.

Source/WebCore:

* css/CSSCursorImageValue.cpp:
(WebCore::CSSCursorImageValue::reportDescendantMemoryUsage):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::Features::reportMemoryUsage):
(WebCore::StyleResolver::collectMatchingRulesForList):
* dom/Document.cpp:
(WebCore::Document::reportMemoryUsage):
* dom/DocumentEventQueue.cpp:
(WebCore::DocumentEventQueue::reportMemoryUsage):
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::reportMemoryUsage):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::reportMemoryUsage):
* loader/cache/CachedResource.cpp:
(WebCore::CachedResource::reportMemoryUsage):
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::reportMemoryUsage):

Source/WebKit/chromium:

* tests/MemoryInstrumentationTest.cpp:
(WebCore::TEST):
(WebCore):

Source/WTF:

* GNUmakefile.list.am:
* WTF.gypi:
* WTF.pro:
* WTF.vcproj/WTF.vcproj:
* WTF.xcodeproj/project.pbxproj:
* wtf/HashSet.h:
(WTF):
(HashSet):
* wtf/HashTable.h:
(WTF):
(HashTable):
* wtf/MemoryInstrumentation.h:
(WTF::MemoryClassInfo::addCollectionElements):
(WTF::MemoryClassInfo::addHashCountedSet):
* wtf/MemoryInstrumentationHashSet.h: Added.
(WTF):
(WTF::reportMemoryUsage):
* wtf/MemoryInstrumentationHashTable.h: Added.
(WTF):
(WTF::reportMemoryUsage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[TextureMapper] Remove unused method
https://bugs.webkit.org/show_bug.cgi?id=97675

Reviewed by Simon Hausmann.

* platform/graphics/texmap/TextureMapperGL.h: Remove uidForImage()


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening, skip http/tests/security/xss-eval.html again after r129629.

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WTR] Build fix for MSVC.
https://bugs.webkit.org/show_bug.cgi?id=97667

Patch by Zoltan Arvai <zarvai@inf.u-szeged.hu> on 2012-09-26
Reviewed by Csaba Osztrogonác.

WTR misses InjectedBundle headers. Adding $$PWD to Target.pri is required for MSVC. Clean build is necessary on Windows.

* WebKitTestRunner/InjectedBundle/Target.pri:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: DefaultTextEditor throws exception sometimes.
https://bugs.webkit.org/show_bug.cgi?id=97681

Reviewed by Alexander Pavlov.

Added a check that line number does not exceed text model line count.

* inspector/front-end/DefaultTextEditor.js:
(WebInspector.TextEditorMainPanel.prototype._positionToSelection):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] First part of rebaselines for the fast/ directory.

Unreviewed rebaselining.

First part of the baselines for fast/. Most of these address, once again, the
different scrollbar appearance, layout size (due to overlay scrollbars) and
text selection color. Notable failures include that Kanji characters are
rendered bold and Android seems to limit styling abilities for selection text.
Bugs will be filed for these failures.

General info about the initial baselining is available in bug 96398.

* platform/chromium-android/fast/backgrounds/: 7 new results.
* platform/chromium-android/fast/body-propagation/: 38 new results.
* platform/chromium-android/fast/borders/: 32 new results.
* platform/chromium-android/fast/box-shadow/: 2 new results..
* platform/chromium-android/fast/box-sizing/: 2 new results.
* platform/chromium-android/fast/canvas/: 7 new results.
* platform/chromium-android/fast/clip/: 2 new results.
* platform/chromium-android/fast/css-generated-content/: 4 new results.
* platform/chromium-android/fast/css/: 77 new results.
* platform/chromium-android/fast/dom/: 20 new results.
* platform/chromium-android/fast/dynamic/: 7 new results.
* platform/chromium-android/fast/encoding/: 4 new results.
* platform/chromium-android/fast/events/: 7 new results.
* platform/chromium-android/fast/flexbox/: 6 new results.
* platform/chromium-android/fast/forms/: 25 new results.
* platform/chromium-android/fast/frames/: 20 new results.
* platform/chromium-android/fast/gradients/: 5 new results.
* platform/chromium-android/fast/hidpi/: 2 new results.
* platform/chromium-android/fast/html/: 4 new results.
* platform/chromium-android/fast/images/: 6 new images.
* platform/chromium-android/fast/inline-block/: 2 new results.
* platform/chromium-android/fast/inline/: 8 new results.
* platform/chromium-android/fast/invalid/: 2 new results.
* platform/chromium-android/fast/js/: 2 new results.
* platform/chromium-android/fast/layers/: 6 new results.
* platform/chromium-android/fast/line-grid/: 4 new results.
* platform/chromium-android/fast/lists/: 16 new results.
* platform/chromium-android/fast/media/: 24 new results.
* platform/chromium-android/fast/reflections/: 2 new results.
* platform/chromium-android/fast/replaced/: 9 new results.
* platform/chromium-android/fast/selectors/: 3 new results.
* platform/chromium-android/fast/sub-pixel/: 3 new results.
* platform/chromium-android/fast/transforms/: 4 new results.
* platform/chromium-android/fast/writing-mode/: 15 new results.
* platform/chromium-android/platform/chromium/fast/text/: 1 new result.

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