Support deprecation + use counters for constructor attributes.

If a constructor attribute is annotated with either [MeasureAs=..] or
[DeprecateAs=..], then emit a needed callback wrapper that performs
the required reporting before looking up the constructor.

Use it to correctly handle use counters for the "webkitURL" properties
that both Window and WorkerGlobalScope currently provide; use counters
also added for these here.

(The above change also happens to fix use counter reporting
for the window.WebKitShadowRoot constructor.)

R=nbarth@chromium.org,haraken@chromium.org
BUG=348985

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168576 bbb929c8-8fbe-4397-9dbb-9b2b20218538
9 files changed
tree: 6a78478070358210526a1d9b9b70e2ce426818de
  1. third_party/