[CSSRegions] Remove unused RenderLayerModelObject::updateLayerIfNeeded
https://bugs.webkit.org/show_bug.cgi?id=122262

Reviewed by Alexandru Chiculita.

All regions have layers by default therefore there is no need for this function.
No tests needed, just a minor cleanup.

* rendering/RenderLayerModelObject.cpp:
* rendering/RenderLayerModelObject.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] [DEBUG] JavaScriptCore fails to build
https://bugs.webkit.org/show_bug.cgi?id=122267

Patch by Sergio Correia <sergio.correia@openbossa.org> on 2013-10-03
Reviewed by Michael Saboff.

Build fails due to an expression containing comparison between signed
and unsigned integer.

* llint/LLIntData.cpp:
(JSC::LLInt::Data::performAssertions): Add cast to avoid signed vs.
unsigned comparison warning.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Shapes] add shape-margin support for image valued shapes
https://bugs.webkit.org/show_bug.cgi?id=121619

Reviewed by Alexandru Chiculita.

Source/WebCore:

Add support for computing the shape-margin boundary for a shape-outside whose
value is an image.

Tests: fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-001.html
       fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-002.html
       fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-003.html

* rendering/shapes/RasterShape.cpp:
(WebCore::MarginIntervalGenerator::MarginIntervalGenerator): Internal utility that generates the margin intervals for the image interval specified with set().
(WebCore::MarginIntervalGenerator::set):
(WebCore::MarginIntervalGenerator::intervalAt):
(WebCore::findInsertionPoint): Find the insertion point index for the the specified X value, within a vector of intervals sorted by X1.
(WebCore::RasterShapeIntervals::uniteMarginInterval): Destructively unite one interval with an existing one, or append it.
(WebCore::RasterShapeIntervals::computeShapeMarginIntervals):
(WebCore::RasterShape::marginIntervals): Return the lazily computed value, or create it with computeShapeMarginIntervals().
* rendering/shapes/RasterShape.h:
(WebCore::RasterShapeIntervals::getIntervals):
(WebCore::RasterShape::RasterShape):
(WebCore::RasterShapeIntervals::uniteMarginInterval):
* WTF/wtf/MathExtras.h: Added clampToUnsigned() inline.

LayoutTests:

Verify that the shape-outside margin-boundary is computed correctly for image valued shapes.

* fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-001-expected.txt: Added.
* fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-001.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-002-expected.txt: Added.
* fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-002.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-003-expected.txt: Added.
* fast/shapes/shape-outside-floats/shape-outside-floats-image-margin-003.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156838 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WinCairo] Compile error with VIDEO disabled.
https://bugs.webkit.org/show_bug.cgi?id=122266

Patch by peavo@outlook.com <peavo@outlook.com> on 2013-10-03
Reviewed by Brent Fulgham.

* dom/Document.cpp:
(WebCore::Document::dispatchFullScreenChangeOrErrorEvent): Protect with ENABLE(VIDEO) guard.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156839 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r156811): Objective-C JavaScriptCore API test failing on Mountain Lion bots
https://bugs.webkit.org/show_bug.cgi?id=122260

Reviewed by Alexey Proskuryakov.

For the API to work, the tests need to be compiled with a newer version of the LLVM
compiler. Until the bots are updated to that version, disable the tests on 10.8.

* TestWebKitAPI/Tests/mac/WebViewDidCreateJavaScriptContext.mm:



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