Revert of WebAudio: Remove AudioNode::RefType. (https://codereview.chromium.org/349213007/)

Reason for revert:
Made webaudio/delaynode-max-nondefault-delay.html flaky.


Original issue's description:
> WebAudio: Remove AudioNode::RefType.
> 
> The motivation of this CL is to reduce manual ref()/deref().
> 
> AudioNode has two types of ref()/deref(); RefTypeNormal and RefTypeConnection.
> It made the code complex, and we couldn't use RefPtr<> for the connection type
> references.
> 
> This CL removes AudioNode::RefType.
>  - m_normalRefCount and m_connectionRefCount were updated independently. After
>    this CL, connection type references updates both of them.
>  - We use RefPtr<> for connection type references, and call
>    AudioNode::makeConnection() and AudioNode::breakConnection() explicitly when
>    connections are updated.
> 
> BUG=392788
> TEST=none; This CL should not have behavior changes.
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177910

NOTRY=true
TBR=rtoy@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177916 bbb929c8-8fbe-4397-9dbb-9b2b20218538
FileReader should not use deprecated {,un}setPendingActivity

BUG=354845

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177917 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Change focus ring rect calculation to use support subpixel text"

This reverts change r176889 (commit 121e5f94eb1d0d6bfc744a97fe6ddd12542
c0344) as it caused more harm then good.

BUG=392376
R=pdr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177918 bbb929c8-8fbe-4397-9dbb-9b2b20218538
SharedWorker should not use deprecated {,un}setPendingActivity

BUG=354845

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177919 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL: Treat undefined as missing for optional arguments with defaults

For optional arguments with defaults, treat undefined as missing simply
by checking 'info[N].IsUndefined()' instead of 'N <= info.Length()'.

This works since V8's indexing operator returns an undefined value for
all out-of-range indexes.

Changes in behavior that had (or now has) testing coverade matches
Firefox (Nightly), except in the case of WebKitCSSMatrix's constructor,
which Firefox naturally doesn't have.

BUG=335871

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177920 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [Console] Use throttler for viewport invalidation.

This patch doesn't do any functional change - it simply eliminate
setTimeout usage from ConsoleView in favor of Throttler.

R=vsevik

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177921 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Gardening: update some TestExpectations

fast/text/international/rtl-space-in-ltr-element.html -> passing
print-document-without-documentElement-crash.html -> crashing

BUG=348911,393157
TBR=junov

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177922 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Defer calling ThreadState::postCleanup after leaving the final safe point

ThreadState::postCleanup should be called after it's guaranteed that the thread will never get involved in a GC. (See https://code.google.com/p/chromium/issues/detail?id=388294#c19 for what happens if we don't guarantee the order.) To guarantee the order, this CL moves ThreadState::postCleanup after the thread leaves the final safe point.

(FYI, the only user of the postCleanup task is WorkerScriptController.)

BUG=388294

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177923 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Show other threads besides main on the timeline flame chart.

BUG=361045

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177924 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove remaining callers of deprecatedShadowAncestorNode

Remove remaining callers of deprecatedShadowAncestorNode
and remove the same function from Node.h

BUG=234099

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177926 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Hide 'Program' records on tracing based timeline flame chart

They provide no actionable data for the user but clutter the screen.

BUG=361045
R=alph@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177927 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove duplicated comments in Headers.cpp.

BUG=373120

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177928 bbb929c8-8fbe-4397-9dbb-9b2b20218538
An empty SVG path string is not in error

Adaption of Rob Buis' (<rwlbuis@webkit.org> / <rob.buis@samsung.com>)
WebKit patch. (http://trac.webkit.org/changeset/154896)

BUG=264123

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177929 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Ensure that RawResource requests have a request context.

This patch adds an ASSERT to 'ResourceFetcher::fetchRawResource()' which
ensures that the request's context is not "unspecified". It should have
no practical impact, as we're not yet using this information to drive
security checks, but we need to lay this foundation first.

BUG=390497

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

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

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

TBR=eae@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177931 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Service Worker: temporarily add failing expectations for 3-sided patch

These tests will change when https://codereview.chromium.org/377153003 lands,
as unregistration will cause workers to enter the 'redundant' state.

BUG=388095
TBR=michaeln,nhiroki

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177932 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[screen-orientation] Update implementation to match recent spec changes.

https://github.com/w3c/screen-orientation/pull/21

BUG=162827

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177734

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177933 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Make XSSAuditorDelegate::m_document traceable.

XSSAuditorDelegate is a part of HTMLDocumentParser.

BUG=357163

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177934 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make WebGLRenderingContext.getAttachedShaders() return type nullable

This allows it to return null when the context is lost or when an error
occurs, without resorting to a custom binding for the method.

BUG=390780

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177935 bbb929c8-8fbe-4397-9dbb-9b2b20218538
FileWriter should not use deprecated {,un}setPendingActivity

BUG=354845

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

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