[TextAutosizer] Avoid unneccessary computations when loading new pages.

When loading a new web page in Chrome on Android
TextAutosizer.processSubtree() gets called while
the document is initially empty. This results in
multiple unnecessary calls to isAutosizingContainer(),
clusterMultiplier(), containerShouldBeAutosized() and
others. See trace in crbug.com/345304 for more details.
The issue happens on all tested pages.

To avoid autosizing empty pages this patch adds an early
return by checking the frame loader state.

BUG=345304

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167793 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Consistently cache ElementData::length() before loops

Consistently cache ElementData::length() before loops as this method is not
a simple getter (it contains a conditional branch) and we don't want to call
it for each iteration of the loop.

Previously, it was only cached before some of the loops. This CL makes this
consistent. Also, use length for the variable instead of len, as we prefer to
avoid abbreviations, as per coding style.

Same thing for Element::attributeCount() as it calls ElementData::length().

R=adamk, eseidel

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167794 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Encapsulate show hide sidebar button management into SplitView

R=pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167796 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: remove unused private methods from front-end

This patch removes unused methods from front-end. The methods were
listed with the following script: https://gist.github.com/aslushnikov/9208534

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167797 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Change various helper classes to transition types to get CSSValue entirely onto the gc heap.

Specifically MediaQuery, MediaQueryExp, MediaQuerySet, and MediaList. Also added a few persistents in CSSImportRule, CSSMediaRule, CSSStyleSheet and MediaQueryList. Finally change FontFace to RefCountedGarbageCollected when oilpan is enabled. FontFace require a bit more separate work to move entirely so leaving that for a separate change.

R=ager@chromium.org, erik.corry@gmail.com, haraken@chromium.org, tkent@chromium.org, vegorov@chromium.org, zerny@chromium.org
BUG=341815

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167798 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix live edit after recent ResourceScriptMapping changes.

R=pfeldman@chromium.org, pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167799 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Added a test for Live Edit behavior on reload with workspace.

TBR=pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167800 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use the column names for Editing, instead of just "Edit"

From WebKit r152979 by <dpino@igalia.com>

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167801 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Do not reset wait icon by default

Calling the updateStatus without wait state argument should
not reset the wait icon.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167802 bbb929c8-8fbe-4397-9dbb-9b2b20218538
call simpler version of deepCopyTo, to allow for deprecating Bitmap::Config

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167803 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: use milliseconds in timeline front-end consistently.

R=caseq@chromium.org

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

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