Remove Attr.isId and Attr.ownerElement.

These properties were removed in DOM4
<http://dom.spec.whatwg.org/#interface-attr>. Use counters
AttributeIsId and AttributeOwnerElement indicate they're rarely used
on the web (<0.01%.)

BUG=305105

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164820 bbb929c8-8fbe-4397-9dbb-9b2b20218538
More WTF collections garbage collection support

R=ager@chromium.org, cevans@chromium.org, haraken@chromium.org, vegorov@chromium.org, wibling@chromium.org, zerny@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164821 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Handle loops in audio graph better for PannerNodes

When a PannerNode searches the graph for audio sources connected to
the panner, prevent feedback loops from causing infinite loops.
Create a hashmap to keep track of all visited nodes so we don't visit
them more than once.

A test is also added to ensure we don't infloop.

BUG=331446

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164822 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename CustomElementCallbackScheduler to CustomElementScheduler.

Since r164737 the Custom Element scheduler now schedules element
resolution as well as callbacks. Give it a more generic name to
reflect its expanded responsibilities.

BUG=313384

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164823 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove Node::ancestorElement.

Ancestor element is a DOM concept that is not in DOM4. (DOM4 has
"ancestors", but it's a set of elements.) Every callsite asked for the
ancestor element of an element, which is effectively the same as
parentElement in Blink. So use parentElement instead.

BUG=325922

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164824 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix dynamically inserted media queries.

https://src.chromium.org/viewvc/blink?view=rev&revision=162573
caused dynamically inserted media queries to not apply
because insertRule would not mark the hasMediaQueries bit
on the StyleSheetContents.

With the current patch, if you add a media query and then remove
it, we'll erroneously think that the stylesheet still has media
queries, but that doesn't seem like a big deal to me. It doesn't
present as a bug. It just affects performance.

BUG=331899

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164825 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix invalid toElement call in Document::importNode

The bad cast was added in http://src.chromium.org/viewvc/blink?revision=164574&view=revision

Also made a better error message for ShadowRoot, since its nodeValue is "#document-fragment"

R=inferno@chromium.org
BUG=270033,332677

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164826 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix *Fail* tests in unregisterProtocolHandler test

In fast/dom/unregister-protocol-handler.html, some test field related to check an invalid url has been failed
because wrong syntax error string(SYNTAX_ERR) is used so far. This cl fix it with *SyntaxError*.

Additionally this cl improve error logs of unregister-protocol-handler.html.

BUG=N/A
TEST=LayoutTests/fast/dom/unregister-protocol-handler.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164827 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DocumentLoader cleanup (mostly request-related)

Remove m_originalRequestCopy, which is nearly identical to m_originalRequest.
The only difference is that m_originalRequestCopy's url changes during a same-
document navigation. The only place that might differentiate between the two
is RenderViewImpl::UpdateURL(), which falls back to the original request url
when there is no redirect chain to use for the original url. However,
DocumentLoader::updateForSameDocumentNavigation() guarantees that there is a
non-empty redirect chain in the only case where the original request url
changes.

Remove some unusued and unimplemented DocumentLoader functions, and make
frameLoader() private.

Unify requestURL() and url(), and remove the non-const DocumentLoader::request
accessor, which isn't used.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164828 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the unused FragmentationDisabler

Nothing uses this class, lets remove it.

R=eseidel@chromium.org,ojan@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164829 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Dealing with bound function calls, we can show information about original functions instead of referencing to v8natives.js on the timeline."

This reverts commit c8920c973c1af8de5e5c5a792b83f0b37ce5cdc0, since it
is still causing timeouts on the Blink ChromeOS canary bots.

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