[BlackBerry] Leave surface resizing to the client.
https://bugs.webkit.org/show_bug.cgi?id=102280
RIM PR 235034
RIM PR 160619

Reviewed by Adam Treat.

Now that we always blit on the user interface thread and
use the client's userInterfaceViewportAccessor() to determine
the destination rectangle for blitting, changing the viewport
size does not affect the window or target surface directly.
The only way that blitted output is affected is through
layout, scroll position or scale changes. None of these
require us to synchronize with the UI thread to resize its
target surface.

This commit simplifies setViewportSize() and removes a
blocking message dispatch by simply offloading all surface
resizing responsibilities to the client. This is safer,
cleaner and easier.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::WebPagePrivate):
(BlackBerry::WebKit::WebPage::setScreenOrientation):
(BlackBerry::WebKit::WebPagePrivate::setViewportSize):
* Api/WebPage.h:
* Api/WebPageClient.h:
* Api/WebPage_p.h:
(WebPagePrivate):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update computed line position algorithm
https://bugs.webkit.org/show_bug.cgi?id=93779

Reviewed by Philippe Normand.

Compute the position of a text track relative to rendered tracks. This is needed to position
cues correctly when there is more than one text track.

Source/WebCore: 

Test: media/track/track-cue-container-rendering-position.html

* html/track/TextTrack.cpp:
(WebCore::TextTrack::invalidateTrackIndex): Invalidate both cached track indices.
(WebCore::TextTrack::trackIndexRelativeToRenderedTracks): Return the index of the track relative
    to other rendered tracks.
* html/track/TextTrack.h:

* html/track/TextTrackCue.cpp:
(WebCore::TextTrackCue::calculateComputedLinePosition): Use trackIndexRelativeToRenderedTracks()
    instead of trackIndex() so cues are positioned correctly.

* html/track/TextTrackList.cpp:
(TextTrackList::getTrackIndex): Change return type from unsigned to int.
(TextTrackList::getTrackIndexRelativeToRenderedTracks): New.
* html/track/TextTrackList.h:

LayoutTests: 

* media/track/track-cue-container-rendering-position-expected.txt: Added.
* media/track/track-cue-container-rendering-position.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unnecesary dependencies INPUT_TYPE_COLOR
https://bugs.webkit.org/show_bug.cgi?id=102379

Patch by Miguel Garcia <miguelg@chromium.org> on 2012-11-15
Reviewed by Darin Adler.

Platforms should be able to enable INPUT_TYPE_COLOR without enabling
CALENDAR_PICKER and DATALIST_ELEMENT. Before this patch however there would be
compile errors in such configuration.

No new tests since this is not adding any extra functionality.

* WebCore.gyp/WebCore.gyp:
* html/ColorInputType.cpp:
(WebCore::ColorInputType::shouldShowSuggestions):
* make-file-arrays.py:
(main):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update DOMException name: NoModificationAllowedError
https://bugs.webkit.org/show_bug.cgi?id=102134

Reviewed by Ojan Vafai.

Source/WebCore:

Patch 7 of 25 to update DOMException name to match the spec and Firefox.

Updated existing tests.

* dom/DOMCoreException.cpp:

LayoutTests:

Updated tests and expectations.

* dom/xhtml/level1/core/hc_nodevalue03-expected.txt:
* fast/dom/EntityReference/readonly-exceptions-expected.txt:
* fast/dom/HTMLElement/insertAdjacentHTML-errors-expected.txt:
* fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.js:
* fast/dom/computed-style-set-property-expected.txt:
* fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt:
* fast/dom/outerText-no-element-expected.txt:
* fast/dom/setPrimitiveValue-exceptions-expected.txt:
* fast/dom/setPrimitiveValue-expected.txt:
* fast/dynamic/outerHTML-no-element-expected.txt:
* fast/frames/out-of-document-iframe-has-child-frame-expected.txt:
* platform/chromium-mac/fast/dom/setPrimitiveValue-exceptions-expected.txt:
* platform/chromium-win/fast/dom/setPrimitiveValue-exceptions-expected.txt:
* platform/chromium-win/svg/custom/baseval-animval-equality-expected.txt:
* platform/chromium/fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt:
* platform/chromium/fast/frames/out-of-document-iframe-has-child-frame-expected.txt:
* platform/chromium/svg/custom/baseval-animval-equality-expected.txt:
* platform/gtk/svg/custom/baseval-animval-equality-expected.txt:
* platform/mac/svg/custom/baseval-animval-equality-expected.txt:
* platform/qt/svg/custom/baseval-animval-equality-expected.txt:
* platform/qt/svg/dom/altGlyph-dom-expected.txt:
* svg/animations/animate-gradient-transform-expected.txt:
* svg/dom/SVGColor-expected.txt:
* svg/dom/SVGLengthList-basics-expected.txt:
* svg/dom/SVGNumberList-basics-expected.txt:
* svg/dom/SVGPaint-expected.txt:
* svg/dom/SVGTransformList-basics-expected.txt:
* svg/dom/SVGViewSpec-defaults-expected.txt:
* svg/dom/altGlyph-dom-expected.txt:


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