Support NumCopies print preset

Blink side changes to support NumCopies print preset option.
Copies in print preview dialog should be set to value set for
NumCopies in pdf source document.

BUG=169120

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179042 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ServiceWorker: Bypass resolving a promise when ExecutionContext is gone

This change makes CallbackPromiseAdapter bypass resolving/rejecting a promise
if ExecutionContext is gone and calls WebType::dispose() to clean up passed
WebType instance.


BUG=385906,386501
TEST=run_webkit_tests.py --debug --enable-leak-detection http/tests/serviceworker/chromium/resolve-after-window-close.html
TEST=run_webkit_tests.py --debug --enable-leak-detection push_messaging/push-messaging-resolve-after-detached.html
TEST=manual (run crash.html in the issue)

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179043 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clarify comments for methods added in r178921

Clarify comments for methods added in r178921 as per follow-up review comments.

R=pdr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179044 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Allow touch emulation on devices with native touch.

BUG=395531

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179045 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused and incorrect RenderStyle::initialTextEmphasisColor.

Initial -webkit-text-emphasis-color (correctly) uses
StyleColor::currentColor, like most of the other colors.

Also, initialTextEmphasisColor returns TextEmphasisFillFilled, which is not a Color.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179046 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[Nit] Removing traces of lazy-block implementation from BisonCSSParser-in.cpp

It was added as a part of this patch
https://codereview.chromium.org/13937017

It was reverted here
https://chromiumcodereview.appspot.com/23072015

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179047 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Remove WebSettings::setDisallowFullscreenForNonMediaElements(bool) (https://codereview.chromium.org/416013002/)

Reason for revert:
We need this for the Android WebView

Original issue's description:
> Remove WebSettings::setDisallowFullscreenForNonMediaElements(bool)
> 
> It is never called from Chromium.
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178831

TBR=jochen@chromium.org,qinmin@chromium.org,philipj@opera.com
NOTREECHECKS=true
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179048 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: NOOP if outline dialog is not available for the content type

Currently hitting Ctrl-Shift-O on any typescript/python/C++ file in
DevTools will result in opened bookmarks tab (at least on linux).
Almost all the time, if user is editing code in Sources Panel and hitting
Ctrl-Shift-O, he expects outline dialog to be shown.

As we are not capable of supporting all the fancy file formats yet, the patch
suggests swallowing Ctrl-Shift-O for those content types that we do not support.

R=vsevik, apavlov, pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179049 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make RecursionData a stack-allocated variable in StyleInvalidator, since it is only
used during a single invalidation.

These makes makes its intended object data lifetime clearer and avoids possible bugs.

BUG=379908

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179050 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove all members in ScopedStyleTree for preparing class removal

As a part of ScopedStyleTree removal (issue 392018),
remove all private members in ScopedStyleTree.

|m_cache| is no longer necessary as ScopedStyleResolver
lookup from an element no longer require ascending the
DOM tree up, thanks to <style scoped> removal.

Unfortunately |m_authorStyles| cannot be removed completely
- StyleResolver still has to clear ScopedStyleResolvers
which are associated with TreeScopes, and thus moved from
ScopedStyleTree to StyleResolver (and renamed
|m_scopedStyleResolvers| to match what it contains).

BUG=392018
TEST=no layout test failures

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179051 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable null GeolocationInspectorAgent for out-of-process iframes.

We are not yet able to use inspector agents when the top-level frame is
in another process. This patch prevents a crash in that scenario.

BUG=357747

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179052 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add GN "resources" target for blink_resources GYP target.

I need this to be able to remove blink_common_resources from Chromium.

BUG=338338
TEST=None
R=brettw@chromium.org,
TBR=abarth@chromium.org

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

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