Remove some unecessary code from pseudoStyleRulesForElement.

-The null check really belongs in getMatchedCSSRules as that's the
only codepath that might pass a null.
-Resetting documentElement state is not correct here. We already
do the resetting in all the appropriate styleFor* methods. This method
is called from editing and the inspector. It shouldn't be messing
with document state.

Review URL: https://codereview.chromium.org/53103002

git-svn-id: svn://svn.chromium.org/blink/trunk@160962 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Avoid calling SVGFontFaceElement::rebuildFontFace() for non font-face specific attributes

When enabling warnings at compile time, the compiler complains that the
cssPropertyIdForSVGAttributeName() function in SVGFontFaceElement.cpp is unused, even
though SVGFontFaceElement.cpp is referring to this function. The reason is that
a function with the same name exists in the parent SVGElement class and this one ends
up getting called instead.

The proposed solution is to rename the function to cssPropertyIdForFontFaceAttributeName()
instead in SVGFontFaceElement.cpp to avoid the name clash and make sure
SVGFontFaceElement::parseAttribute() calls the right function.

cssPropertyIdForFontFaceAttributeName() returns the CSSPropertyID only for attribute
names specific to the FontFace element, while cssPropertyIdForSVGAttributeName() in
SVGElement was returning the CSSPropertyID for ALL styling attributes. As a consequence,
we avoid unnecessary calls to SVGFontFaceElement::rebuildFontFace() for non font-face
specific attributes.

BUG=312287

Review URL: https://codereview.chromium.org/53143002

git-svn-id: svn://svn.chromium.org/blink/trunk@160963 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move WebCryptoKey to platform/

BUG=297477

Review URL: https://codereview.chromium.org/45923003

git-svn-id: svn://svn.chromium.org/blink/trunk@160964 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactor TextTrackLoader to properly use the dataReceived callback

We get the data and length in the callback, so just use it directly.

This accidentally fixes a parsing test, by changing the segmentation
of the input received by the WebVTT parser. A separate bug was filed
to fix the problem: http://crbug.com/313222

BUG=312756

Review URL: https://codereview.chromium.org/52533003

git-svn-id: svn://svn.chromium.org/blink/trunk@160965 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move WrappedResource* to platform/

BUG=297477

Review URL: https://codereview.chromium.org/46573011

git-svn-id: svn://svn.chromium.org/blink/trunk@160966 bbb929c8-8fbe-4397-9dbb-9b2b20218538