Use compileAndRunInternalScript() in V8ArrayBufferViewCustom.cpp

This is one of efforts to aggregate caller sites of Script::Run() into one place.

BUG=241743
R=abarth,eseidel

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150682 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify MemoryCache behavior.

* Remove the capacity to disable MemoryCache. We only use it to evict all
  resources, so move the eviction logic from setDisabled() to evictResources().
* shouldMakeResourcePurgeableOnEviction() is always false, so remove it and
  code that depends on it being true.
* Remove CachedResource::m_owningCachedResourceLoader. It is used when the
  cache is disabled (which we don't care about) and for ImageDocuments, but
  I can't figure out why it is needed for that case.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150683 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make remaining page objects ScriptWrappable

BUG=236671
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150684 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fetch parentNode after toNormalizedRange() call has happened in containsNode()

toNormalizedRange() call can trigger layout, there removing the last
reference to parentNode. We don't need to RefPtr parentNode since later
callers don't modify it.

BUG=242114

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150685 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WebInbandTextTrack should be deallocated by caller

An object that inherits from WebInbandTextTrack is created
on the Chromium side of the WebKit interface, and handed to
the InbandTextTrackPrivateImpl (via its constructor). The
InbandTextTrackPrivateImpl object currently assumes
ownership of the pointer, and so the
InbandTextTrackPrivateImpl object deallocates the
WebInbandTextTrack object (via its destructor).

However, this means that abstractions on the Chromium side
of the WebKit interface can potentially outlive the
abstractions on the WebKit side on which they depend.

To ameliorate such lifetime issues, the responsibility for
deallocating the WebInbandTextTrack object was moved to the
Chromium side, hence the InbandTextTrackPrivateImpl object
is no longer required to deallocate that object.

Note that the this change does not have a dedicated unit
test, because no code exists that actually calls this code.
These changes to WebKit are a prerequisite for the change
that adds support for inband text track rendering to Chrome,
as enunciated here:

https://chromiumcodereview.appspot.com/13419002/

The requisite infrastructure for testing all of the changes
in toto will be included when that cited change is
committed.

BUG=230708

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150686 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove background-clip-text-composited.html test suppression.

The dashboard is green, we can safely enable this now.

TBR=junov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150687 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move RTCICECandidateDescriptor to WebRTCICECandidatePrivate in Platform/

WebKit used descriptor classes for RTC functions so that different ports could plug in different media backends (Gstreamer, &c). Blink does not need this flexibility, so this patch will begin the process of dismantling the descriptors and calling things directly in Platform/.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150688 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Store form control list with RefPtr.

FormController needs to keep a list of HTMLFormControlElementWithState in the
Document. We used raw pointers, and switch to RefPtrs by this CL to avoid
crashes.

Also, we don't need to keep controls not in the Document tree and controls in
shadow trees. So we change timing to register/unregister form controls.

BUG=236556

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150689 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Call dispatchDidReceiveServerRedirectForProvisionalLoad before checking navigation policy for a redirect.

Repro steps:
1. Load an application that uses the Chromium WebKit API.
2. Redirect a request via net::URLRequestJob::IsRedirectResponse by populating
|location| and returning true.

The |isRedirect| value passed to WebFrameClient::decidePolicyForNavigation in
FrameLoaderClientImpl::dispatchDecidePolicyForNavigationAction should be true. However, WebKit revision 137607 (http://trac.webkit.org/changeset/137607) changed the implementation of MainResourceLoader::load() such that WebDataSourceImpl::appendRedirect() is no longer called for the redirected URL following this code path. As a result the |isRedirect| value is now false.

BUG=229154

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150690 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make garden-o-matic handle json or jsonp results files.

A patch got landed and then reverted which made the results files
json. So, have garden-o-matic handle both json and jsonp.

NOTRY=true
BUG=242185

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150691 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make inspector objects ScriptWrappable

BUG=236671
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150692 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Try to reduce the flakiness of 4 :hover tests.
    
Based on what is currently done throughout the LayoutTests/, there
are 2 ways to reduce the flakiness of a :hover test:
* Force layout before and after moving the mouse (especially since
some tests claim that we don't track the mouse before first layout).
* Force a click after moving the mouse.

This change implements the first option as the second one didn't work
for these tests (I remember that it helped in webkit.org/b/81460
though).

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150693 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move BitmapImage methods from ImageSkia.cpp to BitmapImage.cpp

This patch moves the ImageSkia.cpp BitmapImage methods where they belong.

Primarily this patch is a straightforward code move. Outside just moving code,
a few additional changes have been made:
1) paintSkBitmap has been exposed on Image.
   It is unfortunate that this is required; alternative solutions (moving
   all of ImageSkia into Image, or splitting ImageSkia into Image and
   NativeImageSkia) were explored but are very involved and should be done in
   a followup. Crbug.com/242060 has been filed to track this progress.
2) BitmapImage::invalidatePlatformData has been removed because it was a no-op.
3) Image::adjustForNegativeSize has been added because it is needed by both
   ImageSkia and BitmapImage. This function was renamed from "normalizeRect" to
   "adjustForNegativeSize" to make its functionality more clear.

BUG=241546

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150694 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove ENABLE(SVG) from core/rendering

This patch removes the ENABLE(SVG) flag after r150362 disabled
support for SVG-less builds.

This is primarily a straightforward patch but it was not automated
like the other remove ENABLE(SVG) patches.

BUG=240006

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150695 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't show any tests by default in the flakiness dashboard.

Ideally, we'd load a page that just had you pick a builder/testtype/test/whatever.
Reworking everything to make that possible is non-trivial. Instead, in the short-term
don't show any tests by default. Normally, you go to the dashboard intending
to load a search or go to a different testtype/builder, so showing things by default
just slows you down.

Also, fix the test generation to filter tests one level up instead of returning
an empty string for each hidden test. That way, we correctly identify the case where
all the tests are hidden and give you a slightly nicer message.

NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150696 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improve security mitigation added in webkit r94001. We missed the case where attachLine was called when we already had an inline box wrapper.

BUG=187243

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150697 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: set record type when creating a record

We used to set record type late when adding a record, which makes
it difficult to guarantee record validity and requires carrying type
as a separate parameter for too long. Let's add it in createGenericRecord
instead.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150698 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make WebGL finish a flush

finish in WebGL has no meaning. Users use it thinking they know
how it works and getting incorrect results. Changing it to a
flush will have no semantic changes but will discourage incorrect
usage.

BUG=242210

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

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