Eliminate MediaPlayer & MediaPlayerClient abstractions(rate, setRate and other APIs)

BUG=350571

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177366 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Rename "emulateViewport" to "mobile".

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177367 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactor RenderBox::addVisualEffectOverflow()

Extracted computeVisualEffectOverflow(). It will be used in later
changes about invalidation of visual effect overflow.

BUG=380472
TEST=none (refactor only)

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177368 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't force full invalidation on padding or margin change

The renderer can already correctly handle invalidations of geometry changes 
caused by change of padding and/or margin. 

BUG=375876
TEST=fast/repaint/padding-margin.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177369 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WeakNodeMap should have an ASSERT for node in WeakNodeMap::put()

WeakNodeMap holds trace Ids to corresponding node pointers. Having a null value for the node would be logically incorrect and the ASSERT(!m_nodeToValue.contains(node)); would trigger for the subsequent calls if we allow the NULL values. The callsite should ensure that the values for node pointers are indeed non-NULL.

BUG=390510

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177370 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Replace 'ResourceRequest::TargetType' with 'ResourceRequest::RequestContext'.

Fetch defines a variety of "request contexts", which Blink more or less
already models as either 'ResourceRequest::TargetType' or 'Resource::Type'.
These two enums more or less cover the same ground, but inconsistently
(even amongst themselves).

This patch is the first step towards a higher fidelity implementation of
Fetch's semantics. It replaces the 'TargetType' enum with a 'RequestContext'
enum, and sets up a temporary mapping in WebURLRequest which will be removed
once Chromium is updated with the new semantics.

A future patch will come up with some reasonable way of aligning
'Resource::Type' with the list of contexts.

BUG=390497

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177371 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix setting texture unit in handleTextureCompleteness

Set the texture unit to GL_TEXTURE* instead of setting it to the number
0 to n. Previously this function only worked in the case it did not need
to set texture unit at all.

BUG=390514
TEST=WebGL conformance tests

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177372 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Moved modules files from bindings/core/v8/custom to bindings/modules/v8/custom.

- V8CustomSQLStatementErrorCallback, V8EntryCustom and V8EntrySyncCustom should be placed under modules/v8/custom.
- Removed unused include (for modules).

BUG=358074

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177373 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Inapplicable top, bottom style shouldn't affect height calculation

Require an absolute or fixed positioned containing block before
examining the containing block top and bottom style values for
contributing a non-auto height. Otherwise we'll base the decision on
inapplicable values.

|top| and |left| only applies to positioned elements:

http://www.w3.org/TR/CSS2/visuren.html#propdef-top
http://www.w3.org/TR/CSS2/visuren.html#propdef-bottom

and only contribute to the element's height (when height is auto) for
absolute and fixed positioned elements:

http://www.w3.org/TR/CSS2/visudet.html#normal-block
http://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-height

BUG=390101

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177374 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: insist that CompositeCreators be stack allocated.

And add missing Oilpan (transition) type to the heap allocated
MessagePortArray member of Deserializer.

R=haraken@chromium.org
BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177375 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove StyleEngine.h include from RenderObject.h

Achieves it by adding a header file, RenderObjectInlines.h, for use by
the compilation units that calls the inline methods.

Targets that depend on StyleEngine.h now cut in roughly half, from 678
to 278. Top ten list of other header files that are affected:

Source/core/dom/StyleEngine.h: 678 -> 278
Source/core/dom/DocumentStyleSheetCollection.h: 679 -> 279
Source/core/dom/StyleSheetCollection.h: 680 -> 280
Source/core/dom/TreeScopeStyleSheetCollection.h: 679 -> 279
Source/core/dom/StyleSheetScopingNodeList.h: 680 -> 280
Source/core/css/TreeBoundaryCrossingRules.h: 689 -> 297
Source/core/css/resolver/ScopedStyleTree.h: 690 -> 298
Source/core/css/SiblingTraversalStrategies.h: 691 -> 299
Source/core/css/SelectorFilter.h: 691 -> 299
Source/core/css/resolver/MatchRequest.h: 690 -> 298

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177376 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[ServiceWorker] A header list contains lowercased header names

https://github.com/whatwg/fetch/issues/8
https://github.com/whatwg/fetch/commit/8114af96a4e02cd3cfb6156795fe45673217f087

BUG=373120

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177377 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Only issue Page.viewportChanged event when device emulation is enabled.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177378 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make DOMImplementation.createHTMLDocument implementation more spec aligned

According to specification, if the title argument is not omitted:
    *)Create a title element in the HTML namespace,
        and append it to the head element created in the previous step.
    *)Create a Text node, set its data to title (which could be the empty string),
        and append it to the title element created in the previous step.

spec: http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument

So this CL modified implementation from setTitle to create and append.

TEST=LayoutTests/fast/dom/implementation-createHTMLDocument.html

Additionally, with this CL, DOMImplementation.createHTMLDocument test
at http://w3c-test.org/dom/nodes/DOMImplementation-createHTMLDocument.html
will be passed.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177379 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: DataGrid: remove duplicated implementaion of nodes sorting.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177380 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Fix debug toolbar drawer style.

BUG=389076
TBR=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177381 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Refresh viewport contents when resizing FilteredItemSelectionDialog.

BUG=383771

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177382 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: fix 'Range'/Pie Chart overlap when timeline details pan is shrunk

BUG=386523

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177383 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Properly managing overlfow-aligment for inherit and initial.

The CSS3 Alignment properties allow pairs as values; that's the case of
overflow-aligment and "legacy" keyword. The StyleBulder should define
custom "initial" and "inherit" handers to properly managing such values.

BUG=249451

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177384 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Block mixed <picture> and <img srcset> by default.

It's going to be more or less impossible to begin blocking mixed <img>
content by default, given the amount of usage we're likely to see in the
wild (I'm still waiting for metrics from Chrome stable, but I'm not
hopeful). I think it will be significantly less impossible to avoid the
same mistake with the new responsive hotness.

This CL treats <picture> and <img srcset> as active content, blocking
them by default when mixed.

BUG=390158

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

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