Update expectations for fast/repaint/block-layout-inline-children-replaced.html

Leftover test expectation update following Repaint-after-layout.

BUG=320139
TBR=eae

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176775 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Removing usused smartclip APIs

Related to Blink patch https://codereview.chromium.org/259263003/
Some APIs were dependent on chromium side patch.
https://codereview.chromium.org/260623004/
Since both patches are landed, removing the redundant APIs

BUG=NONE

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176776 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename repaint to paint invalidation in RenderLayer.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176777 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[screen-orientation] add ability to lock the screen to its natural orientation.

See spec change: https://github.com/w3c/screen-orientation/pull/18

BUG=162827

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176778 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Strip anonymous blocks when change in style removes need for them (https://codereview.chromium.org/253313005/)

Reason for revert:
Caused an incorrect cast in RenderBlockFlow.

TBR=inferno@chromium.org,eae@chromium.org
BUG=387211

Original issue's description:
> Strip anonymous blocks when change in style removes need for them
> 
> When a block element becomes a float or out of flow we should strip
> any anonymous blocks wrapping its inline siblings.
> 
> BUG=331251
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175220

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176779 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify computation of scrollParent

Now that we compute the ancestorScrollingLayer during the
CompositingInputsUpdater walk, it's much easier to compute the scrollParent.
This CL also lets us remove the notion of an "inherited scroll parent."

R=vollick@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176780 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Enable Activity Log to log creation of event handlers by extension content"

This reverts commit 7f2876b460e2ce0e6936fe5b766b0efe682dda59, aka r176757.

This change was causing failure in browser test ActivityLogApiTest.TriggerEvent

e.g.,

http://build.chromium.org/p/chromium.webkit/builders/Linux%20Tests/builds/37479/steps/browser_tests/logs/stdio

TBR=pmarch@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176781 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Switch URL and URLUtils interfaces over to use ScalarValueString.

R=arv@chromium.org,jsbell@chromium.org
BUG=303152

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176782 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add more cases of box-sizing change

- Add cases of changing box-sizing and border at the same time while
  keeping the actual size;
- Add cases of changing box-sizing and padding at the same time while
  keeping the actual size;
- Add cases changing box-sizing from content-box to border-box.

BUG=375876

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176783 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix a crash CryptoResultImpl::promise().

The crash happens when calling an operation on SubtleCrypto after active dom objects have been stopped. In this case, the CryptoResultImpl::m_resolver is nullptr, and calling ->promise() on results in a crash.

BUG=387218

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176784 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Change the way WebContentDecryptionModuleResult is passed.

Remove const-ref to make it clearer that the result is to be changed
by the caller.

BUG=358271

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176785 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't fire a timeupdate event if the seek time hasn't changed.

This fixes the last bug that caused timeupdate events to fire before
they should have. As a result, fix a layout test that accidentally
removed its timeupdate event listener prior to when it should have.

BUG=223476

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176786 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Updating transforms shouldn't rebuild the compositing tree

In Polymer's calculator same app, we mistaken thought we needed to rebuild the
compositing tree even though nothing had changed about our squashing assignments.

This CL speeds up the compositing update for the calculator by 6.5%.

R=chrishtr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176787 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Notify the browser when the page lost interest about gamepads

The page visibility logic used in NavigatorGamepad via DeviceEventControllerBase
assumes that we only want to tell the dispatcher that we are uninterested in
events if we have an event listener. For gamepad that is not perfect where the
the page can ask the gamepad state anytime via navigator.getGamepads().
This CL doesn't change visible behavior thus no tests. The enhancement is that
now we properly tell the browser that we are not intereseted in gamepads while
we are hidden so it can suspend the polling thread. Visibility related tests
should be added for gamepad though, I will do that later.

This is a fixed reland of r176618

BUG=386846
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176789 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactor ResourceFetcher::determineRevalidationPolicy

This change should not have any functional change.
The only possible behavioral change is that we no longer
will re-use main-document resources which do not match
CORS. Speaking with Nate, we believe that main-document
check to be a noop and thus I removed it.

This moves the logic for validating ResourceLoaderOptions
into that class, and adds a ton of FIXMES about how
we are incorrectly re-using requests with non-matching
ResourceLoaderOptions.  In my change for:
https://codereview.chromium.org/258013009/
(which causes us to go down the preloader codepaths more regularly)
those FIXMEs cause us to re-use preload requests which
we should not be.  I'll have to fix some of them in
that change in order to pass the tests.

The majority of this change is refactoring
determineRevalidationPolicy to take a FetchRequest instead
of individual arguments and then using the non-mutable
resourceRequest() accessor and fix ResourceRequest
non-const methods to just use a 'mutable' marked cache.
ResourceRequest was confusing 'physical' const with
'logical' const, I fixed these methods to be logically const.

BUG=356292

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176790 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Scroll position does not reliably restore on back/forward in-page navigations.

There's a sequence of repeated back-forward navigations that causes us to
overwrite scroll position for a HistoryItem. It is:

* Scroll a bit to an in-page link.
* Click link, then go back, then go forward, then go back again.
* Click another in-page link, then go back, then go forward.

On this last forward navigation, we will scroll to the top of the page instead
of to the anchor.

This is because we decide whether to save scroll position based on FrameLoader's
m_loadType parameter. This state is set for different document navigations and
for same document history navigations, but NOT for same document non-history
navigations. So ensure we always set m_loadType for same  document navigations.

BUG=339822
TEST=WebViewTest.BackForwardRestoreScroll

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176791 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rip out CompositingClipRects

We don't use this slot in the cache anymore. We added CompositingClipRects
early on in the compositing work, but never fully worked out all the bugs. Now
that we've improved the rest of the system, these rects don't seems as
necessary to cache for performance.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176792 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mediastream: Simplify MediaStreamTrackSourcesRequestImpl class.

This CL removes m_scheduledEventTimer and m_protect, and use
ExecutionContext::postTask and WTF::bind.

We used m_protect to store a strong reference to |this| during the timer was
working. We need to use Persistent<> data member in Oilpan, but
we'd like to avoid it.

In this case, we don't need to use a Timer at all, and use
ExecutionContext::postTask and WTF::bind. WTF::bind automatically takes care of
lifetime of |this|.

TEST=none; No behavior changes.
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176793 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add connection type 'unknown' to netinfo

BUG=381683

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176794 bbb929c8-8fbe-4397-9dbb-9b2b20218538
context.addHitRegion should return if the DOMException occurs.

It may randomly make a crash or an unknown error.

BUG=387561

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

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