Gardening: provide custom expectations for virtual/implsidepainting/inspector/timeline/timeline-paint.html

BUG=
TBR= ojan, tasak

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173849 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Speculative fix for resource-timing-details-for-revalidation.html

It seems that the resource timing entries for web fonts aren't always
available at the time the fonts.ready() promise is resolved. Check the
resorce timing entris for web fonts after a short delay.

BUG=372214

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173850 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Initializes the context of WorkerScriptController before calling willEvaluateWorkerScript.

This change will fix the crash bug on Debug build while reattaching DevTools to SharedWorker and dedicated worker.
See: https://code.google.com/p/chromium/issues/detail?id=371399#c8

BUG=371399

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173851 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [Sources] fix conditional breakpoint text label

There was an off-by-one error which this patch fixes.

BUG=370928

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173852 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Add the new "components" module to the ModuleManager configuration

This is a regression from r173520

TBR=vsevik
BUG=371393
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173854 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark ServiceWorker postmessage-msgport-to-client.html as flaky

BUG=372260
TBR=kinuko@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173855 bbb929c8-8fbe-4397-9dbb-9b2b20218538
LeakExpectations: Add more serviceworker layout tests

NOTRY=true
BUG=364390

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173856 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix order of CSS and JS resources in devtools.html

In order to ensure parallel loading of external CSS stylesheets,
they should be listed before the first JS resource.

R=eustas, pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173857 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add inspector ids of layer owner nodes to GraphicsLayerDebugInfo

... so that we can match layers to DOM nodes in DevTools layer tree
view.

BUG=361045

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173858 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unloaded font segment should not affect primaryFontData

This patch fixes a bug where SVG fonts are not rendered correctly when
SVG font is part of a segmented font face that has unloaded font faces.
SegmentedFontData::isLoadingFallback() returns true for such segmented
font face, so FontFallbackList::primaryFontData() returned next
available font in the fallback list.

After this patch, FontFallbackList::primaryFontData() returns the first
font data with space character loaded.

BUG=369633
TEST=svg/custom/svg-fonts-unloaded-segment.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173859 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Account for pointer-events:none when inspecting element from context menu.

I think most users expect that inspected element would be the one she interacts with.

BUG=371120

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173860 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Overload resolution for single length, non-nullable wrapper types

First CG change!
(After this it should be straightforward.)

This starts with just resolution for a single length of argument list,
with distinct non-nullable wrapper types.
For these we can just check if it implements the interface, so it's
straightforward.

This affects 3 interfaces:
CanvasRenderingContext2D
SourceBuffer
SubtleCrypto

The new generated code is rather simpler than the existing one; compare:

if (((info.Length() == 2) && (V8HTMLCanvasElement::hasInstance(info[0], info.GetIsolate())))) {
　　createPattern1Method(info);
　　return;
}     
if (((info.Length() == 2) && (V8HTMLImageElement::hasInstance(info[0], info.GetIsolate())))) {
　　createPattern2Method(info);
　　return;
}     
if (((info.Length() == 2) && (V8HTMLVideoElement::hasInstance(info[0], info.GetIsolate())))) {
　　createPattern3Method(info);
　　return;

switch (info.Length()) {
case 2:
　　if (V8HTMLCanvasElement::hasInstance(info[0], info.GetIsolate())) {
　　　　createPattern1Method(info);
　　　　return;
　　}     
　　if (V8HTMLImageElement::hasInstance(info[0], info.GetIsolate())) {
　　　　createPattern2Method(info);
　　　　return;
　　}     
　　if (V8HTMLVideoElement::hasInstance(info[0], info.GetIsolate())) {
　　　　createPattern3Method(info);
　　　　return;
　　}     
　　break;
}

R=haraken
BUG=293561

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173861 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Cleanup: Remove Exposed=ServiceWorker work-around from MessageChannel.idl

As of r173732 we no longer need it, as all interfaces exposed to
Worker should be now also available in ServiceWorker.

BUG=366063
TEST=http/tests/serviceworker/postmessage-msgport-to-client.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173862 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Move Placard.js and Spectrum.js into modules that use them

R=eustas, pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173863 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove obsolete didClearWindowObject API and bogus FIXME

The FIXME was wondering about why the inspector didn't take a certain
codepath - the reason is that the inspector code only cares about the
document property being reset, not about the v8 global object being
created.

BUG=none
R=dcarney@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173864 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Remove obsolete didClearWindowObject API and bogus FIXME (https://codereview.chromium.org/279153002/)

Reason for revert:
"compile" on "GPU Mac Builder (dbg)" fails.



Original issue's description:
> Remove obsolete didClearWindowObject API and bogus FIXME
> 
> The FIXME was wondering about why the inspector didn't take a certain
> codepath - the reason is that the inspector code only cares about the
> document property being reset, not about the v8 global object being
> created.
> 
> BUG=none
> R=dcarney@chromium.org
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173864

TBR=dcarney@chromium.org,jochen@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173865 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Gardening: virtual/implsidepainting/inspector/timeline/timeline-auto-record.html,timeline-decode-resize.html times out on Mac

BUG=372213
TBR=ojan, reed@google.com
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173866 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Gardening: svg/custom/foreign-object-skew.svg fails on Mac.

TBR=ojan, reed@google.com
BUG=268692
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173867 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Prepare moving media control elements to oilpan

BUG=357163

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173868 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] More precise control over emulation params.

This change allows to emulate only viewport and device scale factor,
for example, leaving everything else untouched.

BUG=327641

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

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