Web Inspector: display progress bar while loading timeline data
https://bugs.webkit.org/show_bug.cgi?id=92762

Reviewed by Pavel Feldman.

Source/WebCore:

- display progress while loading timeline data;
- disable status bar buttons while operation is in progress;
- ignore save/load/record while operation is in progress;
- disable context menu items while operation is in progress;
- misc. compilation warning fixes;

* inspector/front-end/ProgressBar.js:
(WebInspector.CompositeProgress.prototype.createSubProgress):
* inspector/front-end/TimelineModel.js:
(WebInspector.TimelineModel.prototype._loadNextChunk):
(WebInspector.TimelineModel.prototype.loadFromFile.parseAndImportData):
(WebInspector.TimelineModel.prototype.loadFromFile.onLoad):
(WebInspector.TimelineModel.prototype.loadFromFile.onError):
(WebInspector.TimelineModel.prototype.loadFromFile.onProgress):
(WebInspector.TimelineModel.prototype.loadFromFile):
* inspector/front-end/TimelinePanel.js:
(WebInspector.TimelinePanel):
(WebInspector.TimelinePanel.prototype.get statusBarItems):
(WebInspector.TimelinePanel.prototype._createStatusBarItems):
(WebInspector.TimelinePanel.prototype._setOperationInProgress):
(WebInspector.TimelinePanel.prototype._contextMenu):
(WebInspector.TimelinePanel.prototype._saveToFile):
(WebInspector.TimelinePanel.prototype._loadFromFile):
(WebInspector.TimelinePanel.prototype.get _toggleTimelineButtonClicked):
(WebInspector.TimelinePanel.prototype.sidebarResized):
* inspector/front-end/utilities.js: added Array.prototype.select(field) to map array of objects to array containing particular field of each object.

LayoutTests:

- fix loading tests to pass mock progress indicator;

* inspector/timeline/timeline-load-incompatible.html:
* inspector/timeline/timeline-load.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125168 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Page popups can show up at wrong locations
https://bugs.webkit.org/show_bug.cgi?id=93556

Reviewed by Kent Tamura.

Source/WebCore:

No new tests. Cannot test popup position.

* html/shadow/CalendarPickerElement.cpp:
(WebCore::CalendarPickerElement::contentSize):

Source/WebKit/chromium:

We were showing the popup at wrong positions. When there isn't enough
room below and above the element it adjusts the position but we weren't
resetting the adjustment when we resize the popup. This patch will make
the popup adjust the popup position each time we resize.

* src/ColorChooserUIController.cpp:
(WebKit::ColorChooserUIController::contentSize):
* src/WebPagePopupImpl.cpp:
(WevKit::PagePopupChromeClient::setWindowRect):
(WebKit::WebPagePopupImpl::init): Use reposition().
(WebKit::WebPagePopupImpl::reposition): Repositions the page popup based on the popup size.
(WebKit):
(WebKit::WebPagePopupImpl::resize): Use reposition().
* src/WebPagePopupImpl.h:
(WebPagePopupImpl):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125169 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, update TestExpectations with one more test to rebase after r125167

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125170 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed.  Rolled DEPS.

* DEPS:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening.

* platform/qt-5.0/fast/js/global-constructors-expected.txt:
* platform/qt/Skipped:
* platform/qt/fast/dom/constructed-objects-prototypes-expected.txt:
* platform/qt/fast/events/keyevent-iframe-removed-crash-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r125171.
http://trac.webkit.org/changeset/125171

Broke the Chromium Android build.

* DEPS:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-08-09  Pavel Feldman  <pfeldman@chromium.org>

        Web Inspector: generate preview for the objects dumped into the console upon logging.
        https://bugs.webkit.org/show_bug.cgi?id=35801

        Reviewed by Vsevolod Vlasov.

        As of today, dumping an object (array) into console will result in objects' properties being
        read upon console object expansion (i.e. lazily). This means that dumping the same object while
        mutating it will be hard to debug using the console.

        This change starts generating abbreviated previews for objects / arrays at the moment of their
        logging and passes this information along into the front-end. This only happens when the front-end
        is already opened, it only works for console.log(), not live console interaction.

        Covered by the existing console tests + collections test has been expanded to capture both: pre and post-

        * inspector/ConsoleMessage.cpp:
        (WebCore::ConsoleMessage::addToFrontend):
        * inspector/ConsoleMessage.h:
        (ConsoleMessage):
        * inspector/InjectedScript.cpp:
        (WebCore::InjectedScript::wrapObject):
        * inspector/InjectedScript.h:
        (InjectedScript):
        * inspector/InjectedScriptSource.js:
        (.):
        * inspector/Inspector.json:
        * inspector/InspectorConsoleAgent.cpp:
        (WebCore::InspectorConsoleAgent::enable):
        (WebCore::InspectorConsoleAgent::addConsoleMessage):
        * inspector/front-end/ConsoleMessage.js:
        (WebInspector.ConsoleMessageImpl.prototype._format):
        (WebInspector.ConsoleMessageImpl.prototype._formatParameter):
        (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsObject):
        (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsArrayOrObject):
        (WebInspector.ConsoleMessageImpl.prototype._appendObjectPreview):
        (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsNode):
        (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsArray):
        (WebInspector.ConsoleMessageImpl.prototype._printArray):
        (WebInspector.ConsoleMessageImpl.prototype._formatAsArrayEntry):
        (WebInspector.ConsoleMessageImpl.prototype._formatWithSubstitutionString):
        * inspector/front-end/DOMExtension.js:
        (Element.prototype.createTextChild):
        * inspector/front-end/ObjectPropertiesSection.js:
        (WebInspector.ObjectPropertiesSection):
        * inspector/front-end/PropertiesSection.js:
        * inspector/front-end/RemoteObject.js:
        (WebInspector.RemoteObject):
        (WebInspector.RemoteObject.fromPayload):
        (WebInspector.RemoteObject.prototype.get preview):
        * inspector/front-end/Section.js:
        * inspector/front-end/inspector.css:
        (.console-group-messages .section .header .title):
        (.section .console-formatted-node):
        (.console-object-preview):
        (.section .properties .name, .event-properties .name, .console-formatted-object .name):

2012-08-09  Pavel Feldman  <pfeldman@chromium.org>

        Web Inspector: generate preview for the objects dumped into the console upon logging.
        https://bugs.webkit.org/show_bug.cgi?id=35801

        Reviewed by Vsevolod Vlasov.

        * inspector/console/command-line-api-inspect-expected.txt:
        * inspector/console/console-dir-expected.txt:
        * inspector/console/console-eval-global-expected.txt:
        * inspector/console/console-eval-global.html:
        * inspector/console/console-format-collections-expected.txt:
        * inspector/console/console-format-collections.html:
        * inspector/console/console-format-expected.txt:
        * inspector/console/console-format.html:
        * inspector/console/console-log-document-proto-expected.txt:
        * inspector/console/console-log-document-proto.html:
        * inspector/console/console-log-toString-object-expected.txt:
        * inspector/debugger/watch-expressions-panel-switch-expected.txt:
        * inspector/elements/event-listener-sidebar-expected.txt:
        * inspector/elements/event-listeners-about-blank-expected.txt:
        * platform/chromium/inspector/console/console-dir-expected.txt:
        * platform/chromium/inspector/console/console-eval-global-expected.txt: Removed.
        * platform/chromium/inspector/console/console-format-collections-expected.txt:
        * platform/chromium/inspector/console/console-format-expected.txt: Removed.
        * platform/chromium/inspector/console/console-log-document-proto-expected.txt:
        * platform/chromium/inspector/debugger/watch-expressions-panel-switch-expected.txt:
        * platform/chromium/inspector/elements/event-listener-sidebar-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed gardening: updated results for 125167.

Patch by Florin Malita <fmalita@chromium.org> on 2012-08-09

* platform/chromium-linux/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.txt:
* platform/chromium-mac/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.txt:
* platform/chromium-win/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.txt:
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125175 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<rdar://problem/12035637> 32-bit PluginProcess launches without appropriate DYLD environment variables if UI process is 64-bit only
https://bugs.webkit.org/show_bug.cgi?id=93596

Reviewed by Mark Rowe.

* UIProcess/Launcher/mac/ProcessLauncherMac.mm:
(WebKit::ProcessLauncher::launchProcess): Changed to pass the current architecture, rather than
the intended child process architecture, to the DynamicLinkerEnvironmentExtractor constructor.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125176 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed gardening: updated Win results for 125160.

Patch by Florin Malita <fmalita@chromium.org> on 2012-08-09

* platform/chromium-win/svg/custom/use-detach-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSHeap and FastMallocStatistics based memory measurement for performance-tests
https://bugs.webkit.org/show_bug.cgi?id=90858

PerformanceTests:

Reviewed Ryosuke Niwa.

Measure the memory usage of the performancetests with the help of the windows.memory.usedJSHeapSize
object and the window.internals.fastMallocStatistics() function call.

* resources/runner.js:
(PerfTestRunner.logStatistics):
(PerfTestRunner.printStatistics):
(PerfTestRunner.storeHeapResults):
(PerfTestRunner.getUsedFastMallocHeap):
(PerfTestRunner.getUsedJSHeap):
(PerfTestRunner.getAndPrintMemoryStatistics):
(PerfTestRunner.ignoreWarmUpAndLog):
(PerfTestRunner.initAndStartLoop):

Tools:

Reviewed by Ryosuke Niwa.

Measure the memory usage of the performancetests with the help of the windows.memory.usedJSHeapSize
object and the window.internals.fastMallocStatistics() function call.

* Scripts/webkitpy/performance_tests/perftest.py:
(PerfTest):
(PerfTest.parse_output):
(PerfTest.output_statistics):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add memory measurement to balls.html and dromaeorunner.js
https://bugs.webkit.org/show_bug.cgi?id=93617

Reviewed by Adam Barth.

Since we added memory measurement support to performance tests we need to modify these tests.

* Animation/balls.html:
* Dromaeo/resources/dromaeorunner.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125179 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed gardening: updated expectations for console-format-collections.html.

Patch by Florin Malita <fmalita@chromium.org> on 2012-08-09

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125180 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r124997): Flaky crashes in two tests
https://bugs.webkit.org/show_bug.cgi?id=93501

Reviewed by Martin Robinson.

Add missing null check to make sure we early return if the
accessibility object does not have a valid parent exposed in the
accessibility hierarchy.

* accessibility/gtk/AXObjectCacheAtk.cpp:
(WebCore::emitTextChanged): Add missing null check.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125181 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Layout Test fast/forms/autocomplete-off-with-default-value-does-not-clear.html is failing (on Chromium)
https://bugs.webkit.org/show_bug.cgi?id=93586

Not reviewed (fixing a test failure).

This test is only valid for platforms with the page cache enabled.

* platform/chromium/TestExpectations: Skip fast/forms/autocomplete-off-with-default-value-does-not-clear.html

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1.9.6 drops symbols, breaking compatibility
https://bugs.webkit.org/show_bug.cgi?id=93477

Patch by Xan Lopez <xlopez@igalia.com> on 2012-08-09
Reviewed by Carlos Garcia Campos.

Expose documentURI as writable again for the GObject DOM
bindings. DOM4 makes it read-only, but we need to revert to the
old state for compatibility reasons, just like Objective C.

* dom/Document.idl: ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: add codemirror library as an experiment
https://bugs.webkit.org/show_bug.cgi?id=93620

Reviewed by Vsevolod Vlasov.

Source/WebCore:

This change adds codemirror, deploys it, but does not include it into the inspector.html. Clients need to fetch it
using XHR and eval into the inspector's context to use as a part of their experiments.

* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* inspector/front-end/WebKit.qrc:
* inspector/front-end/cm/LICENSE: Added.
* inspector/front-end/cm/codemirror.css: Added.
(.CodeMirror):
* inspector/front-end/cm/xml.js: Added.
(CodeMirror.defineMode.):
(CodeMirror.defineMode):

Source/WebKit/chromium:

* WebKit.gyp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125184 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: DocumentEventQueue memory instrumentation
https://bugs.webkit.org/show_bug.cgi?id=93604

Reviewed by Pavel Feldman.

Provided DocumentEventQueue:: reportMemoryUsage implementation.

* dom/Document.cpp:
(WebCore::Document::reportMemoryUsage):
* dom/DocumentEventQueue.cpp:
(WebCore::DocumentEventQueue::reportMemoryUsage):
(WebCore):
* dom/DocumentEventQueue.h:
(WebCore):
* dom/Event.cpp:
(WebCore::Event::reportMemoryUsage):
(WebCore):
* dom/Event.h:
(WebCore):
(Event):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: follow up to r125174 - fix subtype use.

Source/WebCore:

Not reviewed, trivial fix.

* inspector/InjectedScriptSource.js:
(.):

LayoutTests:

Not reviewed.

* inspector/console/console-format-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Gardening after r125102
https://bugs.webkit.org/show_bug.cgi?id=93593

Unreviewed gardening.

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-08-09

* platform/efl/TestExpectations: Included newly added compositing/plugins/no-backing-store.html test.

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