[HTML Imports] Make HTMLLinkElement.import a Document.

This follows spec change on https://www.w3.org/Bugs/Public/show_bug.cgi?id=22305
which asks imported fragment should be imported "document" to allow it to have
URL and other APIs.

BUG=240592
TEST=imported-document.html
R=dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152614 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add dataLoss property to IDB's upgradeneeded event.

When the backend indicates that it performed cleanup on the backing store
set the dataLoss property on the upgradeneeded event to "total".

Chrome side https://codereview.chromium.org/17033004/

BUG=172626

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152615 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Extract ContextLifecycleNotifier from ScriptExecutionContext.

This change streamlines ContextDestructionObserver management.
First, this extracts ContextLifecycleNotifier class from
ScriptExecutionContext. Also, this makes DocumentLifecycleNotifier
a subclass of CLN. DLN overrides addObserver and removeObserver
so that it hooks participation of observers.

TEST=none
BUG=248435

R=abarth@chromium.org

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

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

We don't need to make a sub class of HTMLInputElement just for
shadowPseudoId.

BUG=251094
TEST=none; no behavior change.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152617 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ShadowRoot::recalcStyle attaches before setting up the StyleResolver

The recently added call to attach() in ShadowRoot::recalcStyle is before the setup
for the scoped style resolver. This would seem to be bad since it breaks the
cache checks in ScopedStyleTree and StyleResolver likely resulting in bad style
caching performance.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152618 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move HTMLPluginElement renderer checks from supportsFocus to rendererIsFocusable

Checks on the render tree belong in rendererIsFocusable, not supportsFocus.
It should be safe to call supportsFocus even when layout is out of date.

This change affects the behavior of 'tabIndex' so layout test
plugins/tabindex.html is added, based on plugins/focus.html. Before this
change, a plugin's tabIndex was affected by style such as
'display: none', which is undesirable because it makes tabIndex dependent on
when layout occurs. Now plugins always have a default tabIndex of '0', which is
consistent with the spec (and IE) because they can be focusable.

It still does not affect the tab order, since plugins are not keyboard
focusable by default.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152619 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused members from WebPreferences

Also, remove the applyTo() method as it's only used as a container now

R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152620 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix a build failure when CSS3_TEXT is enabled

BUG=249590

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152621 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Extract ContextLifecycleNotifier from ScriptExecutionContext."

This reverts commit bc1d86fc99e35032e136e85929bf55d80ad3256a.

TBR=abarth@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152622 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: File mappings should be added per file system folder.

File mappings are now created per file system folder.
If file system folder is removed all related file mappings are removed together with it.
This helps to avoid a situation where mappings left over after deleting a file system are preventing
workspace from adding network resources.

R=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152623 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make compile_frontend.py happy about monitorFunction/unmonitorFunction.

Left from https://codereview.chromium.org/16143005/

BUG=168776
R=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152624 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Pre-wrap line sometimes puts whitespace at the start of a wrapped line

See a bug 246127 for details.
I verified that this was a regression caused by r147837.
This patch reverts r147837.

R=ojan@chromium.org
BUG=246127

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152129

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152625 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Input type range slider is not updated when min or max are changed

TEST=Automated. Added range-change-min-max.html.
BUG=249909

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152626 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Vibration API: use runtime flag, change from client to platform.

Intent to implement & ship thread:
https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/vibration$20api/blink-dev/hH9bJGWKAbk/AFPov-g5VMMJ

The runtime flag is by default disabled.

BUG=222504

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152627 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Polish "Add folder" UI step 2, final.

Added EditableSettingsList component to show editable lists in settings.
Migrated file mappings for folders on it.

BUG=248154

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152628 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 152625 "Pre-wrap line sometimes puts whitespace at the st..."

> Pre-wrap line sometimes puts whitespace at the start of a wrapped line
> 
> See a bug 246127 for details.
> I verified that this was a regression caused by r147837.
> This patch reverts r147837.
> 
> R=ojan@chromium.org
> BUG=246127
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152129
> 
> Review URL: https://codereview.chromium.org/16528008

TBR=haraken@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152629 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Gardening: remove TE lines for now-passing tests.

BUG=250895
TBR=arv@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152630 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move pushMappingToContainer to RenderBoxModelObject

RenderBox and RenderInline currently implement almost identical
pushMappingToContainer methods. Merge the two and move the
implementation to their shared parent; RenderBoxModelObject.

BUG=251019
TEST=No new tests, no change in functionality
R=esprehn@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152631 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed gardening (CSS3 Text Decoration)

TBR=jchaffraix@chromium.org
BUG=239225

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152556

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152632 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Element boundaries prevent Japanese line break opportunities.

Merging WebKit r147588 and r148791, that together improve line breaks
for Japanese and other languages. The second path fixed problems with
the first.

Authored in WebKit by Glenn Adams <glenn@skynav.com>
Reviewed in WebKit by Darin Adler and Dean Jackson.

Some tests have new results to be rebaselined off the bots.

R=leviw@chromium.org,eseidel@chromium.org
BUG=234668

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

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