Have DOMImplementation::document() return reference.
    
Have DOMImplementaion::document() return reference
as m_document is a stored as a reference.

As this function is used in V8, new IDL attribute
[SetWrapperReferenceFromReference] has been added, which supports document() returning reference.

New binding test has been added for this attribute.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167755 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: Remove special case of SVGAnimated* wrapper code

This removes the special case for SVGAnimated* wrapper code,
by replacing it with [SetWrapperReferenceTo(SVGElement contextElement)]
and removing the code from the Perl CG;
no changes to generated bindings.
(Fixes 17/24 V8SVGAnimated* files.)

Followup to:
IDL compiler: Regularize SVGAnimated* wrapper code
https://codereview.chromium.org/176953002/

BUG=239771
TBR=haraken, kouhei

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167756 bbb929c8-8fbe-4397-9dbb-9b2b20218538
(Cleanup) Implement WebDOMFileSystem::create() etc to deprecate FileSystem-related methods in WebFrame

We have several FileSystem-related scripting methods in WebFrame:
- WebFrame::createFileSystem
- WebFrame::createSerializableFileSystem
- WebFrame::createFileEntry

But they are totally unrelated to Frame and would be better be
isolated into FileSystem-related interface.

This patch adds euivalent methods to WebDOMFileSystem to deprecate them.

BUG=none
TEST=no functional changes

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167757 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Drop redundant 'ExceptionMessages::failedToXXX' calls.

Since ExceptionState takes care of these internally, calling them when
throwing an exception leads to redundancy in the exception messages.

As a drive-by, this CL fixes the range representation in
ExceptionMessages::indexOutsideRange.

BUG=270033

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167758 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix some memory leaks in Blink unit tests.

Found by LeakSanitizer. I manually audited similar usages elsewhere in
Blink to make sure we weren't leaking it ouside of tests too.

BUG=none
R=abarth@chromium.org

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

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