Web Inspector: CPU profile view select overlaps with status bar buttons
https://bugs.webkit.org/show_bug.cgi?id=94243

Reviewed by Pavel Feldman.

- use StatusBarComboBox inated of plain select element in the status bar of CPU profile view;
- add StatusBarComboBox.select()

* inspector/front-end/CPUProfileView.js:
(WebInspector.CPUProfileView.prototype.get statusBarItems):
* inspector/front-end/StatusBarButton.js:
(WebInspector.StatusBarComboBox.prototype.selectedOption):
(WebInspector.StatusBarComboBox.prototype.select):
* inspector/front-end/externs.js: drive-by fix: add declaration to suppress compilation error;
(Array.prototype.select):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125863 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening: mark two accessibility tests as failing on GTK. Bug 94200.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125864 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Implement UndoManager's V8 bindings
https://bugs.webkit.org/show_bug.cgi?id=93912

Patch by Sukolsak Sakshuwong <sukolsak@google.com> on 2012-08-17
Reviewed by Ryosuke Niwa.

Source/WebCore:

This patch implements V8 bindings for UndoManager's transact() method.
We keep alive the user objects passed to transact() by storing them in
a hidden property of DOMTransaction's wrapper and registering implicit
references from UndoManager to DOMTransaction.

Tests: editing/undomanager/domtransaction-survives-gc.html
       editing/undomanager/undomanager-isolated-world.html
       editing/undomanager/undomanager-transact.html
       editing/undomanager/undomanager-undo-redo.html
       editing/undomanager/undomanager-use-after-free.html

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.list.am:
* Target.pri:
* UseJSC.cmake:
* UseV8.cmake:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/DOMTransaction.cpp: Added.
(WebCore):
(WebCore::DOMTransaction::DOMTransaction):
(WebCore::DOMTransaction::create):
(WebCore::DOMTransaction::apply):
(WebCore::DOMTransaction::unapply):
(WebCore::DOMTransaction::reapply):
* bindings/js/DOMTransaction.h: Added.
(WebCore):
(DOMTransaction):
(WebCore::DOMTransaction::undoManager):
(WebCore::DOMTransaction::setUndoManager):
* bindings/js/JSBindingsAllInOne.cpp:
* bindings/js/JSUndoManagerCustom.cpp: Added.
(WebCore):
(WebCore::JSUndoManager::transact):
* bindings/v8/DOMTransaction.cpp: Added.
(WebCore):
(WebCore::DOMTransaction::DOMTransaction):
(WebCore::DOMTransaction::create):
(WebCore::DOMTransaction::apply):
(WebCore::DOMTransaction::unapply):
(WebCore::DOMTransaction::reapply):
(WebCore::DOMTransaction::getFunction):
(WebCore::DOMTransaction::callFunction):
* bindings/v8/DOMTransaction.h: Added.
(WebCore):
(DOMTransaction):
(WebCore::DOMTransaction::undoManager):
(WebCore::DOMTransaction::setUndoManager):
* bindings/v8/V8HiddenPropertyName.h:
(WebCore):
* bindings/v8/custom/V8DOMTransactionCustom.cpp: Added.
(WebCore):
(WebCore::V8DOMTransaction::visitDOMWrapper):
* bindings/v8/custom/V8UndoManagerCustom.cpp: Added.
(WebCore):
(WebCore::V8UndoManager::transactCallback):
* dom/Document.cpp:
(WebCore::Document::~Document):
(WebCore::Document::undoManager):
* dom/Element.cpp:
(WebCore::Element::undoManager):
(WebCore::Element::disconnectUndoManager):
* editing/CompositeEditCommand.h:
* editing/DOMTransaction.idl: Added.
* editing/Editor.cpp:
(WebCore::Editor::appliedEditing):
(WebCore::Editor::unappliedEditing):
(WebCore::Editor::reappliedEditing):
(WebCore::Editor::canUndo):
(WebCore::Editor::undo):
(WebCore::Editor::canRedo):
(WebCore::Editor::redo):
* editing/UndoManager.cpp:
(WebCore::UndoManager::create):
(WebCore::UndoManager::UndoManager):
(WebCore::clearStack):
(WebCore):
(WebCore::UndoManager::disconnect):
(WebCore::UndoManager::stop):
(WebCore::UndoManager::~UndoManager):
(WebCore::createUndoManagerEntry):
(WebCore::UndoManager::transact):
(WebCore::UndoManager::undo):
(WebCore::UndoManager::redo):
(WebCore::UndoManager::registerUndoStep):
(WebCore::UndoManager::registerRedoStep):
(WebCore::UndoManager::clearUndo):
(WebCore::UndoManager::clearRedo):
* editing/UndoManager.h:
(WebCore):
(UndoManager):
(WebCore::UndoManager::position):
(WebCore::UndoManager::canUndo):
(WebCore::UndoManager::canRedo):
(WebCore::UndoManager::undoScopeHost):
(WebCore::UndoManager::ownerNode):
* editing/UndoManager.idl:
* editing/UndoStep.h:
(UndoStep):

LayoutTests:

* editing/undomanager/domtransaction-survives-gc-expected.txt: Added.
* editing/undomanager/domtransaction-survives-gc.html: Added.
* editing/undomanager/undomanager-isolated-world-expected.txt: Added.
* editing/undomanager/undomanager-isolated-world.html: Added.
* editing/undomanager/undomanager-transact-expected.txt: Added.
* editing/undomanager/undomanager-transact.html: Added.
* editing/undomanager/undomanager-undo-redo-expected.txt: Added.
* editing/undomanager/undomanager-undo-redo.html: Added.
* editing/undomanager/undomanager-use-after-free-expected.txt: Added.
* editing/undomanager/undomanager-use-after-free.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125865 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Forms] Introduce SpinButtonElement.{cpp,h} into build
https://bugs.webkit.org/show_bug.cgi?id=94289

Reviewed by Kent Tamura.

This patch introduces html/shadow/SpinButtonElement.{cpp,h} into
build, files were copied from TextControlInnerElements.{cpp,h} by
bug 93943.

No new tests. This patch doesn't changes behavior.

* CMakeLists.txt: Added SpinButtonElement.cpp
* GNUmakefile.list.am: Added SpinButtonElement.{cpp,h}
* Target.pri: Added SpinButtonElement.cpp
* WebCore.gypi: Added SpinButtonElement.{cpp,h}
* WebCore.vcproj/WebCore.vcproj: Added SpinButtonElement.{cpp,h}
* WebCore.xcodeproj/project.pbxproj: Added SpinButtonElement.{cpp,h}
* accessibility/AccessibilitySpinButton.h: Replaced include file to SpinButtonElement.h from TextControlInnerElements.h
* html/TextFieldInputType.h: Added include file SpinButtonElement.h
* html/shadow/DateTimeEditElement.h: Replaced include file to SpinButtonElement.h from TextControlInnerElements.h
* html/shadow/SpinButtonElement.cpp: Removed code other than SpinButtonElement.
* html/shadow/SpinButtonElement.h: Removed code other than SpinButtonElement.
* html/shadow/TextControlInnerElements.cpp: Removed code of SpinButtonElement.
* html/shadow/TextControlInnerElements.h: Removed SpinButtonElement.
* rendering/RenderTheme.cpp: Added include file SpinButtonElement.h

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125866 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Tests] Adding tests for multiple fields time input UI
https://bugs.webkit.org/show_bug.cgi?id=94196

Reviewed by Kent Tamura.

This patch introduces functional testing for multiple fields time input
UI when both ENABLE_INPUT_TYPE_TIME and ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS
are enabled.

* fast/forms/time-multiple-fields/time-multiple-fields-change-type-on-focus-expected.txt: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-change-type-on-focus.html: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-keyboard-events-expected.txt: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-keyboard-events.html: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-losing-renderer-on-click-expected.txt: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-losing-renderer-on-click.html: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-spinbutton-change-and-input-events-expected.txt: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-spinbutton-change-and-input-events.html: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-step-attribute-expected.txt: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-step-attribute.html: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer-expected.txt: Added.
* fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer.html: Added.

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