[CSS Shapes] inset does not properly clamp large corner radii
https://bugs.webkit.org/show_bug.cgi?id=129726

Reviewed by Dirk Schulze.

Source/WebCore:

Make sure that radii that are larger than 50% of the associated shape
dimension (height or width) are properly reduced the same way as
border-radius radii are.

Test: fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius.html

* rendering/shapes/Shape.cpp:
(WebCore::ensureRadiiDoNotOverlap): Drive by style fix.
(WebCore::Shape::createShape): Scale radii the same way as border
    radii are scaled.
* platform/graphics/FloatRoundedRect.h:
(WebCore::calcBorderRadiiConstraintScaleFor): Move border radii
    constraint calculation function out so that it can be shared by
    the shape code.
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::getRoundedBorderFor): Call renamed scale function.

LayoutTests:

* fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Shapes] inset does not properly clamp large corner radii
https://bugs.webkit.org/show_bug.cgi?id=129726

Patch by Bem Jones-Bey <bjonesbe@adobe.com> on 2014-03-07
Reviewed by Dirk Schulze.

* fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165262 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CMake] [GTK] Build with ninja when it is available
https://bugs.webkit.org/show_bug.cgi?id=129805

Reviewed by Philippe Normand.

* Scripts/webkitdirs.pm:
(canUseNinja): Added this helper which tries to execute Ninja, in an effort to determine
if it's available on the system.
(cmakeGeneratedBuildfile): Return the path to the generated build file. Only Unix support ATM.
(generateBuildSystemFromCMakeProject): For GTK+ compile with Ninja when possible.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
FLT should call fmod directly on platforms where LLVM cannot relocate the libcall
https://bugs.webkit.org/show_bug.cgi?id=129865

Patch by Andrew Trick <atrick@apple.com> on 2014-03-07
Reviewed by Filip Pizlo.

* ftl/FTLIntrinsicRepository.h:
* ftl/FTLOutput.h:
(JSC::FTL::Output::doubleRem):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165264 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use OwnPtr in StructureIDTable
https://bugs.webkit.org/show_bug.cgi?id=129828

Reviewed by Geoffrey Garen.

This reduces the amount of boilerplate and fixes a memory leak.

* runtime/StructureIDTable.cpp:
(JSC::StructureIDTable::StructureIDTable):
(JSC::StructureIDTable::resize):
(JSC::StructureIDTable::flushOldTables):
(JSC::StructureIDTable::allocateID):
(JSC::StructureIDTable::deallocateID):
* runtime/StructureIDTable.h:
(JSC::StructureIDTable::table):
(JSC::StructureIDTable::get):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r165262.
http://trac.webkit.org/changeset/165262
https://bugs.webkit.org/show_bug.cgi?id=129887

Fix wrong commit message (Requested by mpakula on #webkit).

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165266 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] buid-webkit should use CMake by default
https://bugs.webkit.org/show_bug.cgi?id=129855

Reviewed by Carlos Garcia Campos.

Make the CMake build the default GTK+ build when using build-webkit. This will
ensure that all bots are using CMake. We do this by swapping --gtk and --gtkcmake,
so that we have --gtk and --gtkautotools.

* Scripts/webkitdirs.pm: Swap --gtkcmake/--gtk for --gtk/--gtkautotools.
* Scripts/webkitpy/port/gtk.py: Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL gardening

Clear test expectations for passing tests.

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165268 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove non-working optimization that was attempted on iOS only
https://bugs.webkit.org/show_bug.cgi?id=129595
<rdar://problem/15798825>

Reviewed by Sam Weinig.

Code in GCController tried to optimize cases where the controller
was used, but no JavaScript had been run in the current process.
The code was never effective, and was iOS-only. Another way to fix
the problem would be to change the code so it works, and if we do
that we should do it for all platforms, not just iOS.

* bindings/js/GCController.cpp:
(WebCore::GCController::garbageCollectNow): Remove check of
JSDOMWindow::commonVMExists, since it's called just after a call
to JSDOMWindow::commonVM, which will create it as a side effect.
(WebCore::GCController::releaseExecutableMemory): Ditto.

* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::commonVM): Removed iOS-specific code
that pulled the commonVM global out into another function so we
can check for its existence without creating it as a side effect.

* bindings/js/JSDOMWindowBase.h: Ditto.

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