Simplify compareDocumentPosition

We can just use a convenient default parameter and remove compareDocumentPositionInternal. That latter I dislike since although it mentions Internal it is public.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178709 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Moved RenderGeometryMapStep into its own file.

R=abarth@chromium.org, esprehn@chromium.org, vollick@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178710 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark a couple groups of tests as needing a rebaseline.

BUG=390587,395103
TEST=none
TBR=haraken,vollick,wangxianzhu

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178711 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Stop passing dummy ParentDetails to NodeRenderingTraversal::parent()

Stop passing dummy ParentDetails to NodeRenderingTraversal::parent(). It
handles a null pointer just fine so just make the argument optional and
default it to 0.

R=esprehn@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178712 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a DEPS file to Blink to control the revisions of the w3c test repos.

This is patch 1 of 6-ish that will change how we import and run the
w3c test suites, moving the DEPS entries from Chromium's src/DEPS to
a new DEPS file in Blink. Once this whole process is complete,
importing new versions of the w3c repos will require only a single change
to Blink (as opposed to the up-to-5-sided patches required currently).

Full details are in crbug.com/395862.

R=eseidel@chromium.org
BUG=395862
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178713 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Find the current fullscreen video element rather than the one on top of stack

When requestFullscren() is called, we don't know when willEnterFullscreen() will get called.

For android webview, requestFullscreen() might even result in no calls
to willenterfullscreen() if webapp doesn't support fullscreen video.
So before willEnterfullscreen is called, we should not use the provisional
video element on top of the stack to modify the layer tree.

Instead, we should wait for the provisional element to become current.
Therefore, we should call currentFullScreenElementFrom() on the fullscreen document.

BUG=389496

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178714 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r178684

http://src.chromium.org/viewvc/blink?view=revision&revision=178684

BUG=395040
TBR=leviw@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178715 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r178669

http://src.chromium.org/viewvc/blink?view=revision&revision=178669

BUG=394081
TBR=dominik.rottsches@intel.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178716 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r178605

http://src.chromium.org/viewvc/blink?view=revision&revision=178605

TBR=jchaffraix@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178717 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Attempt to rebaseline media/audio-repaint.html and run it everywhere again.

BUG=257325
TEST=none
TBR=haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178718 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enforce clearing renderers' paint invalidation state

The ASSERT checks that no flags cleared by clearPaintInvalidationState()
is still set up after calling repaint-after-compositing-update.

The ASSERT is skipped for SVG subtree as we have an optimization that
skips them. We could reproduce the exact condition but it seems not
very useful to do so.

The change caught several bugs (yay!):
- one in shouldCheckForPaintInvalidationAfterLayout()
that made the ASSERT trip on fast/repaint/table-row.html.
- one where setShouldDoFullPaintInvalidationAfterLayout didn't
mark the containing block chain for invalidation.

BUG=385169
R=dsinclair@chromium.org, leviw@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178719 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r178694

http://src.chromium.org/viewvc/blink?view=revision&revision=178694

BUG=394619
TBR=wangxianzhu@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178720 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add missing id/name check over img-based RadioNodeLists.

For named lookups on forms, the spec tells us (step 2)

 http://www.whatwg.org/specs/web-apps/current-work/#dom-form-nameditem

that the RadioNodeList returned for the <img> only case should be
constrained to only those matching the given name/id.

R=
BUG=387312

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178721 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Cleanup DrawingBuffer::paintCompositingResultsToCanvas

Remove the unnecessary copyTexture and use the value tracked by 
WebGLRenderingContext when restoring the framebuffer binding instead of
querying GL_FRAMEBUFFER_BINDING.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178723 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make vector conversion more general in V8Bindings

toV8Value() could not convert vectors of basic types; by removing toV8ArrayNoInline() and always calling v8Array(), we instead pass back through
V8ValueTraits<> for each element, and as a result can convert arrays of basic types through the explicit specializations of that class.

R=kentaro@chromium.org,yhirano@chromium.org
BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178724 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove webkit- prefix from classes used by View Source

Removing the webkit- prefix from viewsource as we do not want to keep it in blink.

BUG=378867

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178725 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rebaseline audio-repaint.html

TBR=pkasting@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178726 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add NPAPI header include path to GN blink config

WebBindings.h includes "bindings/npruntime.h" which requires that the NPAPI directory be on the search path. This patch makes it so that targets depending on blink headers will get this seach path.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178727 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Check that Service Workers are registered from secure origins.

This is in keeping with the Chromium proposal to provide powerful new
web platform features to secure origins:

http://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features

This is also in keeping with the Service Worker spec, which recommends
Service Workers use HTTPS, with some exceptions:

https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#security-considerations

BUG=394213

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178728 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Modify webkit-patch rebaseline-expectations to work on win.

R=pkasting@chromium.org
BUG=396362

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

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