Fix converted result caching in FileReaderLoader::stringResult()

stringResult() returns cached result when m_rawData is not
modified since the last stringResult() call. But the variable
m_isRawDataConverted which tells if m_rawData is modified and
not yet converted is not correctly set when conversion is done.
This CL fixes it.

Review URL: https://chromiumcodereview.appspot.com/23440029

git-svn-id: svn://svn.chromium.org/blink/trunk@158092 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Cap allocation for ImmutableStylePropertySet.

The m_arraySize will be capped to MaxArraySize, so it is unnecessary to
allocate room for more than MaxArraySize properties.

Leftover from https://codereview.chromium.org/22917005/

BUG=None

Review URL: https://chromiumcodereview.appspot.com/23708049

git-svn-id: svn://svn.chromium.org/blink/trunk@158093 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Cleanup: Start using toFoo methods as part of newly adopted coding guideline.

As part of newly adopted coding guidelines, static_cast<Classname*> is discouraged and toFoo calling is encouraged. To enforce the new guideline, a patch (https://codereview.chromium.org/23654034/) on path to landing, which would raise presubmit error if it finds use of static_cast<Classname*> in the patch. This patch replaces static_cast<Classname*> in present codebase with toFoo(), at all places for which toFoo() is already defined.

R=tkent, inferno, abarth

BUG=None

TEST=None; no behavior change; No regressions with layout tests, webkit_unit_tests, content_unittests

Review URL: https://chromiumcodereview.appspot.com/24253004

git-svn-id: svn://svn.chromium.org/blink/trunk@158094 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improve generated TypeError exception messages in bindings.

"DOM object constructor cannot be called as a function" now reads "Failed
to construct '[TYPE GOES HERE]': Please use the 'new' operator, this DOM
object constructor cannot be called as a function."

BUG=270033

Review URL: https://chromiumcodereview.appspot.com/23653054

git-svn-id: svn://svn.chromium.org/blink/trunk@158095 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r158089

http://src.chromium.org/viewvc/blink?view=revision&revision=158089

BUG=31286
TBR=a.suchit@samsung.com

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

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