CSP: Blocked 'track' sources should only log once to the console.
https://bugs.webkit.org/show_bug.cgi?id=106091

Reviewed by Eric Carlson.

Source/WebCore:

HTMLTrackElement posts a message to the console when track data is
blocked by Content Security Policy. Now that we're logging inside the
ContentSecurityPolicy object itself, there's no need for the
duplication. This patch drops the extra log message (and, as a
side-effect, adds a test that ensures that 'track' content is governed
by the 'media-src' directive).

Test: http/tests/security/contentSecurityPolicy/media-src-track-block.html

* html/HTMLTrackElement.cpp:
(WebCore::HTMLTrackElement::canLoadUrl):

LayoutTests:

* http/tests/security/contentSecurityPolicy/media-src-track-block-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/media-src-track-block.html: Added.
* http/tests/security/contentSecurityPolicy/resources/track.srt: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138820 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Clamp font sizes to valid range in RenderStyle::setFontSize
https://bugs.webkit.org/show_bug.cgi?id=106014

Patch by John Mellor <johnme@chromium.org> on 2013-01-04
Reviewed by Emil A Eklund.

There is a test-case attached to http://crbug.com/167443, but I can't
think of a good way of automatically testing this. Functionality
shouldn't change on normal pages.

* rendering/style/RenderStyleConstants.h:
    Add constant for maximum allowed font size.
* css/StyleBuilder.cpp:
(WebCore::ApplyPropertyFontSize::applyValue):
    Use constant from RenderStyleConstants.h instead of hardcoding.
* css/StyleResolver.cpp:
(WebCore::StyleResolver::getComputedSizeFromSpecifiedSize):
    Use constant from RenderStyleConstants.h instead of hardcoding.
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::setFontSize):
    Clamp non-finite and out of range font sizes.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Remove unneeded WebDelegatedRendererLayer and WebCompositorTransferableResourceList headers
https://bugs.webkit.org/show_bug.cgi?id=105263

Patch by James Robinson <jamesr@chromium.org> on 2013-01-04
Reviewed by Darin Fisher.

These aren't needed any more since the delegation will be set up on the chromium side.

* Platform.gypi:
* chromium/public/WebCompositorSupport.h:
(WebKit):
* chromium/public/WebCompositorTransferableResourceList.h: Removed.
* chromium/public/WebDelegatedRendererLayer.h: Removed.

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