Simplify styledSubtreeSize

This function can be made a lot simpler, and iterative instead of
recursive. We don't really need a ShadowRoot aware traversal method,
you can easily just travserse the tree normally and recurse on
ShadowRoots when needed.

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

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

git-svn-id: svn://svn.chromium.org/blink/trunk@174073 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename layout test filenames with "cat" and "hat" combinators

Rename test filenames with obsolete "cat" (^) and "hat" (^^) combinators
to ones that conforming to the current spec (e.g. /deep/ (deep combinator),
::shadow (shadow pseudo element), :host (host pseudo class).

Changes are filenames only and no functional change in
actual tests.

BUG=none
TEST=Run affected layout tests.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@174074 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert a series of wrong fixes for crbug.com/361011

Revert "Elaborate error handling on ScriptLoader::finishLoading()"
>  Elaborate error handling on ScriptLoader::finishLoading()
>
>    This is a follow up for r170702, which considered only about
>    dynamically added <script>. This change covers parser-added <script>.
>
>    TEST=adopt-node-crash.html
>    BUG=365229,364770
>    R=esprehn@chromium.org, eseidel@chromium.org
>
>    Review URL: https://codereview.chromium.org/248013002
>
>    git-svn-id: svn://svn.chromium.org/blink/trunk@172804 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Revert "Handle didMoveToNewDocument() for <script>"
>    Handle didMoveToNewDocument() for <script>
>
>    This change handles inter-document move for <script>
>    so that it cancel script execution when it moves between documents.
>    As the execution relies on ScriptRunner that is owned by Document,
>    this cancellation is reasoable if not ideal.
>
>    TEST=append-child-adopt-node-crash.html
>    BUG=361011
>    R=dglazkov@chromium.org, eseidel@chromium.org
>
>    Review URL: https://codereview.chromium.org/229753004
>
>    git-svn-id: svn://svn.chromium.org/blink/trunk@171160 bbb929c8-8fbe-4397-9dbb-9b2b20218538

BUG=365529,364770,361011,368551
TBR=eseidel@chromium.org, japhet@chromium.org, dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@174075 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move inspector/device-emulation to NeverFixTests for SnowLeopard.

TBR=pfeldman@chromium.org
BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@174076 bbb929c8-8fbe-4397-9dbb-9b2b20218538
On Android, these calls aren't being inlined. Profiling shows that
these methods are relatively "hot" - some over 1% of CPU time; 
in aggregate more than 10% - and spend a lot of time just doing 
function entry and exit. With these functions inlined we no longer
see any "small" functions taking surprisingly large fractions of
the profile during SkPicture/SkRecord recording.

On Nexus 7, forcing them to always inline seems to yield 6-8% 
improvement in recording time on several of the slowest key Silk 
testcases. Nexus 10 has measured improvements has high as 12-15%. 
The APK increases about 7500B (from a base size of 32.8MB).

Ideally the compiler would do this automatically, but because
our Android builds compile with -Os, inlining is minimal. At this
point we aren't changing compile flags per-file, and don't want to
build all of Blink with -O2. Link-time or feedback-driven optimization
may make these obsolete.

BUG=364551,325746
R=eseidel@chromium.org,eae@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@174077 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: remove exuberant overflow:hidden

This makes NetworkPanel much faster.

BUG=372246

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

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