Remove LocalizedDate*.*
https://bugs.webkit.org/show_bug.cgi?id=97957

Reviewed by Kentaro Hara.

The functions declared in LocalizedDate.h are replaced with member
functions of Localizer. LocalizedDate.h and its implementations
are not needed any more.

No new tests. This should not change any behavior.

* GNUmakefile.list.am: Remove LocalizedDate.h and LocalizedDateNode.cpp
* WebCore.vcproj/WebCore.vcproj: ditto.
* WebCore.xcodeproj/project.pbxproj: ditto.
* CMakeLists.txt: Remove LocalizedDateNone.cpp
* Target.pri: ditto.
* WebCore.gyp/WebCore.gyp: Remove LocalizedDate*.*. Update a comment.
* WebCore.gypi: Remove LocalizedDate*.*.

* html/BaseDateAndTimeInputType.cpp: Use Localizer functions.
(WebCore::BaseDateAndTimeInputType::localizeValue):
(WebCore::BaseDateAndTimeInputType::convertFromVisibleValue):
* html/DateInputType.cpp: ditto.
(WebCore::DateInputType::fixedPlaceholder):

* platform/text/Localizer.h:
(Localizer): Move comments from LocalziedDate.h.
* platform/text/mac/LocaleMac.mm:
Remove unnecessary include of LocalizedDate.h.

* platform/text/LocalizedDate.h: Removed.
* platform/text/LocalizedDateICU.cpp: Removed.
* platform/text/LocalizedDateNone.cpp: Removed.
* platform/text/LocalizedDateWin.cpp: Removed.
* platform/text/mac/LocalizedDateMac.cpp: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Slightly improve clarity of the patch in bug 78595.
https://bugs.webkit.org/show_bug.cgi?id=97944

Reviewed by Andreas Kling.

Since all types of relations, except SubSelector are effectively ignoring the calculated value of pseudoId, make the code reflect that a bit more clearly.

No change in behavior, covered by test in bug 78595.

* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkSelector): Added ignoreDynamicPseudo value that's given to all callsites that should ignore the result.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Scroll offset of flex items lost during relayout
https://bugs.webkit.org/show_bug.cgi?id=97706

Reviewed by Tony Chang.

Source/WebCore:

Test: fast/flexbox/overflow-keep-scrollpos.html

Flex box does a second pass layout of the flex children.

We layout the child without scrollbars (to get the size
used for flexing), then we relayout the child at its final size.

We must not apply the scroll position during the first pass,
as it will be clamped to 0 (no scrolling possible).

* rendering/RenderBlock.h:
(RenderBlock):

Make updateScrollInfoAfterLayout public

* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::layoutBlock):

Delay applying scroll info until we clamp the size of the child
and get scrollbars back again. For this to work we use
RenderBlock::updateScrollInfoAfterLayout instead of the non-guarded
RenderLayer::updateScrollInfoAfterLayout.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::updateScrollInfoAfterLayout):

Add workaround for now to keep passing css3/flexbox/child-overflow.html

Basically do not postpone applying scroll changes for RenderBlocks
with opposite writing mode, as they need to have their content
overflow in the right direction.

LayoutTests:

Add a new test for testing that flex items scroll offsets are
not lost during relayout.

* css3/flexbox/overflow-keep-scrollpos-expected.txt: Added.
* css3/flexbox/overflow-keep-scrollpos.html: Added.
* css3/flexbox/child-overflow.html: Fix minor errors.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Fix build error : Link webkit2 library to ewk2UnitTestInjectedBundleSample.
https://bugs.webkit.org/show_bug.cgi?id=97622

Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-09-29
Reviewed by Gyuyoung Kim.

There is no dependency between ewk2UnitTestInjectedBundleSample and
webkit2 library.

Because of this, on the first build, compiler tries to build
injected_bundle_sample.cpp before the forwarding headers are created.
This makes build error that the header file 'WebKit2/WKBaseSoup.h'
cannot be found.

To prevent this, webkit2 library is linked to ewk2UnitTestInjectedBundleSample.

* PlatformEfl.cmake:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix build warning : -Wparentheses.
https://bugs.webkit.org/show_bug.cgi?id=97961

Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-09-29
Reviewed by Kentaro Hara.

Explicit braces are added around the && statement to fix -Wparentheses warning.

* mathml/MathMLElement.h:
(WebCore::toMathMLElement):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unskip media/unsupported-rtsp.html

The test seems to be consistently passing at least locally, let's
see if the bots agree.

* platform/efl/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unskip fast/css/device-aspect-ratio.html

This seems to be another test with no bug report that is now
passing.

* platform/efl/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Revert r129978.

Skip media/unsupported-rtsp.html again, as it still fails on the
bots. I have created a proper bug for the issue now.

* platform/efl/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Rebaseline test after r129695.

* platform/efl/TestExpectations:
* platform/efl/mathml/presentation/tables-expected.png:
* platform/efl/mathml/presentation/tables-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Enable SATURATED_LAYOUT_ARITHMETIC for chromium
https://bugs.webkit.org/show_bug.cgi?id=95053

Reviewed by Abhishek Arya.

Enable the SATURATED_LAYOUT_ARITHMETIC flag for the chromium port.
This changes the behavior of FractionalLayoutUnit to clamp to the
max or min value instead of overflowing.

This may very well impact performance so the current plan is to enable
it for a couple of hours to a day to collect performance data and then
disable it again until we've had a chance to review the perf data.

* wtf/Platform.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed build fix for chromium/clank.

* platform/FractionalLayoutUnit.h:
(WebCore::FractionalLayoutUnit::FractionalLayoutUnit):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r129965.
http://trac.webkit.org/changeset/129965
https://bugs.webkit.org/show_bug.cgi?id=97970

Causes ASSERTs in workers (Requested by abarth on #webkit).

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

* bindings/v8/DOMData.cpp:
(WebCore::DOMData::getCurrentStore):
* bindings/v8/ScopedPersistent.h:
* bindings/v8/ScriptController.cpp:
(WebCore::ScriptController::resetIsolatedWorlds):
(WebCore::ScriptController::evaluateInIsolatedWorld):
(WebCore::ScriptController::currentWorldContext):
* bindings/v8/V8Binding.cpp:
(WebCore::perContextDataForCurrentWorld):
* bindings/v8/V8DOMWindowShell.cpp:
(WebCore::setIsolatedWorldField):
(WebCore::V8DOMWindowShell::enteredIsolatedWorldContext):
(WebCore::V8DOMWindowShell::destroyIsolatedShell):
(WebCore):
(WebCore::isolatedContextWeakCallback):
(WebCore::V8DOMWindowShell::disposeContext):
(WebCore::V8DOMWindowShell::initializeIfNeeded):
(WebCore::V8DOMWindowShell::setIsolatedWorldSecurityOrigin):
* bindings/v8/V8DOMWindowShell.h:
(V8DOMWindowShell):
(WebCore::V8DOMWindowShell::getEntered):
* bindings/v8/V8DOMWrapper.h:
(WebCore::V8DOMWrapper::getCachedWrapper):
* bindings/v8/WorldContextHandle.cpp:
(WebCore::WorldContextHandle::WorldContextHandle):
* bindings/v8/custom/V8DocumentCustom.cpp:
(WebCore::toV8):
* bindings/v8/custom/V8HTMLDocumentCustom.cpp:
(WebCore::toV8):
* bindings/v8/custom/V8SVGDocumentCustom.cpp:
(WebCore::toV8):
* bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
(WebCore::V8XMLHttpRequest::constructorCallback):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r129982.
http://trac.webkit.org/changeset/129982
https://bugs.webkit.org/show_bug.cgi?id=97971

hit assert in fast/overflow/overflow-height-float-not-removed-
crash3.html (Requested by eae on #webkit).

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

* wtf/Platform.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unskip {horizontal,vertical}-scrollbar-in-rtl.html

The expectations in fast/dom are actually Mac-specific (cf.
r73063), and most other ports use their own platform-specific
results due to the differences in behavior of the Home/End keys.

The results being checked in here are in line with the other
ports, so everything seems to be OK.

* platform/efl/TestExpectations:
* platform/efl/fast/dom/horizontal-scrollbar-in-rtl-expected.txt: Added.
* platform/efl/fast/dom/vertical-scrollbar-in-rtl-expected.txt: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unskip test that seems to be passing now.

* platform/efl/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
AsyncFileSystem::openFileSystem should have FileSystemType as a parameter.
https://bugs.webkit.org/show_bug.cgi?id=97963

Patch by Dongwoo Joshua Im <dw.im@samsung.com> on 2012-09-29
Reviewed by Gyuyoung Kim.

FileSystemType is an important information to maintain the file system,
and AsyncFileSystem::openFileSystem need to get the type as a parameter.
And, there are "FIXME" comments about that in WebCore source codes.

No new functionality, no new tests.

* Modules/filesystem/LocalFileSystem.cpp: Add FileSystemType as a parameter of AsyncFileSystem::openFileSystem.
(WebCore::openFileSystem):
(WebCore::LocalFileSystem::readFileSystem):
(WebCore::LocalFileSystem::requestFileSystem):
* platform/AsyncFileSystem.cpp: ditto.
(WebCore::AsyncFileSystem::openFileSystem):
* platform/AsyncFileSystem.h: ditto.
(AsyncFileSystem):
* platform/blackberry/AsyncFileSystemBlackBerry.cpp: ditto.
(WebCore::AsyncFileSystem::openFileSystem):
* platform/gtk/AsyncFileSystemGtk.cpp: ditto.
(WebCore::AsyncFileSystem::openFileSystem):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unskip a few seemingly passing tests with no associated bug.

* platform/efl-wk2/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Add proper bug links to the protocol handler crashes in efl-wk2.

* platform/efl-wk2/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Rebaseline for DateTimeNumericFieldElement should use Localizer functions.
https://bugs.webkit.org/show_bug.cgi?id=97318

* platform/chromium/TestExpectation:
* platform/chromium-linux/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt:
* platform/chromium-win/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2][GTK] Fix issues with WebKitFaviconDatabase in debug builds
https://bugs.webkit.org/show_bug.cgi?id=97966

Reviewed by Carlos Garcia Campos.

Fix failing ASSERTs detected when running the unit tests from
TestWebKitFaviconDatabase in debug builds.

* UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
(webkitFaviconDatabaseDispose): Close IconDatabase here, which is
the right place to do it according to GObject documentation.
(webkitFaviconDatabaseFinalize): Just destroy the private data
structure and chain up to parent class's finalize method.
(webkit_favicon_database_class_init): Override dispose method.

* UIProcess/API/gtk/tests/TestWebKitFaviconDatabase.cpp:
(webkitFaviconDatabaseFinalizedCallback): Delete files when the
WebKitFaviconDatabase is being finalized, since by that time the
IconDatabase from WebCore will be already closed.
(afterAll): Add a weak reference to WebKitFaviconDatabase and
provide a GWeakNotify callback (webkitFaviconDatabaseFinalizedCallback).

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