Web Inspector: annotate ProfilerAgent.
https://bugs.webkit.org/show_bug.cgi?id=85630

Reviewed by Pavel Feldman.

* inspector/Inspector.json:
* inspector/InspectorProfilerAgent.cpp:
(WebCore::InspectorProfilerAgent::createProfileHeader):
(WebCore::InspectorProfilerAgent::createSnapshotHeader):
(WebCore::InspectorProfilerAgent::getProfileHeaders):
(WebCore):
(WebCore::InspectorProfilerAgent::getProfile):
* inspector/InspectorProfilerAgent.h:
(InspectorProfilerAgent):
* inspector/front-end/CSSSelectorProfileView.js:
* inspector/front-end/HeapSnapshotView.js:
(WebInspector.HeapSnapshotProfileType.prototype.createProfile):
* inspector/front-end/ProfileView.js:
* inspector/front-end/ProfilesPanel.js:
(WebInspector.ProfilesPanel.prototype.addProfileHeader):
(WebInspector.ProfilesPanel.prototype._addHeapSnapshotChunk):
(WebInspector.ProfilerDispatcher.prototype.resetProfiles):

git-svn-id: svn://svn.chromium.org/blink/trunk@116210 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Increase the display ID for the Xvfb process to use if pixel_tests argument
is true rather than if pixel_tests option is present. This fixes the
XvfbDriver in the same way r115825 fixed the now-redundant GtkDriver.

Rubber-stamped by Csaba Osztrogonác.

* Scripts/webkitpy/layout_tests/port/xvfbdriver.py:
(XvfbDriver._start):


git-svn-id: svn://svn.chromium.org/blink/trunk@116211 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[Gtk] GtkDriver is not required anymore after r116134
https://bugs.webkit.org/show_bug.cgi?id=85699

Reviewed by Csaba Osztrogonác.

Remove GtkDriver as it was replaced by the XvfbDriver and is
no longer needed.

* Scripts/webkitpy/layout_tests/port/gtk.py:


git-svn-id: svn://svn.chromium.org/blink/trunk@116212 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed. Rebaseline fast/events/attribute-listener-deletion-crash.html (added in r116191).

* platform/chromium/fast/events/attribute-listener-deletion-crash-expected.txt: Added.

git-svn-id: svn://svn.chromium.org/blink/trunk@116213 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed Gtk gardening, mark fullscreen/non-ancestor-iframe.html as
failing after it was added in r116165.

* platform/gtk/test_expectations.txt:


git-svn-id: svn://svn.chromium.org/blink/trunk@116214 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[Qt] Buildfix for --minimal build after r116107.

Patch by Tor Arne Vestbø <tor.arne.vestbo@nokia.com> on 2012-05-05
Reviewed by Csaba Osztrogonác.

* qmake/mkspecs/features/features.prf:

git-svn-id: svn://svn.chromium.org/blink/trunk@116215 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Inspector: simplify the JavaScriptOutline dialog interaction.
https://bugs.webkit.org/show_bug.cgi?id=85701

Reviewed by Yury Semikhatsky.

Removed bidirectional dependency between scripts panel and outline dialog.

* inspector/front-end/FilteredItemSelectionDialog.js:
(WebInspector.JavaScriptOutlineDialog):
(WebInspector.JavaScriptOutlineDialog.show):
(WebInspector.JavaScriptOutlineDialog.prototype.requestItems):
(WebInspector.JavaScriptOutlineDialog.prototype._didBuildOutlineChunk):
(WebInspector.JavaScriptOutlineDialog.prototype.selectItem):
* inspector/front-end/ScriptFormatterWorker.js:
* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel.prototype.addToWatch):
(WebInspector.ScriptsPanel.prototype._showJavaScriptOutlineDialog):

git-svn-id: svn://svn.chromium.org/blink/trunk@116216 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Inspector: allow overriding the script mapping on the UI level
https://bugs.webkit.org/show_bug.cgi?id=85702

Reviewed by Yury Semikhatsky.

Source/WebCore:

This allows formatting update live locations all over the place automatically.

* inspector/front-end/Script.js:
(WebInspector.Script.prototype.rawLocationToUILocation):
(WebInspector.Script.Location):
(WebInspector.Script.Location.prototype.update):
(WebInspector.Script.Location.prototype.dispose):
* inspector/front-end/UISourceCode.js:
(WebInspector.UISourceCode):
(WebInspector.UISourceCode.prototype.addLiveLocation):
(WebInspector.UISourceCode.prototype.removeLiveLocation):
(WebInspector.UISourceCode.prototype.updateLiveLocations):
(WebInspector.UISourceCode.prototype.overrideLocation):

LayoutTests:

* inspector/debugger/breakpoint-manager.html:

git-svn-id: svn://svn.chromium.org/blink/trunk@116217 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Inspector: save HeapSnapshot implementation.
https://bugs.webkit.org/show_bug.cgi?id=85595

HeapSnapshot specific implementation for loading was moved
from ProfilesPanel to HeapProfileHeader class.

Reviewed by Yury Semikhatsky.

Source/WebCore:

* inspector/front-end/HeapSnapshotView.js:
(WebInspector.HeapSnapshotView.prototype.get profileWrapper):
(WebInspector.HeapSnapshotView.prototype.get baseProfileWrapper):
(WebInspector.HeapProfileHeader):
(WebInspector.HeapProfileHeader.prototype.load.setProfileWait):
(WebInspector.HeapProfileHeader.prototype.load.done):
(WebInspector.HeapProfileHeader.prototype.load):
(WebInspector.HeapProfileHeader.prototype._saveStatusUpdate):
(WebInspector.HeapProfileHeader.prototype.pushJSONChunk):
(WebInspector.HeapProfileHeader.prototype.finishHeapSnapshot):
(WebInspector.HeapProfileHeader.prototype.canSave):
(WebInspector.HeapProfileHeader.prototype.save):
* inspector/front-end/InspectorFrontendAPI.js:
(InspectorFrontendAPI.appendedToURL):
* inspector/front-end/ProfilesPanel.js:
(WebInspector.ProfilesPanel.prototype._registerProfileType):
(WebInspector.ProfilesPanel.prototype._handleContextMenuEvent):
(WebInspector.ProfilesPanel.prototype.loadHeapSnapshot):
(WebInspector.ProfilesPanel.prototype._addHeapSnapshotChunk):
(WebInspector.ProfilesPanel.prototype._finishHeapSnapshot):
(WebInspector.ProfileSidebarTreeElement.prototype.set searchMatches):
(WebInspector.ProfileSidebarTreeElement.prototype.handleContextMenuEvent):
* inspector/front-end/inspector.js:
(WebInspector.append):
(WebInspector.appendedToURL):

LayoutTests:

* inspector/profiler/heap-snapshot-inspect-dom-wrapper.html:
* inspector/profiler/heap-snapshot-test.js:
(initialize_HeapSnapshotTest):

git-svn-id: svn://svn.chromium.org/blink/trunk@116218 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Not reviewed: follow up to r116216, fixing the inspector test.

* inspector/debugger/script-extract-outline.html:
* inspector/debugger/script-extract-outline-expected.txt:

git-svn-id: svn://svn.chromium.org/blink/trunk@116219 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Inspector: add separate timeline overview item for the frame mode
https://bugs.webkit.org/show_bug.cgi?id=85706

- remove two-buttons horizontal/vertical mode switch from Timelines item of the timeline overview menu;
- rename "Timeline" into "Events";
- add "Frames" item;
- replace overview sidebar icons with smaller, monochrome ones.

* English.lproj/localizedStrings.js: Added "Frames" and "Events".
* inspector/front-end/Images/statusbarButtonGlyphs.png: Added icon for "Memory".
* inspector/front-end/TimelineOverviewPane.js:
(WebInspector.TimelineOverviewPane):
(WebInspector.TimelineOverviewPane.prototype._showEvents):
(WebInspector.TimelineOverviewPane.prototype._showFrames):
(WebInspector.TimelineOverviewPane.prototype._showMemoryGraph):
(WebInspector.TimelineOverviewPane.prototype._setMode):
* inspector/front-end/timelinePanel.css:
(#timeline-overview-sidebar .sidebar-tree-item):
(#timeline-overview-sidebar .sidebar-tree-item .titles.no-subtitle):
(#timeline-overview-sidebar .icon):
(.timeline-overview-sidebar-events .icon):
(.timeline-overview-sidebar-frames .icon):
(.timeline-overview-sidebar-memory .icon):

git-svn-id: svn://svn.chromium.org/blink/trunk@116220 bbb929c8-8fbe-4397-9dbb-9b2b20218538
vertexAttribPointer needs to reject large negative offsets
https://bugs.webkit.org/show_bug.cgi?id=85117

Reviewed by Kenneth Russell.

Source/WebCore:

* html/canvas/WebGLRenderingContext.cpp: Use long long for GLsizeiptr and GLintptr
(WebCore):
(WebCore::WebGLRenderingContext::bufferData):
(WebCore::WebGLRenderingContext::bufferSubData):
(WebCore::WebGLRenderingContext::drawElements):
(WebCore::WebGLRenderingContext::getVertexAttribOffset):
(WebCore::WebGLRenderingContext::vertexAttribPointer):
* html/canvas/WebGLRenderingContext.h: Ditto
(WebGLRenderingContext):
* html/canvas/WebGLRenderingContext.idl: Ditto

LayoutTests:

* fast/canvas/webgl/index-validation-expected.txt:
* fast/canvas/webgl/index-validation.html: Add a test case for large negative offset.


git-svn-id: svn://svn.chromium.org/blink/trunk@116221 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Inspector: convert standalone functions save/append/savedURL/appendedToURL into WebInspector.FileManager object.
https://bugs.webkit.org/show_bug.cgi?id=85710

The idea is to have an object and be able to add/remove event listeners from it.

Reviewed by Yury Semikhatsky.

* English.lproj/localizedStrings.js:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* inspector/compile-front-end.py:
* inspector/front-end/FileManager.js: Copied from Source/WebCore/inspector/front-end/InspectorFrontendHostStub.js.
(WebInspector.FileManager):
(WebInspector.FileManager.prototype.canSave):
(WebInspector.FileManager.prototype.canAppend):
(WebInspector.FileManager.prototype.append):
(WebInspector.FileManager.prototype.appendedToURL):
* inspector/front-end/HeapSnapshotView.js:
(WebInspector.HeapProfileHeader.prototype.canSave):
(WebInspector.HeapProfileHeader.prototype.save):
* inspector/front-end/InspectorFrontendHostStub.js:
* inspector/front-end/WebKit.qrc:
* inspector/front-end/inspector.html:

git-svn-id: svn://svn.chromium.org/blink/trunk@116222 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[jhbuild] Do not set XDG_DATA_DIRS in jhbuildrc.
https://bugs.webkit.org/show_bug.cgi?id=85717

Reviewed by Martin Robinson.

After r116209, the XDG_DATA_DIRS environment variable is now
passed by webkitpy's layout_tests code to run-with-jhbuild, so
instead of setting a few defaults in jhbuildrc we can now rely on
the values set and really used by each system.

* efl/jhbuildrc:
* gtk/jhbuildrc:

git-svn-id: svn://svn.chromium.org/blink/trunk@116223 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed, rolling out r116223.
http://trac.webkit.org/changeset/116223
https://bugs.webkit.org/show_bug.cgi?id=85718

The bots need to set XDG_DATA_DIRS (Requested by rakuco on
#webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-05-05

* efl/jhbuildrc:
* gtk/jhbuildrc:

git-svn-id: svn://svn.chromium.org/blink/trunk@116224 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Inspector: unreviewed followup fix for the performance test after r116218.

* inspector/heap-snapshot.html:

git-svn-id: svn://svn.chromium.org/blink/trunk@116225 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[WK2] Incoming events may be processed out-of-order
https://bugs.webkit.org/show_bug.cgi?id=85696
<rdar://problem/11386129>

Reviewed by Maciej Stachowiak.

All messages go to a single queue that gets iterated over by dispatchMessages(). If an input
event arrives in the middle of a flood of messages, all of them will be dispatched before the
input event is dispatched.

In other words, the first dispatchMessages() call will process all of the messages in the queue,
and all subsequent dispatchMessages() calls will act as no-ops, since there is nothing in the queue.

To fix this, we rename dispatchMessages to dispatchOneMessage, and only process one message at a
time.

* Platform/CoreIPC/Connection.h: Rename dispatchMessages() to dispatchOneMessage().
* Platform/CoreIPC/Connection.cpp:
(CoreIPC::Connection::enqueueIncomingMessage): Dispatch a call to dispatchOneMessage() on the
run loop.
(CoreIPC::Connection::dispatchOneMessage): Remove the while(true) loop.

git-svn-id: svn://svn.chromium.org/blink/trunk@116226 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed, make distcheck fix.

Source/WebCore:

* GNUmakefile.list.am: Add missing headers to the sources list.

git-svn-id: svn://svn.chromium.org/blink/trunk@116227 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed preparation for 1.9.2.

* configure.ac: bump version to 1.9.2 and bump libtool version.

Source/WebKit/gtk:

* NEWS: changes from 1.9.1.

git-svn-id: svn://svn.chromium.org/blink/trunk@116228 bbb929c8-8fbe-4397-9dbb-9b2b20218538
webkitpy: Use os.pathsep instead of manually finding out the path separator in NRWT.
https://bugs.webkit.org/show_bug.cgi?id=85697

Reviewed by Eric Seidel.

* Scripts/new-run-webkit-tests: Instead of manually detecting whether
the path separator should be ':' or ';' by checking sys.platform, rely
on os.pathsep which has exactly the same information (os.pathsep is
':' for Cygwin, from what I could check in Python's sources).

git-svn-id: svn://svn.chromium.org/blink/trunk@116229 bbb929c8-8fbe-4397-9dbb-9b2b20218538