Mark fast/forms/color/color-suggestion-picker-appearance.html as missing or image mismatch

Unreviewed.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124303 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Internals::setAuthorShadowDOMForAnyElementEnabled should be on InternalSettings
https://bugs.webkit.org/show_bug.cgi?id=92823

Reviewed by Kentaro Hara.

Source/WebCore:

This change moves Internals::setAuthorShadowDOMForAnyElementEnabled() to
InternalSettings to support original value recovery.

* testing/InternalSettings.cpp:
(WebCore::InternalSettings::Backup::Backup):
(WebCore::InternalSettings::Backup::restoreTo):
(WebCore::InternalSettings::setAuthorShadowDOMForAnyElementEnabled): Moved from Internals.
(WebCore):
* testing/InternalSettings.h:
(Backup):
(InternalSettings):
* testing/InternalSettings.idl:
* testing/Internals.cpp:
* testing/Internals.h:
(Internals):
* testing/Internals.idl:

LayoutTests:

Followed the changed on Internals API.

* fast/dom/shadow/input-with-validation.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Add a baseline and modify expectations.
https://bugs.webkit.org/show_bug.cgi?id=66417
https://bugs.webkit.org/show_bug.cgi?id=81145
https://bugs.webkit.org/show_bug.cgi?id=82547
https://bugs.webkit.org/show_bug.cgi?id=84802

Unreviewed, test expectation updates.

One baseline was ommitted from http://trac.webkit.org/changeset/124296 .

* platform/chromium-mac-snowleopard/fast/repaint/moving-shadow-on-container-expected.txt: Added.
* platform/chromium-mac/fast/repaint/moving-shadow-on-container-expected.txt: Added.
* platform/chromium/TestExpectations:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: extract MemoryInstrumentationImpl into separate files for future reusing in unit tests
https://bugs.webkit.org/show_bug.cgi?id=92751

Reviewed by Yury Semikhatsky.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* inspector/InspectorAllInOne.cpp:
* inspector/InspectorMemoryAgent.cpp:
(WebCore):
* inspector/MemoryInstrumentationImpl.cpp: Added.
(WebCore):
(WebCore::MemoryInstrumentationImpl::MemoryInstrumentationImpl):
(WebCore::MemoryInstrumentationImpl::processDeferredInstrumentedPointers):
(WebCore::MemoryInstrumentationImpl::countObjectSize):
(WebCore::MemoryInstrumentationImpl::deferInstrumentedPointer):
(WebCore::MemoryInstrumentationImpl::visited):
(WebCore::MemoryInstrumentationImpl::selfSize):
* inspector/MemoryInstrumentationImpl.h: Added.
(WebCore):
(MemoryInstrumentationImpl):
(WebCore::MemoryInstrumentationImpl::totalTypeSize):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add the jhbuild source directory to the __builtin__ object

Reviewed by Philippe Normand.

It seems that the jhbuild script explicitly looks for the SRCDIR __builtin__ when
initializing. This is necessary for loading the jhbuild from the checkout directory.

* jhbuild/jhbuildutils.py:
(enter_jhbuild_environment_if_available): Set SRCDIR to the source directory.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Profiles: cleanup HeapSnapshotReceiver interface
https://bugs.webkit.org/show_bug.cgi?id=92390

Patch by Eugene Klyuchnikov <eustas.big@gmail.com> on 2012-08-01
Reviewed by Yury Semikhatsky.

Source/WebCore:

Remove callback parameter and return values from methods startLoading
and finishLoading. All implementations of HeapSnapshotReceiver honestly
override interface methods now.

* inspector/front-end/HeapSnapshotLoader.js: Adopted new API.
* inspector/front-end/HeapSnapshotProxy.js: Adopted new API.
(WebInspector.HeapSnapshotLoaderProxy.prototype.isStarted): Added.
(WebInspector.HeapSnapshotLoaderProxy.prototype.addConsumer): Added.
(WebInspector.HeapSnapshotLoaderProxy.prototype.finishLoading):
Explicitly finishes loading and build snapshot.
* inspector/front-end/HeapSnapshotView.js:
(WebInspector.HeapSnapshotReceiver.prototype.startLoading):
Removed callback parameter and return value.
(WebInspector.HeapSnapshotReceiver.prototype.finishLoading):
Removed callback parameter.
(WebInspector.HeapSnapshotSaveToFileReceiver): Adopted new API.

LayoutTests:

Fixed test to adopt new API.

* inspector/profiler/heap-snapshot-loader.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Filesystem] Assertion on $0.webkitEntries while on the input field.
https://bugs.webkit.org/show_bug.cgi?id=91954

Reviewed by Kent Tamura.

Accessing .webkitEntries should not crash when input type is not for file.

Source/WebCore:

Tests: fast/filesystem/input-access-entries.html

* Modules/filesystem/HTMLInputElementFileSystem.cpp:
(WebCore::HTMLInputElementFileSystem::webkitEntries):

LayoutTests:

* fast/filesystem/input-access-entries.html: Added.
* fast/filesystem/input-access-entries-expected.txt: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make HTMLConstructionSite::createHTMLElement(AtomicHTMLToken*) private.
https://bugs.webkit.org/show_bug.cgi?id=92846

Patch by Kwang Yul Seo <skyul@company100.net> on 2012-08-01
Reviewed by Eric Seidel.

This method is internal to HTMLConstructionSite.

No functional change.

* html/parser/HTMLConstructionSite.h:
(HTMLConstructionSite):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed GTK gardening, adding an image failure expectation for a
CSS3 Flexbox test that relies on the subpixel layout to be enabled.

Also adding a missing platform-specific expectation for a CSS2.1 test
that somehow got removed in r124142.

* platform/gtk/TestExpectations:
* platform/gtk/css2.1/20110323/block-replaced-width-001-expected.png:
* platform/gtk/css2.1/20110323/block-replaced-width-001-expected.txt: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Mark a couple of flaky tests.
https://bugs.webkit.org/show_bug.cgi?id=92850
https://bugs.webkit.org/show_bug.cgi?id=92852

Unreviewed, test expectation updates.

* platform/chromium/TestExpectations:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
All ports should support per test switching of pixel testing
https://bugs.webkit.org/show_bug.cgi?id=92398

Reviewed by Dirk Pranke.

Teach all test drivers to accept a per test control of whether
to dump pixels. Drivers now accept a -p/--pixel-test argument
on the standart input that means that running the current
test as pixel test is allowed (even if the expected hash is
missing). Removed the --pixel-tests command line option since
there is no need for it anymore.

* DumpRenderTree/DumpRenderTree.gypi:
* DumpRenderTree/DumpRenderTree.h:
(TestCommand::TestCommand):
(TestCommand):
* DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
* DumpRenderTree/DumpRenderTreeCommon.cpp: Added.
(CommandTokenizer):
(CommandTokenizer::CommandTokenizer):
(CommandTokenizer::pump):
(CommandTokenizer::next):
(CommandTokenizer::hasNext):
(die):
(parseInputLine):
Common logic to parse the input line from the standard input (or from the command line
in standalone mode). Made it somewhat general so we can easily add more arguments if
there is a need.
* DumpRenderTree/chromium/DumpRenderTree.cpp:
(runTest):
(main):
* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::TestShell):
(TestShell::runFileTest):
(TestShell::dump):
* DumpRenderTree/chromium/TestShell.h:
(TestParams::TestParams):
(TestShell):
* DumpRenderTree/efl/CMakeLists.txt:
* DumpRenderTree/efl/DumpRenderTree.cpp:
(parseCommandLineOptions):
(runTest):
(shouldDumpPixelsAndCompareWithExpected):
(main):
* DumpRenderTree/gtk/DumpRenderTree.cpp:
(initializeGlobalsFromCommandLineOptions):
(dump):
* DumpRenderTree/mac/DumpRenderTree.mm:
(initializeGlobalsFromCommandLineOptions):
(dumpRenderTree):
* DumpRenderTree/qt/DumpRenderTree.pro:
* DumpRenderTree/qt/DumpRenderTreeQt.cpp:
(WebCore::DumpRenderTree::processLine):
* DumpRenderTree/win/DumpRenderTree.cpp:
(dump):
(runTest):
(dllLauncherEntryPoint):
* DumpRenderTree/win/DumpRenderTree.vcproj:
* DumpRenderTree/wscript:
* DumpRenderTree/wx/DumpRenderTreeWx.cpp:
(dump):
(runTest):
(MyApp::OnInit):
* Scripts/old-run-webkit-tests: Pass --pixel-test before the hash.
Changed the separator form ' to : because it don't need to be escaped
when passing manually on the comand line.
* Scripts/webkitpy/layout_tests/port/base.py:
(Port.should_run_as_pixel_test): Removed now that all ports supports it.
* Scripts/webkitpy/layout_tests/port/driver.py:
(Driver.cmd_line): Don't pass --pixel-tests anymore.
(Driver._command_from_driver_input):

* WebKitTestRunner/TestController.cpp:
(WTR::TestController::TestController):
(WTR::TestController::initialize):
(WTR::TestCommand::TestCommand):
(TestCommand):
(WTR):
(CommandTokenizer):
(WTR::CommandTokenizer::CommandTokenizer):
(WTR::CommandTokenizer::pump):
(WTR::CommandTokenizer::next):
(WTR::CommandTokenizer::hasNext):
(WTR::die):
(WTR::parseInputLine):
(WTR::TestController::runTest):
* WebKitTestRunner/TestController.h:
(TestController):
Duplicate the logic for parsing the command line because
unfortunately there is no way to share code between
WebKitTestRunner and DumpRenderTree.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS] Add selectors for multiple fields time input UI.
https://bugs.webkit.org/show_bug.cgi?id=92834

Reviewed by Kent Tamura.

This patch adds new selectors and "height" property to spin button
for multiple fields time input UI.

RenderTextControlSingleLine::layout() sets height of spin button for
input type "number" and other input types using RenderTextControlSingleLine
as renderer object. However, multiple fields time input UI doesn't use
it and needs to set height of spin button.

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

* css/html.css:
(input::-webkit-datetime-edit): Added.
(input::-webkit-datetime-edit-ampm-field): Added.
(input::-webkit-datetime-edit-hour-field): Added.
(input::-webkit-datetime-edit-millisecond-field): Added.
(input::-webkit-datetime-edit-minute-field): Added.
(input::-webkit-datetime-edit-minute-field[readonly]): Added. This selector
is used for step>=3600 second and time format contains minute field.
(input::-webkit-datetime-edit-second-field): Added.
(input::-webkit-datetime-edit-second-field[readonly]): Added. This selector
is used for step>=60 second and time format contains second field.
(input::-webkit-inner-spin-button): Add "height" property for using
spin button other than RenderTextControlSingleLine.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Add native memory used by GlyphCache to the snapshot
https://bugs.webkit.org/show_bug.cgi?id=90615

Patch by Alexei Filippov <alexeif@chromium.org> on 2012-08-01
Reviewed by Yury Semikhatsky.

Adds interface for reporting memory usage of platform specific
components.
Report memory usage of the font cache allocated by skia in chromium.

* inspector/InspectorMemoryAgent.cpp:
(WebCore::addPlatformComponentsInfo):
(WebCore):
(WebCore::InspectorMemoryAgent::getProcessMemoryDistribution):
* inspector/front-end/NativeMemorySnapshotView.js:
(WebInspector.MemoryBlockViewProperties._initialize):
* platform/MemoryUsageSupport.cpp:
(WebCore::MemoryUsageSupport::memoryUsageByComponents):
(WebCore):
* platform/MemoryUsageSupport.h:
(MemoryUsageSupport):
(ComponentInfo):
(WebCore::MemoryUsageSupport::ComponentInfo::ComponentInfo):
* platform/chromium/MemoryUsageSupportChromium.cpp:
(WebCore::MemoryUsageSupport::memoryUsageByComponents):
(WebCore):
* platform/qt/MemoryUsageSupportQt.cpp:
(WebCore::MemoryUsageSupport::memoryUsageByComponents):
(WebCore):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Rebaseline a test.
https://bugs.webkit.org/show_bug.cgi?id=92444

Unreviewed, test expectation updates.

* platform/chromium-linux-x86/platform/chromium/fast: Added.
* platform/chromium-linux-x86/platform/chromium/fast/forms: Added.
* platform/chromium-linux-x86/platform/chromium/fast/forms/color: Added.
* platform/chromium-linux-x86/platform/chromium/fast/forms/color/color-suggestion-picker-appearance-expected.png: Added.
* platform/chromium-linux/platform/chromium/fast/forms: Added.
* platform/chromium-linux/platform/chromium/fast/forms/color: Added.
* platform/chromium-linux/platform/chromium/fast/forms/color/color-suggestion-picker-appearance-expected.png: Added.
* platform/chromium-mac-snowleopard/platform/chromium/fast/forms: Added.
* platform/chromium-mac-snowleopard/platform/chromium/fast/forms/color: Added.
* platform/chromium-mac-snowleopard/platform/chromium/fast/forms/color/color-suggestion-picker-appearance-expected.png: Added.
* platform/chromium-win-xp/platform/chromium/fast/forms: Added.
* platform/chromium-win-xp/platform/chromium/fast/forms/color: Added.
* platform/chromium-win-xp/platform/chromium/fast/forms/color/color-suggestion-picker-appearance-expected.png: Added.
* platform/chromium-win/platform/chromium/fast/forms: Added.
* platform/chromium-win/platform/chromium/fast/forms/color: Added.
* platform/chromium-win/platform/chromium/fast/forms/color/color-suggestion-picker-appearance-expected.png: Added.
* platform/chromium/TestExpectations:



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

* platform/qt/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Fix GTK+ build with recent version of GTK+.

Use g_threads_enter/leave instead of the wrapper macros. This
gives a compile warning because they are now deprecated but at
least it builds.

Source/WebCore:

* plugins/gtk/gtk2xtbin.c:
(xt_event_prepare):
(xt_event_check):
(xt_event_dispatch):

Source/WebKit2:

* UIProcess/API/gtk/WebKitWebView.cpp:
(webkitWebViewRunAsModal): Fix enter/leave order.
* UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
(WebKit::WebPopupMenuProxyGtk::showPopupMenu):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r124313.
http://trac.webkit.org/changeset/124313
https://bugs.webkit.org/show_bug.cgi?id=92855

Compilation failed on Chromium ports (Requested by yosin on
#webkit).

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

* DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:
* DumpRenderTree/DumpRenderTree.gypi:
* DumpRenderTree/DumpRenderTree.h:
* DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
* DumpRenderTree/DumpRenderTreeCommon.cpp: Removed.
* DumpRenderTree/chromium/DumpRenderTree.cpp:
(runTest):
(main):
* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::TestShell):
(TestShell::runFileTest):
(TestShell::dump):
* DumpRenderTree/chromium/TestShell.h:
(TestParams):
(TestParams::TestParams):
(TestShell):
* DumpRenderTree/efl/CMakeLists.txt:
* DumpRenderTree/efl/DumpRenderTree.cpp:
(parseCommandLineOptions):
(getFinalTestURL):
(getExpectedPixelHash):
(runTest):
(shouldDumpPixelsAndCompareWithExpected):
(main):
* DumpRenderTree/gtk/DumpRenderTree.cpp:
(initializeGlobalsFromCommandLineOptions):
(dump):
(runTest):
(main):
* DumpRenderTree/mac/DumpRenderTree.mm:
(initializeGlobalsFromCommandLineOptions):
(dumpRenderTree):
(dump):
(runTest):
* DumpRenderTree/qt/DumpRenderTree.pro:
* DumpRenderTree/qt/DumpRenderTreeQt.cpp:
(WebCore::DumpRenderTree::processLine):
* DumpRenderTree/win/DumpRenderTree.cpp:
(dump):
(runTest):
(dllLauncherEntryPoint):
* DumpRenderTree/win/DumpRenderTree.vcproj:
* DumpRenderTree/wscript:
* DumpRenderTree/wx/DumpRenderTreeWx.cpp:
(dump):
(runTest):
(MyApp::OnInit):
* GNUmakefile.am:
* Scripts/old-run-webkit-tests:
* Scripts/webkitpy/layout_tests/port/base.py:
(Port.supports_switching_pixel_tests_per_test):
(Port):
(Port._supports_switching_pixel_tests_per_test):
(Port.should_run_as_pixel_test):
* Scripts/webkitpy/layout_tests/port/driver.py:
(Driver.cmd_line):
(Driver._command_from_driver_input):
* Scripts/webkitpy/layout_tests/port/qt.py:
(QtPort._supports_switching_pixel_tests_per_test):
* Scripts/webkitpy/layout_tests/port/test.py:
(TestPort.supports_switching_pixel_tests_per_test):
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::TestController):
(WTR::TestController::initialize):
(WTR::TestController::runTest):
* WebKitTestRunner/TestController.h:
(TestController):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WIN] Add missing WTF export macros to functions
https://bugs.webkit.org/show_bug.cgi?id=92842

Reviewed by Hajime Morita.

When we switch the windows port to USE(EXPORT_MACROS) we
need to export all functions referenced by WebKit.dll.

* wtf/ThreadingPrimitives.h:
(WTF):
* wtf/dtoa.h:
(WTF):
* wtf/dtoa/double-conversion.h:
(StringToDoubleConverter):
* wtf/unicode/UTF8.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed, suppress fast/forms/input-widths.html failure, which is due to r124314.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] ImageDiff should use float division instead of integer
https://bugs.webkit.org/show_bug.cgi?id=92859

Reviewed by Zoltan Herczeg.

* DumpRenderTree/qt/ImageDiff.cpp:
(main):

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