Add web workers idle notifications for scripting engine.

The patch adds message queue monitoring and periodically makes calls to
ScriptController idle notification mechanism.
It is done when the message queue is empty and there's plenty of time before
the next scheduled event.

No observable JS behavior change besides a smaller memory footprint, so no test.

TBR=yurys@chromium.org
BUG=241815

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152954 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Error reporting in keyframes and media queries.

BUG=140608

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152955 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify Node::isDescendantOf TreeScope check

Node::isDescendantOf has a round about way of checking that two nodes are
in the same TreeScope so when doing document.contains(node) where node
is in a ShadowRoot it returns false. This can be greatly simplified and
we can make a.contains(b) O(1) when a and b are in different ShadowRoots
or Documents.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152956 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix indentations and style in platform/graphics.

In several files there was indenting inside the namespace block.
All have been fixed, plus some other style issues. No functional
change at all.

R=jbroman@chromium.org,senorblanco@chromium.org
BUG=250932

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152957 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't force layout when querying a fixed or non-box margin/padding property.

The case which calculates the margin only depends on the RenderStyle
when the margin is fixed. It is non-fixed margins that depend on the
RenderBox's margin.

The case that calculates the padding only depends on the RenderStyle
when the element is not a box.

This improves the page load time of the economist by 27% (4.7s -> 3.4s)
on my z620 workstation.

BUG=247470

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152958 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add link-time guard if MemoryInstrumentationHashSet.h is missing

MemoryInstrumentationHashSet.h needs to be included for the
reportMemoryUsage function on classes with a HashSet member. This patch
adds a link-time guard so we'll notice if we're missing the include.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152959 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a column flexbox perf test with lots of text layout.

This is a sanitized version of someone's adb log viewer that
exhibits particularly slow flexbox and text layout.

BUG=249986
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152960 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the --no-http option to run-webkit-tests.

It's easy enough to emulate via --ignore if someone really wants it.

R=ojan@chromium.org
BUG=245504

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152961 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove --no-ref-tests from run-webkit-tests.

It doesn't really make sense to support this at this point; we
have too many ref tests.

R=ojan@chromium.org
BUG=245504

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152962 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove --ignore-metrics from run-webkit-tests.

This was only ever used by non-chromium ports that were bringing up
new versions of WebKit.

R=ojan@chromium.org
BUG=245504

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152963 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove --force from run-webkit-tests.

It was a synonym for --skipped=ignore.

R=ojan@chromium.org
BUG=245504

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152964 bbb929c8-8fbe-4397-9dbb-9b2b20218538
make run-webkit-tests --chromium --lint-test-files work properly

We were taking 'chromium' as the actual name of a port in lint_test_expectations.py and not matching anything.

R=ojan@chromium.org
BUG=242673

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152965 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Skip fast/loader/subresource-load-failed-crash.html

It was causing the subsequent test
( fast/loader/subresource-willSendRequest-null.html ) to time out.

TBR=japhet@chromium.org
BUG=253619

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152966 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Combine Element and StyledElement

StyledElement didn't add any data members and almost every Element subclass is
actually a StyledElement. The only ones that aren't are PseudoElement and
WebVTTElement. Having the subclass meant putting lots of casts all over which
is a bit silly since only Elements inside XHR documents, or ones created
through document.implementation.createDocument().createElement() are ever
non-StyledElement.

In the future we should decide if having the distinction even matters, why
isn't every Element just stylable?

TEST=None; no change in behavior.
R=arv@chromium.org, dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152967 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 152927 "Do not clamp image to source rectangle for HTMLCa..."

Caused spaceport benchmark to crash.

BUG=253564

> Do not clamp image to source rectangle for HTMLCanvasElement.
> 
> Added a flag to GraphicsContext to determine whether clamping should be used.
> It is on by default and flagged off in HTMLCanvasElement.
> 
> BUG=165711
> 
> Review URL: https://chromiumcodereview.appspot.com/17385016

TBR=arbesfeld@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152968 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Tweak time values on webkitpy ExecutiveTest.serial_run_test_in_parallel

This test can be flaky on lower-end machines. If this doesn't help, I
may have to give up on this test altogether.

TBR=ojan@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152969 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark http/tests/xmlhttprequest/timeout/xmlhttprequest-timeout-aborted.html slow.

TBR=
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152970 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove --tolerance from run-webkit-tests.

This was never actually implemented/supported for the Chromium ports.

This patch deletes a lot of code used to support the non-chromium
implementations of imagediff, which did diffs over a persistent sockets.

It also removes the 'image_diff_percent' field from the results.json files, and updates the dashbards to no longer look for that field. 

This patch also amends test-webkitpy to actually run the unit tests for TestResultsServer, and stops trying to run the tests for QueueStatusServer, since that's long gone.

R=ojan@chromium.org, abarth@chromium.org
BUG=245504

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152971 bbb929c8-8fbe-4397-9dbb-9b2b20218538
MediaStream API: Final patch of removing MediaStreamSourcesQuery
All old code in chromium have now been removed so cleaning away the
rest of the unused code.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152972 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up remaining DumpRenderTree references and flags.

content_shell/Content Shell everywhere now :).

R=jochen@chromium.org
BUG=252558

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

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