Implement ScriptPromiseProperty::reset

Sometimes we want to replace a promise property of an object.
Because the internal state is stored in each holder wrapper and the destruction
timing is not deterministic, we should have an explicit reset method.
The method re-initializes the ScriptPromiseProperty object so that
promise() returns a new Promise object and you can resolve or reject
the promise without affecting the previously issued Promise.

BUG=400613

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179815 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 179762 "Allow paint invalidation containers to cross fram..."

This CL broke browser_tests::MalwareDOMDetailsTest.Everything

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showAllRuns=true&testType=browser_tests&tests=MalwareDOMDetailsTest.Everything

http://build.chromium.org/p/chromium.webkit/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/682/steps/browser_tests/logs/stdio


> Allow paint invalidation containers to cross frame boundaries.
> 
> Previously, the *actual* paint invalidation container, meaning the enclosing
> compositing layer / root RenderView, could already have been across a frame boundary. The logic to do this correctly was done via special code in RenderView.
> 
> Instead, generalize the existing mechanisms to find a paint invalidation container
> and map rects to repaint container coordinate space to cross frame boundaries.
> This simplifies the code, and also causes paint invalidation rects to always be stored
> in the coordinate space of their graphics layer backing. The latter is important if we want
> to use these rects for determining which parts of a graphics layer need to be painted.
> 
> BUG=401156
> 
> Review URL: https://codereview.chromium.org/445793002

TBR=chrishtr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179816 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: fix inspector-protocol css tests

Currently, there are helper methods that constantly re-query document
node id. This turns out to be harmful as 'getDocument' command is
supposed to be invoked only once in the beginning of the session.

R=vsevik, apavlov

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179817 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix invalid inspector.html SCRIPT tag added in r179703

This invalid tag effectively disabled loading of PaintProfiler.js in debug mode.

TBR=sergeyv

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179818 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[SVG2] Harmonize the IDLs of SVGStyleElement and HTMLStyleElement.

Add "readonly attribute StyleSheet sheet" to SVGStyleElement's IDL.

Spec:
https://svgwg.org/svg2-draft/styling.html#InterfaceSVGStyleElement

BUG=399271

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179819 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rebaseline font tests for Android after r288168

- svg/overflow/overflow-on-outermost-svg-element-in-xhtml-defaults.xhtml
- svg/W3C-SVG-1.1-SE/coords-dom-02-f.svg
- svg/as-background-image/svg-width-100p-as-background.html
- css1/font_properties/font_variant.html
- virtual/antialiasedtext/fast/text/chromium-linux-fontconfig-renderstyle.html
- fast/text/chromium-linux-fontconfig-renderstyle.html

TBR=mvanouwerkerk@chromium.org,zerny@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179820 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename V8X::fooMethodImplementedInPrivateScript to V8X::PrivateScript::fooMethod

It's messy to scatter a lot of xxxImplementedInPrivateScript methods in V8 binding classes.
We should create an inner class (V8X::PrivateScript) and put the methods in the inner class.

BUG=341031

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179821 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: Add a helper method for has_custom_getter and has_custom_setter

This refactoring is needed to make this CL (https://codereview.chromium.org/447523003/)
as smaller as possible. (I'm planning to land & revert the CL a couple of times,
so I want to make the CL as smaller as possible.)

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

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