StyleTree should have only scoped style resolvers for in-document nodes.

StyleResolver::resetAuthorStyles misses removing scoped style resolvers
when a given scoping node's hasScopedHTMLStyleChild flag has been already cleared, or
a given scoping node is in a shadow tree but not shadow root.

In the above cases, StyleTree has scoped style resolvers whose scoping nodes are not in document.
This causes heap-use-after-free.

To test this issue, added ASSERTION to setupScopedStylesTree, and made the following 3 existing layout tests
(need debug-built content_shell) cover this issue. Without this patch, the layout tests crash
in WebCore::ScopedStyleTree::setupScopedStylesTree().

BUG=313529

TEST=fast/dom/shadow/athost-atrules.html,fast/dom/shadow/host-pseudo-class.html,fast/css/style-scoped/style-scoped-change-scoped-in-shadow.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@161142 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: Remove argument [TreatReturnedNullStringAs] test case

Test-only change:
[TreatReturnedNullStringAs] is only used on methods and attributes
in actual code; for parameters the closest extended attribute (which
is actually used) is [TreatNullAs=NullString],
which already has tests (immediately below).

Docs:
https://sites.google.com/a/chromium.org/dev/blink/webidl/blink-idl-extended-attributes#TOC-TreatReturnedNullStringAs-m-a-
https://sites.google.com/a/chromium.org/dev/blink/webidl/blink-idl-extended-attributes#TOC-TreatNullAs-a-p-TreatUndefinedAs-a-p-

BUG=239771
NOTRY=true
TBR=haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@161143 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: [TreatNullAs], [TreatUndefinedAs] for arguments

Also minor refactoring to simplify string mode handling.

BUG=239771
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@161144 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make run-bindings-tests quiet by default

Currently run-bindings-tests always outputs success messages.
This makes it hard to debug the failures.
This CL makes them quiet by default (only show failures),
and adds a --verbose option to get current behavior.

This should also make presubmit script errors easier to understand.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@161145 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Re-land deferred compositing updates with fixed assumptions"

This reverts commit r161126. It caused compositing/video/video-poster.html crashes in debug mode and made inspector-protocol/layers/get-layers.html fail on Mac and Win:
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20Blink&tests=compositing%2Fvideo%2Fvideo-poster.html%2Cinspector-protocol%2Flayers%2Fget-layers.html

BUG=229679, 302726, 309733
TBR=shawnsingh@chromium.org

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

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