[chromium] Use skia directly in CCHeadsUpDisplayLayerImpl
https://bugs.webkit.org/show_bug.cgi?id=92810

Reviewed by Adrienne Walker.

The chromium compositor HUD doesn't need to use a full GraphicsContext/etc, all it draws are rectangles and a
simple stroked path. This draws the HUD with straight skia calls and removes the now unnecessary PlatformCanvas
wrapper.

* WebCore.gypi:
* platform/graphics/chromium/PlatformCanvas.cpp: Removed.
* platform/graphics/chromium/PlatformCanvas.h: Removed.
* platform/graphics/chromium/cc/CCFontAtlas.cpp:
(WebCore::CCFontAtlas::drawText):
* platform/graphics/chromium/cc/CCFontAtlas.h:
(CCFontAtlas):
* platform/graphics/chromium/cc/CCHeadsUpDisplayLayerImpl.cpp:
(WebCore::CCHeadsUpDisplayLayerImpl::willDraw):
(WebCore::CCHeadsUpDisplayLayerImpl::drawHudContents):
(WebCore::CCHeadsUpDisplayLayerImpl::drawFPSCounter):
(WebCore::CCHeadsUpDisplayLayerImpl::drawFPSCounterText):
(WebCore::CCHeadsUpDisplayLayerImpl::drawDebugRects):
* platform/graphics/chromium/cc/CCHeadsUpDisplayLayerImpl.h:
(WebCore):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-webkit-order should take an integer, not a number
https://bugs.webkit.org/show_bug.cgi?id=92688

Reviewed by Ojan Vafai.

Source/WebCore:

The spec changed back from floats to integers:
http://lists.w3.org/Archives/Public/www-style/2012Jul/0607.html

Tests: css3/flexbox/css-properties.html: Updated.
       css3/flexbox/flex-order.html: Test cases modified.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
* css/StyleBuilder.cpp:
(WebCore::StyleBuilder::StyleBuilder):
* rendering/RenderFlexibleBox.cpp:
(WebCore):
(RenderFlexibleBox::OrderHashTraits):
(WebCore::RenderFlexibleBox::OrderHashTraits::emptyValue):
(WebCore::RenderFlexibleBox::OrderHashTraits::constructDeletedValue):
(WebCore::RenderFlexibleBox::OrderHashTraits::isDeletedValue):
(RenderFlexibleBox::OrderIterator):
* rendering/RenderFlexibleBox.h:
* rendering/style/RenderStyle.h:
* rendering/style/StyleRareNonInheritedData.h:
(StyleRareNonInheritedData):

LayoutTests:

Update tests.

* css3/flexbox/css-properties-expected.txt:
* css3/flexbox/css-properties.html:
* css3/flexbox/flex-order.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unused method HTMLElementStack::bottom()
https://bugs.webkit.org/show_bug.cgi?id=92807

Patch by Kwang Yul Seo <skyul@company100.net> on 2012-07-31
Reviewed by Kentaro Hara.

HTMLElementStack::bottom() was replaced with HTMLElementStack::rootNode()
in r80231.

No functional change, so no new tests.

* html/parser/HTMLElementStack.cpp:
* html/parser/HTMLElementStack.h:
(HTMLElementStack):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION: flexbox content-size fails to exclude scrollbar
https://bugs.webkit.org/show_bug.cgi?id=92667

Reviewed by Ojan Vafai.

Source/WebCore:

In r123909, we switched to computing the height using computeContentLogicalHeightUsing().
Unfortunately, this includes the scrollbar when we want the content height. Add a helper
method for computing the value needed by flexbox.

Test: css3/flexbox/content-height-with-scrollbars.html

* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::mainAxisContentExtent): Use computeLogicalClientHeight
(WebCore::RenderFlexibleBox::computeLogicalClientHeight): Add new method for taking scrollbar into consideration.
(WebCore::RenderFlexibleBox::computeAvailableFreeSpace): Use computeLogicalClientHeight
(WebCore::RenderFlexibleBox::lineBreakLength): Use computeLogicalClientHeight
* rendering/RenderFlexibleBox.h:

LayoutTests:

Add column flow test cases with scrollbars forced on.

* css3/flexbox/content-height-with-scrollbars-expected.html: Added.
* css3/flexbox/content-height-with-scrollbars.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
flexbox should avoid floats
https://bugs.webkit.org/show_bug.cgi?id=92661

Reviewed by Ojan Vafai.

Source/WebCore:

Block types should avoid floats. Deprecated flexbox and grid already avoid floats.

Tests: css3/flexbox/floated-flexbox.html - added a test case.

* rendering/RenderFlexibleBox.h:

LayoutTests:

Add a test case to make sure flexboxen avoid floats.

* css3/flexbox/floated-flexbox.html:


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