Fix memory leak in WorkerAllowMainThreadBridgeBase.

WorkerAllowMainThreadBridgeBase allocates m_workerGlobalScopeObserver, but does
not free it. This CL fixes it.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159487 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update length on char substitution in HarfBuzzShaper

Change HarfBuzzShaper character normalization methods to recompute the
length of the string as the destination string may be shorter than the
source string in cases where a muli code unit character is replaced by
a single code unit character (such as a zero width space).

The m_normalizedBuffer array is still allocated based on the source
length. This may result in it being larger than required in the
relatively uncommon case where one or more multi code unit characters
are replaced with single code unit character. This saves us from
having to iterate over the string twice.

BUG=306255
R=jsbell@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159488 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix non-useWideViewport initial-scale for Android WebView CTS test.

targetDensityDPIFactor was the value usually obtained from the previous
calculation in the case of small documents anyway.  The SetInitialScale
CTS test expects that the reported scale will always be
targetDensityDPIFactor * deviceScaleFactor even when the document is 
wider.

NOTRY=true
BUG=internal b/11061496

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159489 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get rid of custom bindings for AudioBufferSourceNode.buffer setter

Get rid of custom bindings for AudioBufferSourceNode.buffer setter by
leveraging [StrictTypeChecking] IDL extended attribute and updating
the implementation to throw if the input buffer is NULL or if the
number of channels is too big.

There is no web-exposed behavior change.

R=haraken, kbr
BUG=

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

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