Don't return null from ReplaceSelectionCommand::insertAsListItems() 

When trying to replace list by list, we insert list item instead of list itself, 
by calling insertAsListItems(). However, insertAsListItems() returns null when
it takes empty list.

This patch changes to ReplaceSelectionCommand::insertAsListItems() not to return null.

BUG=238170
TEST=LayoutTests/editing/execCommand/crash-replacing-list-by-list.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170821 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Change v8DateOrNull() to v8DateOrNaN() to allow NaN dates to be returned.

This change the double to Date conversion to map all non-finite values
to NaN instead of null. This can cause a script visible change in
behavior if non-finite values happened to get exposed by code that
provides data for the Filesystem API Mediadata.modificationTime or
WebRTC's RTCStatsReport.timestamp. In both of these cases valid dates
are always supposed to be returned according to the spec so null should
not have been getting returned unless there was a bug. Neither of these
attributes are marked as nullable so they shouldn't have been returning
null in this case anyways. The only other instance of Date being returned
is HTMLInputElement.valueAsDate and it is marked nullable so this
conversion won't even be used if a null needs to be returned.

BUG=312699
TEST=All LayoutTests still pass.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170822 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove arguments to RenderLayer::logicalBoundingBox

This CL removes an dubious optimization from RenderLayer::logicalBoundingBox
which is making the system very complicated because all functions that
eventually call this code need to know about -webkit-mask-image.

This code comes from https://trac.webkit.org/changeset/32722, which doesn't
have any performance numbers. This feature is rarely used, so this
optimization seems dubious.

R=esprehn@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170823 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add some missing semi-colons in embedded JavaScript.

Some embedded JavaScript depended on ecmascript's automatic
magic semi-colon insertion. That is bad since that means that whitespace
becomes significant in the program and prevents stripping of new-lines.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170824 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Only delay scrolling for FrameViews

Widgets that are implemented with ScrollViews may not
scroll properly since the delayed scroll is implemented
in FrameView. This should fix the issue.

BUG=357480

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

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

Nothing reads this value, we don't need to keep updating it and calling
currentTime(). This also lets us remove the userEventWasHandled() client
callback since no one needs it now.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170826 bbb929c8-8fbe-4397-9dbb-9b2b20218538
rAc: make autocomplete/autocompleteerror events bubble.

R=esprehn@chromium.org
BUG=351906

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170827 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Move EventPath to oilpan's heap

EventPath and Event should die together. Thus this CL changes Event::m_eventPath and EventPath::m_event to Members.

After this CL, all Event* raw pointers in object fields will be gone.

BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170828 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move many calls of lazyInitialize() from AudioContext to AudioNode.

lazyInitialize() has been called on many places on AudioContext.
All can be replaced to construct of AudioNode once.
Remove redundant codes.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170829 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove software path from filters: purge unused applySkia.

BUG=357672

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170830 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove V8PerIsolateData::current()

V8PerIsolateData::current() is not good because it calls v8::Isolate::GetCurrent(). This CL passes Isolate* around and remove V8PerIsolateData::current().

BUG=357144

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170831 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Revert of Remove remaining displayInvalidatedRegion callers (https://codereview.chromium.org/225013004/)

Reason for revert:
Revert was not necessary. DEPS bots were failing due to poorly coordinated shell / tests changes upstream.

Original issue's description:
> Revert of Remove remaining displayInvalidatedRegion callers (https://codereview.chromium.org/223903005/)
> 
> Reason for revert:
> inspector/timeline/timeline-paint.html fails after conversion: http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20%28deps%29/builds/27946
> 
> Original issue's description:
> > Remove remaining displayInvalidatedRegion callers
> > 
> > These two tests are just using it to force display and don't have pixel
> > results, so they can just be converted.
> > 
> > R=ojan@chromium.org
> > BUG=345027
> > 
> > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170794
> 
> TBR=ojan@chromium.org,enne@chromium.org
> NOTREECHECKS=true
> NOTRY=true
> BUG=345027
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170819

TBR=ojan@chromium.org,enne@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=345027

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

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