DevTools: Do not count inspectElement time if drawer was shown

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169146 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix bug in XMLDocumentParser.cpp.

There is no need to add |m_currentOffset| to |data| since |data| already points
to the begining of the buffer + |m_currentOffset|.

This CL also moves |OffsetBuffer| to its own file and adds a set of unit tests.

BUG=351720

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169147 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Added non-prefixed navigator.getGamepads() with updated API

This CL splits the Gamepad API into prefixed and non-prefixed versions.
The prefixed version continues to operate in the same way as before, though
the types are now named WebKitGamepad and WebKitGamepadList. The non-prefixed
version uses the new GamepadButton type for its button values.

The GamepadEvent type has also been added but the events aren't yet wired up.
When added they will only apply to the the non-prefixed API.

BUG=344556

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169148 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't allow position:sticky for table columns.
    
Table columns don't create RenderLayer and it causes crash in sticky offset calculation.

BUG=351390

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169149 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove functionality only used by the memory purger, which is now gone.

BUG=350455
TEST=none
R=jamesr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169150 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: prepare text for flame chart using bisect.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169151 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Show border between split view sides inside a resizer.

Placing border on side elements themselves did not respect the minimum size
and therefore messed up layout down the tree.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169152 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: move ImageBitmap to the oilpan heap.

R=haraken@chromium.org,erik.corry@gmail.com
BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169153 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add ASSERTS to FontTraits

Add ASSERTS ensuring that the unused bits in the mask are always unset.

TBR=eseidel@chromium.org
BUG=351734

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169154 bbb929c8-8fbe-4397-9dbb-9b2b20218538
HTML Imports: Get rid of outdated "removed-flag" concept.

As it is remove from the spec, the implementation follow.

TEST=import-element-removed-flag.html,import-remove.html
BUG=343706
R=dglazov@chromium.org, dominicc@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169155 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Emit UpdateLayerTree event from InspectorTimelineAgent

This emits a timeline event when layer tree is rebuilt. The layer tree
is built by the LayerTreeAgent.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169156 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Simplify SVGSVGElement::getElementById method"

This reverts commit 54c88454a2f94147690450bc9b499361044c8ba3.

Reverting this fix because it assumed when SVG.getElementById is called the element is already part of the document and did not search svg subtree when the element is not found using above api.

Add test when svg element is not part of any document, it should still
be able to getElementById for it's child elements.

BUG=351831

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169157 bbb929c8-8fbe-4397-9dbb-9b2b20218538
remove unneeded isPrintingDevice

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169158 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the partial layout optimization

This patch removes the partial layout optimization. This idea may have
been worth the complexity when layout was our top priority, but that's
no longer the case for a variety of reasons and partial layout adds a
significant cost to the team and code.

This patch is pretty straightforward with the exception of includes.
PartialLayoutState.h included RenderObject.h and removing that
transitive dependency required some new forward decls and includes.

BUG=283623

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169159 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add touch hit rects for elements with touch-action set.

Currently, whenever an element has a touch-action property set it needs an
associated event handler to work properly with compositor touch-hit testing.
This patch removes the need for the additional event handler by automatically
reporting a rect for every element with a non-auto touch-action set.

BUG=329566

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169160 bbb929c8-8fbe-4397-9dbb-9b2b20218538
HTML Imports: Let onload events know about stylesheets in imports and imports themselves.

Before this change, HTMLImportLaoder notifies the readiness once the parser finished.
This change adds split the loader's "Ready" state into "Parsed" and "Loaded", and
let the rest of imports know it's ready only when the loader reaches "Loaded" state.

The loader stays the "Parsed" state without moving to "Loaded" state when
the fetcher has one or more pending requests. Once the fetcher pays all the requests out,
it calls back to the import loader (through Document), and the loader know it's ready.
See HTMLImportLoader::didFinishParsing() and HTMLImportLoader::didFetchAllPendingResources().

This change also allows us to let window.onload imports+style aware. Let's make it work:
Now FrameLoader holds the load event when imports aren't ready, and imports let the FrameLoader
know when it is ready.

BUG=334849
TEST=import-onload-with-stylesheets.html, window-onload-with-import-stylesheets.html
R=dominicc@chromium.org, dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169161 bbb929c8-8fbe-4397-9dbb-9b2b20218538
use gpu SkSurface instead of directly creating SkGpuDevice

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169162 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename LiveNodeList::nodeMatches() to elementMatches()

Rename LiveNodeList::nodeMatches() to elementMatches() as LiveNodeList only
deals with Element items now.

R=esprehn, adamk

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169163 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove COMPOSITOR_FILTER_OUTSETS references.

Also clean up some conditionals and remove pointless assert.

R=senorblanco@chromium.org,vollick@chromium.org
BUG=352228

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169164 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make text based repaint output not appear in images

BUG=345027

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

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