Throw TypeError exception instead of TypeMismatchError in terms of SVGTearOffs.

This CL is aligned with FF.
When a SVG instance is used as parameter of a function, the the function
should throw TypeError instead of TypeMismatchError if the given argument is
mismatched.

For example,
SVGTextContentElement svgText;
svgText.getCharNumAtPosition("Not SVGPoint");

In this case, this CL makes Blink throw TypeError.

BUG=301660
TEST=Source/bindings/tests/idls/TestObject.idl,
svg/dynamic-updates/SVGMarkerElement-svgdom-setOrientToAngle-call.html,
svg/text/svgtextcontentelement-methods-parameters.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159513 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix divede-by-zero crash on background-repeat round

This seems to be a regression from this change: https://src.chromium.org/viewvc/blink?revision=158017&view=revision

We make sure that the number of tiles of an image is always greater than 0 (at least 1).

BUG=305314

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

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