Replace access ot HTMLMediaElement from MediaPlayerPrivateBlackBerry with methods in MediaPlayerClient - updated with notes from initial reviews.  https://bugs.webkit.org/show_bug.cgi?id=84291

        Reviewed by Eric Carlson.

        Code standard compliance - no functional change, so no new tests required.

        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::mediaPlayerExitFullscreen):
        (WebCore):
        (WebCore::HTMLMediaElement::mediaPlayerIsVideo):
        (WebCore::HTMLMediaElement::mediaPlayerContentBoxRect):
        (WebCore::HTMLMediaElement::mediaPlayerSetSize):
        (WebCore::HTMLMediaElement::mediaPlayerPause):
        (WebCore::HTMLMediaElement::mediaPlayerPlay):
        (WebCore::HTMLMediaElement::mediaPlayerIsPaused):
        (WebCore::HTMLMediaElement::mediaPlayerHostWindow):
        (WebCore::HTMLMediaElement::mediaPlayerWindowClipRect):
        * html/HTMLMediaElement.h:
        (HTMLMediaElement):
        * platform/graphics/MediaPlayer.h:
        (WebCore):
        (WebCore::MediaPlayerClient::mediaPlayerExitFullscreen):
        (WebCore::MediaPlayerClient::mediaPlayerIsVideo):
        (WebCore::MediaPlayerClient::mediaPlayerContentBoxRect):
        (WebCore::MediaPlayerClient::mediaPlayerSetSize):
        (WebCore::MediaPlayerClient::mediaPlayerPause):
        (WebCore::MediaPlayerClient::mediaPlayerPlay):
        (WebCore::MediaPlayerClient::mediaPlayerIsPaused):
        (WebCore::MediaPlayerClient::mediaPlayerHostWindow):
        (WebCore::MediaPlayerClient::mediaPlayerWindowClipRect):
        * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
        (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
        (WebCore::MediaPlayerPrivate::load):
        (WebCore::MediaPlayerPrivate::paint):
        (WebCore::MediaPlayerPrivate::resizeSourceDimensions):
        (WebCore::MediaPlayerPrivate::updateStates):
        (WebCore::MediaPlayerPrivate::onPauseStateChanged):
        (WebCore::MediaPlayerPrivate::onPlayNotified):
        (WebCore::MediaPlayerPrivate::onPauseNotified):
        (WebCore::MediaPlayerPrivate::onAuthenticationNeeded):
        (WebCore::MediaPlayerPrivate::showErrorDialog):
        (WebCore::MediaPlayerPrivate::platformWindow):
        (WebCore::MediaPlayerPrivate::isElementPaused):
        (WebCore::MediaPlayerPrivate::isTabVisible):
        * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.h:
        (MediaPlayerPrivate):

Patch by John Griggs <jgriggs@rim.com> on 2012-08-23

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Distributed nodes should not share styles.
https://bugs.webkit.org/show_bug.cgi?id=90661

Patch by Takashi Sakamoto <tasak@google.com> on 2012-08-23
Reviewed by Hajime Morita.

Source/WebCore:

styleForElement tries to use previous sibling's style for distributed
nodes. However distributed nodes are children of a shadow host, but
the nodes are not siblings as the result of distribution.
The spec is:
http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#shadow-dom-subtrees
So sharing previous sibling's style should be disabled for distrbuted
nodes.

Test: fast/dom/shadow/style-of-distributed-node.html

* css/StyleResolver.cpp:
(WebCore::StyleResolver::StyleResolver):
Initialized m_distributedToInsertionPoint. Its initial value is false.
(WebCore::StyleResolver::initForStyleResolve):
After invoking NodeRenderingContext, if the context returns any
insertion point, set m_distributedToInsertionPoint to be true.
Otherwise, false. The value is used in styleForElement.
(WebCore::StyleResolver::styleForElement):
If m_distributedToInsertionPoint is true, disable local sibling style
cache.
* css/StyleResolver.h:
(StyleResolver):
Added a new member variable, m_distributedToInsertionPoint.
The variable keeps whether the m_element is distributed to an
insertion point.

LayoutTests:

* fast/dom/shadow/style-of-distributed-node-expected.txt: Added.
* fast/dom/shadow/style-of-distributed-node.html: Added.
* fast/dom/shadow/user-modify-inheritance-expected.txt:
As this patch also change the user-modify-inheritance's test result,
updated the expected result.
* fast/dom/shadow/user-modify-inheritance.html:
Added FIXME comment.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
getComputedStyle returns wrong value for CSS3 2D transformations
https://bugs.webkit.org/show_bug.cgi?id=94211

Patch by Alexander Shalamov <alexander.shalamov@intel.com> on 2012-08-23
Reviewed by Simon Fraser.

Source/WebCore:

When computed style is calculated for CSS3 2D transformation, content
box size is used. According to W3C specification, object's bounding
box should be used. This patch fixes transformation matrix calculation.

Layout tests getComputedStyle-transform.html and computed-style-origin.html
were modified to test changes.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::computedTransform):
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
(WebCore::pixelSnappedSizingBox): Removed unused method

LayoutTests:

This change fixes getComputedStyle-transform.html test.
Before this change, the test doesn't do anything.
When new transformation value is set, it immediately read
back as an old value, thus computed style is equal to
an old style. Moreover, expected result is never checked.
Added new test case to computed-style-origin.html layout test.

* fast/css/getComputedStyle/getComputedStyle-transform-expected.txt:
* fast/css/getComputedStyle/getComputedStyle-transform.html:
* transforms/2d/computed-style-origin-expected.txt:
* transforms/2d/computed-style-origin.html:

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