Web Inspector: render path to file and line number as subtitles in selector dialog.
https://bugs.webkit.org/show_bug.cgi?id=95481

Reviewed by Vsevolod Vlasov.

In case several files have matching names, we should render the path next to it.
Using the same subtitle field, we now also render line number for JS and Style outlines.

* inspector/front-end/FilteredItemSelectionDialog.js:
(WebInspector.FilteredItemSelectionDialog.prototype.get _itemsLoaded):
(WebInspector.FilteredItemSelectionDialog.prototype._createItemElement):
(WebInspector.FilteredItemSelectionDialog.prototype._filterItems):
(WebInspector.SelectionDialogContentProvider.prototype.itemSuffixAt):
(WebInspector.JavaScriptOutlineDialog.prototype.itemSuffixAt):
(WebInspector.JavaScriptOutlineDialog.prototype.itemSubtitleAt):
(WebInspector.OpenResourceDialog.prototype.itemSuffixAt):
(WebInspector.OpenResourceDialog.prototype.itemSubtitleAt):
* inspector/front-end/StyleSheetOutlineDialog.js:
(WebInspector.StyleSheetOutlineDialog.prototype.itemSuffixAt):
(WebInspector.StyleSheetOutlineDialog.prototype.itemSubtitleAt):
* inspector/front-end/filteredItemSelectionDialog.css:
(.js-outline-dialog > .container > div.item):
(.js-outline-dialog span.subtitle):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Port convertValueToQVariant to use the JSC C API
https://bugs.webkit.org/show_bug.cgi?id=94695

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Most of the code is portable to the C API, with a few exceptions for internal
types such as byte arrays, dates or when unboxing primitive types.

* bridge/qt/qt_instance.cpp:
(JSC::Bindings::QtField::setValueToInstance):
* bridge/qt/qt_runtime.cpp:
(JSC::Bindings::operator<<):
(JSC::Bindings::isJSUint8ClampedArray):
(JSC::Bindings::isJSArray):
(Bindings):
(JSC::Bindings::isJSDate):
(JSC::Bindings::isQtObject):
(JSC::Bindings::valueRealType):
(JSC::Bindings::toString):
(JSC::Bindings::unwrapBoxedPrimitive):
(JSC::Bindings::convertValueToQVariantMap):
(JSC::Bindings::convertToList):
(JSC::Bindings::toQString):
(JSC::Bindings::getGregorianDateTimeUTC):
(JSC::Bindings::toQDateTimeUTC):
(JSC::Bindings::convertValueToQVariant):
(JSC::Bindings::findMethodIndex):
(JSC::Bindings::QtConnectionObject::execute):
* bridge/qt/qt_runtime.h:
(Bindings):

Source/WebKit/qt:

Minor adaptations are needed here to accomodate the changed signature of
convertValueToQVariant.

* Api/qwebelement.cpp:
(QWebElement::evaluateJavaScript):
(convertJSValueToWebElementVariant):
* Api/qwebframe.cpp:
(QWebFrame::evaluateJavaScript):
* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(convertJSValueToNodeVariant):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [WebGL] Make wrap functions initialization lazy
https://bugs.webkit.org/show_bug.cgi?id=95533

Patch by Andrey Adaikin <aandrey@chromium.org> on 2012-08-31
Reviewed by Vsevolod Vlasov.

WebGL wrap functions initialization is not always needed to be executed: for example, when we will instrument a 2D canvas.
Drive-by: fixed variable namings, moved duplicated code into a small auxiliary function.

* inspector/InjectedScriptWebGLModuleSource.js:
(.):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: render box model elements and grid on inspector overlay
https://bugs.webkit.org/show_bug.cgi?id=95456

Reviewed by Vsevolod Vlasov.

This change migrates native rendering for box model to the InspectorOverlay.

* inspector/InspectorInstrumentation.cpp:
(WebCore):
(WebCore::InspectorInstrumentation::didScrollImpl):
* inspector/InspectorInstrumentation.h:
(InspectorInstrumentation):
(WebCore::InspectorInstrumentation::didScroll):
(WebCore):
* inspector/InspectorOverlay.cpp:
(WebCore::InspectorOverlay::drawNodeHighlight):
(WebCore::InspectorOverlay::drawRectHighlight):
(WebCore::InspectorOverlay::overlayPage):
(WebCore::InspectorOverlay::evaluateInOverlay):
* inspector/InspectorOverlay.h:
(WebCore::Highlight::setColors):
(Highlight):
(InspectorOverlay):
* inspector/InspectorOverlayPage.html:
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::didLayout):
(WebCore):
(WebCore::InspectorPageAgent::didScroll):
* inspector/InspectorPageAgent.h:
* page/Chrome.cpp:
(WebCore::Chrome::scroll):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Exclusions] Exclusions tests should run without errors in standalone browser
https://bugs.webkit.org/show_bug.cgi?id=95369

Patch by Bear Travis <betravis@adobe.com> on 2012-08-31
Reviewed by Andreas Kling.

Adding a check to make sure window.internals exists before accessing it.
Without the check, a reference error would occur when trying to run these
tests from the browser (as opposed to the test script).

* fast/exclusions/css-exclusions-disabled.html:
* fast/exclusions/script-tests/parsing-wrap-shape-inside.js:
* fast/exclusions/script-tests/parsing-wrap-shape-outside.js:
* fast/exclusions/script-tests/wrap-flow-parsing.js:
* fast/exclusions/script-tests/wrap-margin-parsing.js:
* fast/exclusions/script-tests/wrap-padding-parsing.js:
* fast/exclusions/script-tests/wrap-parsing.js:
* fast/exclusions/script-tests/wrap-through-parsing.js:
* fast/exclusions/shape-inside/shape-inside-floats-simple.html:
* fast/exclusions/shape-inside/shape-inside-inline-elements.html:
* fast/exclusions/shape-inside/shape-inside-overflow.html:
* fast/exclusions/shape-inside/shape-inside-percentage-auto.html:
* fast/exclusions/shape-inside/shape-inside-text.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Add high-DPI images for status bar glyphs
https://bugs.webkit.org/show_bug.cgi?id=95471

Patch by Patrick Dubroy <dubroy@chromium.org> on 2012-08-31
Reviewed by Pavel Feldman.

Add the new 2x resolution image for the status bar glyphs, and add
media queries to use the images on high-DPI devices.

* inspector/front-end/Images/statusbarButtonGlyphs2x.png: Added.
* inspector/front-end/WebKit.qrc:
* inspector/front-end/inspector.css:
(.long-click-glyph):
(@media (-webkit-min-device-pixel-ratio: 1.5)):
(.status-bar-item > .glyph):
* inspector/front-end/scriptsPanel.css:
(.toggle-breakpoints .glyph):
(@media (-webkit-min-device-pixel-ratio: 1.5)):
(.status-bar-item.scripts-navigator-show-hide-button > .glyph):
(.status-bar-item.scripts-debugger-show-hide-button > .glyph):
* WebCore.gypi
* inspector/front-end/timelinePanel.css:
(#timeline-overview-sidebar .icon):
(@media (-webkit-min-device-pixel-ratio: 1.5)):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [WebGL] Link WebGL calls to the source code where it was made
https://bugs.webkit.org/show_bug.cgi?id=95426

Patch by Andrey Adaikin <aandrey@chromium.org> on 2012-08-31
Reviewed by Vsevolod Vlasov.

Save a stack trace for every call we capture and report to the frontend sourceURL,lineNumber,columnNumber were the call was made from.
Right now, this will work only with V8.

* inspector/InjectedScriptExterns.js:
(CallSite.prototype.getFileName):
(CallSite.prototype.getLineNumber):
(CallSite.prototype.getColumnNumber):
* inspector/InjectedScriptWebGLModuleSource.js:
(.):
* inspector/Inspector.json:
* inspector/front-end/WebGLProfileView.js:
(WebInspector.WebGLProfileView):
(WebInspector.WebGLProfileView.prototype._showTraceLog):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Simplify FrameLoaderClinetEfl by adding a private method.
https://bugs.webkit.org/show_bug.cgi?id=95444

Patch by Jinwoo Song <jinwoo7.song@samsung.com> on 2012-08-31
Reviewed by Gyuyoung Kim.

In the FrameLoaderClientEfl, the codes which checks that
if current frame is main frame are frequently used.
This patch adds a private method and replaces those codes
with the method to simplify.

* WebCoreSupport/FrameLoaderClientEfl.cpp:
(WebCore::FrameLoaderClientEfl::dispatchDidChangeLocationWithinPage):
(WebCore::FrameLoaderClientEfl::dispatchDidReceiveIcon):
(WebCore::FrameLoaderClientEfl::dispatchDidStartProvisionalLoad):
(WebCore::FrameLoaderClientEfl::dispatchDidReceiveTitle):
(WebCore::FrameLoaderClientEfl::dispatchDidCommitLoad):
(WebCore::FrameLoaderClientEfl::dispatchDidFailProvisionalLoad):
(WebCore::FrameLoaderClientEfl::transitionToCommittedForNewPage):
* WebCoreSupport/FrameLoaderClientEfl.h:
(WebCore::FrameLoaderClientEfl::isLoadingMainFrame):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening, unskip now passing tests, update expected files.

* platform/qt-5.0/css2.1/t0805-c5519-brdr-r-01-e-expected.png: Removed.
* platform/qt-5.0/css2.1/t0805-c5519-brdr-r-01-e-expected.txt: Removed.
* platform/qt-5.0/fast/inline/absolute-positioned-inline-in-centred-block-expected.png: Removed.
* platform/qt-5.0/fast/inline/absolute-positioned-inline-in-centred-block-expected.txt: Removed.
* platform/qt/Skipped:
* platform/qt/TestExpectations:
* platform/qt/css2.1/t0805-c5519-brdr-r-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5519-brdr-r-01-e-expected.png:
* platform/qt/css2.1/t0805-c5519-brdr-r-01-e-expected.txt:
* platform/qt/css2.1/t0805-c5520-brdr-b-01-e-expected.txt:
* platform/qt/css2.1/t0805-c5521-brdr-l-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5521-brdr-l-01-e-expected.txt:
* platform/qt/css2.1/t0805-c5521-ibrdr-l-00-a-expected.txt:
* platform/qt/css3/filters/blur-filter-page-scroll-expected.png: Added.
* platform/qt/css3/filters/blur-filter-page-scroll-expected.txt: Added.
* platform/qt/css3/filters/blur-filter-page-scroll-parents-expected.png: Added.
* platform/qt/css3/filters/blur-filter-page-scroll-parents-expected.txt: Added.
* platform/qt/css3/filters/effect-reference-expected.png: Added.
* platform/qt/css3/filters/effect-reference-expected.txt: Added.
* platform/qt/css3/filters/effect-reference-external-expected.png: Added.
* platform/qt/css3/filters/effect-reference-external-expected.txt: Added.
* platform/qt/css3/filters/effect-reference-hw-expected.txt: Added.
* platform/qt/css3/filters/effect-reference-ordering-expected.png: Added.
* platform/qt/css3/filters/effect-reference-ordering-expected.txt: Added.
* platform/qt/fast/block/float/024-expected.png:
* platform/qt/fast/block/float/024-expected.txt:
* platform/qt/fast/block/margin-collapse/025-expected.png:
* platform/qt/fast/block/margin-collapse/025-expected.txt:
* platform/qt/fast/block/margin-collapse/block-inside-inline/025-expected.png:
* platform/qt/fast/block/margin-collapse/block-inside-inline/025-expected.txt:
* platform/qt/fast/block/margin-collapse/empty-clear-blocks-expected.png:
* platform/qt/fast/block/margin-collapse/empty-clear-blocks-expected.txt:
* platform/qt/fast/css/absolute-child-with-percent-height-inside-relative-parent-expected.png:
* platform/qt/fast/css/absolute-child-with-percent-height-inside-relative-parent-expected.txt:
* platform/qt/fast/css/nested-layers-with-hover-expected.txt:
* platform/qt/fast/inline/absolute-positioned-inline-in-centred-block-expected.png:
* platform/qt/fast/inline/absolute-positioned-inline-in-centred-block-expected.txt:
* platform/qt/fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.png:
* platform/qt/fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.txt:
* platform/qt/svg/filters/color-interpolation-filters-expected.png: Added.
* platform/qt/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.png: Added.
* platform/qt/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt:
* platform/qt/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.png: Added.
* platform/qt/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Gardening after r127140. Skip a failing reftest.

Patch by János Badics <jbadics@inf.u-szeged.hu> on 2012-08-31
Reviewed by Csaba Osztrogonác.

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Gardening of failing tests and new passes
https://bugs.webkit.org/show_bug.cgi?id=95555

Unreviewed EFL gardening of failing tests and new passes.

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-08-31

* platform/efl/TestExpectations:
* platform/efl/http/tests/misc/willCacheResponse-delegate-callback-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fix for WinCE after r127191.

* bytecode/JumpTable.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CMake] Changes on the bindings generator does not trigger generation of the bindings
https://bugs.webkit.org/show_bug.cgi?id=95552

Patch by Thiago Marcos P. Santos <thiago.santos@intel.com> on 2012-08-31
Reviewed by Kenneth Rohde Christiansen.

Added the engine especific part of the generator to the dependency
list.

* UseJSC.cmake:
* UseV8.cmake:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening, skip a new failing test.

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] QNX build fails due to missing OpenGL ES defines
https://bugs.webkit.org/show_bug.cgi?id=95554

Patch by Milian Wolff <milian.wolff@kdab.com> on 2012-08-31
Reviewed by Simon Hausmann.

Apply the fix of bug 91030 to all platforms running on QNX.

* platform/graphics/opengl/Extensions3DOpenGLES.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] QNX does not support SOCK_SEQPACKET socket type for socketpair in ProcessLauncherQt
https://bugs.webkit.org/show_bug.cgi?id=95553

Patch by Milian Wolff <milian.wolff@kdab.com> on 2012-08-31
Reviewed by Simon Hausmann.

Calling socketpair with SOCK_SEQPACKET socket type fails on QNX with an error 241 (EPROTOTYPE),
as can be seen by the following debug output: "Creation of socket failed with errno: 241".
A test app shows that SOCK_DGRAM works properly on QNX, thus use it instead of SOCK_SEQPACKET.

* UIProcess/Launcher/qt/ProcessLauncherQt.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed GTK gardening.

Adding failure expectations for two HTTP security tests.

* platform/gtk/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove http/tests/loading/gmail-assert-on-load.html test case from Skipped.
https://bugs.webkit.org/show_bug.cgi?id=95562

Unreviewed gardening.

Removed http/tests/loading/gmail-assert-on-load.html test case from Skipped files since it has been moved out from http/loading to http/misc, for details see bug 88923.

Patch by Kangil Han <kangil.han@samsung.com> on 2012-08-31

* platform/win/Skipped:
* platform/wincairo/Skipped:
* platform/wk2/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK2] REGRESSION(r127091): It made layout tests extremely slow
https://bugs.webkit.org/show_bug.cgi?id=95450

Unreviewed gardening, skip http/tests/appcache tests until proper fix.

* platform/qt-5.0-wk2/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127257 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Add proper support for navigator.onLine and associated events
https://bugs.webkit.org/show_bug.cgi?id=95532

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-08-31
Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Add support for detecting online state in EFL port and
monitor state changes. The EFL port now has proper
support for navigator.onLine and associated events.

The implementation is based on Eeze library for
detecting network interfaces and their configuration.
Detection of online state changes relies on rtnetlink.

No new tests, no behavior change for layout tests.

* PlatformEfl.cmake: Link unconditionally against Eeze
library now.
* platform/network/NetworkStateNotifier.cpp:
(WebCore):
* platform/network/NetworkStateNotifier.h:
(NetworkStateNotifier):
(WebCore):
* platform/network/efl/NetworkStateNotifierEfl.cpp: Added.
(WebCore):
(WebCore::NetworkStateNotifier::updateState):
(WebCore::NetworkStateNotifier::networkInterfaceChanged):
(WebCore::readSocketCallback):
(WebCore::NetworkStateNotifier::~NetworkStateNotifier):
(WebCore::NetworkStateNotifier::NetworkStateNotifier):

Source/WebKit/efl:

Remove ewk_network_state_notifier_online_set() API since
the EFL port no longer relies on the client application to
provide it with the online state.

* ewk/ewk_network.cpp:
* ewk/ewk_network.h:

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