Remove Explicit Shapes Enablement in Tests

Shapes are enabled by default when running tests, so the calls to internal settings can be removed.

BUG=248304

Review URL: https://chromiumcodereview.appspot.com/20806004

git-svn-id: svn://svn.chromium.org/blink/trunk@156108 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: do not force layout on first Page.disable.

BUG=271761

Review URL: https://chromiumcodereview.appspot.com/23178004

git-svn-id: svn://svn.chromium.org/blink/trunk@156109 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add UI for "step into selection" feature

Review URL: https://chromiumcodereview.appspot.com/19699010

git-svn-id: svn://svn.chromium.org/blink/trunk@156110 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Ensure elementData is valid in classAttributeChanged."

This reverts commit r156043 due to a crash in SpaceSplitString::set.

BUG=272954

Review URL: https://chromiumcodereview.appspot.com/23066006

git-svn-id: svn://svn.chromium.org/blink/trunk@156111 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark inspector/styles/styles-new-API.html as flaky for Win XP

BUG=273119
TBR=tdanderson@chromium.org

Review URL: https://chromiumcodereview.appspot.com/21900004

git-svn-id: svn://svn.chromium.org/blink/trunk@156112 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Let page zoom affect resolution and -webkit-device-pixel-ratio MQs.

In order to make them consistent with the recent change for
window.devicePixelRatio (r156040).

BUG=177836

Review URL: https://chromiumcodereview.appspot.com/23192002

git-svn-id: svn://svn.chromium.org/blink/trunk@156113 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up FrameLoader stop functions

cancelAndClear() seems unnecessary.
stopForUserCancel() appears close enough to stopAllLoaders()
stop() seems unnecessary.

BUG=none

Review URL: https://chromiumcodereview.appspot.com/22439010

git-svn-id: svn://svn.chromium.org/blink/trunk@156114 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Simplify DocumentOrderedMap"

This reverts commit 52bd7a87201e0b4ee917af0708d1d0a0d871ba8e.

This CL caused a performance regression in getElementById:

BUG=272700
TBR=adamk@chromium.org

Review URL: https://chromiumcodereview.appspot.com/22968004

git-svn-id: svn://svn.chromium.org/blink/trunk@156115 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Hangle Angle variable info query API change.

BUG=249018
R=kbr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156116 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move logical(Left|Right)FloatOffsetForLine into FloatingObjects

These are the only consumers of the CalculateFloatOffsetAdapter and the placed
floats tree, so it will allow us to reduce the public interface of
FloatingObjects and make the placed floats tree private.

BUG=271774
R=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156118 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add an API to report debugName in GraphicsLayer

Provide an API in GraphicsLayer to report debugName which is useful for
debugging sometime. Now debugName is pushed from GraphicsLayer to
WebLayer, while this patch makes it possible to get debugName on demand.

BUG=269258
TEST=NONE

Review URL: https://chromiumcodereview.appspot.com/18473002

git-svn-id: svn://svn.chromium.org/blink/trunk@156119 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Shapes] Positioning floats inside shape-inside should respect the shape's boundaries

We recompute the shape's segments for the line based on the float's height, so it's going to be
positioned correctly inside a shape-inside. This change is just a workaround for the problem, the
proper and nice fix is coming later.

R=eric@chromium.org
BUG=273100

Review URL: https://chromiumcodereview.appspot.com/22996004

git-svn-id: svn://svn.chromium.org/blink/trunk@156120 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Change new float offset methods to take fixedOffset parameter

When moving these methods, I attempted to reduce the number of
arguments. However, this seems to have caused some test failures. This
patch reduces the scope of the change by keeping the same number of
arguments on the moved methods as the ones they replaced. Attempting to
reduce the number of arguments will have to wait for a future patch.

BUG=271774
R=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156121 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Grid Layout] Speed up content sized track layout

This change narrows down the relayout condition in
RenderGrid::logicalContentHeightForChild to only
percentage children: as they are the only lengths that
depends on the containing block's override. We
unfortunately can't use percentHeightDescendants as
it's not populated yet. This code can probably be
simplified further down but it's a good start.

This greatly speeds up the new performance test, moving
from 25 runs/sec to 91 runs/sec.

BUG=234211

Review URL: https://chromiumcodereview.appspot.com/22983004

git-svn-id: svn://svn.chromium.org/blink/trunk@156122 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Google Plus and Gmail are recalculating style often when in background tabs

Thanks to Dave Moore for the report.

This was caused by some animation on those pages which we
were servicing often (often 218ms, sometimes more frequently)
in order to send animation events.

This change does not attempt to detect if we have animation events
nor does it stop servicing animations entirely on background tabs
it just throttles how often we do so to 1s (which after discussion
with James Robinson seemed like a reasonable value).

This isn't a complete fix, but should save users a lot of battery
until we can come up with a better fix.

BUG=263669

Review URL: https://chromiumcodereview.appspot.com/22887009

git-svn-id: svn://svn.chromium.org/blink/trunk@156123 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Don't copy the initiator during preload"

This reverts commit r155802 due to a ~50% perf regression on parsert/html-parser.
See graphs here: https://chromeperf.appspot.com/report?masters=ChromiumWebkit&bots=chromium-rel-linux-webkit%2Cchromium-rel-mac6-webkit%2Cchromium-rel-win7-webkit&tests=blink_perf%2FParser_html-parser&checked=core

BUG=273219
TBR=abarth

Review URL: https://chromiumcodereview.appspot.com/23007016

git-svn-id: svn://svn.chromium.org/blink/trunk@156124 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Implement cloneNode for Document"

This reverts r155787

There is more state that needs to be copied/initialized.

BUG=258146
TBR=abarth

Review URL: https://chromiumcodereview.appspot.com/23103005

git-svn-id: svn://svn.chromium.org/blink/trunk@156125 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get rid of lazy block.

We never ended up pushing this forward. If we do decide to take
another look at this, we'll do so on a branch anyways.

Review URL: https://chromiumcodereview.appspot.com/23072015

git-svn-id: svn://svn.chromium.org/blink/trunk@156126 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Grid Layout] Fix GridLength::operator==

Fix a dumb mistake in the function where we would ignore
the type and the flex value for the purpose of equality.

BUG=235258

Review URL: https://chromiumcodereview.appspot.com/22825007

git-svn-id: svn://svn.chromium.org/blink/trunk@156127 bbb929c8-8fbe-4397-9dbb-9b2b20218538
frameContentAsPlainText should call updateLayout not check needsLayout

frameContentAsPlainText was checking needsLayout() and then calling layout()
manually but this doesn't work if the frame didn't need a layout but did
need a style recalc which could have triggered a layout.

Instead of manually checking for needsLayout() (which is almost always wrong)
we now just call document->updateLayout() which will make sure things are in
the correct state.

Review URL: https://chromiumcodereview.appspot.com/23099005

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