Mark fast/preloader/document-write flaky on all platforms.

TBR=abarth
BUG=240970

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150391 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unifying error processing in CSS functions.

calc and min/max function use YYERROR when error occurs. But FUNCTION dont.
I think pushing an error has the fololowing advantage:
if parer found syntax error inside a function it doesn't make sense
to waste processor cycles on parsing following CSS code. It better to
fall into error_recovery mode.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150393 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: trim fraction values in the metrics ui.

R=yurys@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150394 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove MSVC7_OR_LOWER and MSVC9_OR_LOWER.

We only support building with MSVC2010.

(See "[chromium-dev] ANN: VS2008 deprecation happening now" from Dec 2012.)

BUG=none
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150395 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: opt-in into showing viewport size on resize.

BUG=237999

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150396 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: follow up to r150386: clean up hovered element on hide and update.

TBR=yurys

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150397 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement scoped style tree and scoped style resolver.

A scoped style resolver collects matched scoped rules, including :root.
To solve styles for a given element, we goes up the scoped style tree
from a node whose scoping node is just the given element or the last node
enclosing the given element.

To avoid performance regression, a scoped style resolver for :root and
a flag whether there is only a scoped style resolver for :root or not
is cached in ScopedStyleTree.

BUG=229345

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150398 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Avoid adding placeholder when deleting last text in root

Editing code uses placeholders for all manner of different functions including
holding open content editable blocks. When there's no content in the blocks except
text, these placeholders aren't necessary and is confusing Android's IME path.

Android's IME path should probably just be fixed, but in the meantime, this
creates fewer placeholders, which is an improvement.

NB, I tried numerous other strategies to try and more aggressively remove br
placeholders in other cases where they aren't necessary, but it ended up being a
very deep rabbit hole of editing nightmares that ultimately just wasn't worth it.

BUG=222806,236726

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150400 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Document::createTouch doesn't throw an exception.

Rather than ignoring the ExceptionCode parameter, we should adjust the IDL file
and the implementation to not claim to throw exceptions.

BUG=240693

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150401 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename scheduleSetNeedsStyleRecalc to scheduleSyntheticStyleChange

Node::scheduleSetNeedsStyleRecalc doesn't need to be virtual, it's only called on
Elements and we also don't need the complexity of being able to pass an arbitrary
style change type because it's only used for SyntheticStyleChange. This lets us
simplify the post attach callback code which was made generic to pass unsigned
values into the callbacks, but then only used by this method.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150402 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix grid-{start|before} negative position handling

This case was left out of the original negative line handling due to
the issue of growing the grid. The negative position resolution was
changed in the spec which makes the previous issue moot as we can
always evaluate our grid size properly.

This change just fixes resolveGridPositionFromStyle to handle the
negative grid position properly. While at it, factored the position
adjustment logic into adjustGridPostionForSide.

BUG=240319
TEST=fast/css-grid-layout/grid-item-negative-position-resolution.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150403 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix trim function (first sort, so trims extremes)

Missed this earlier, noticed when looking at perf/object-keys.html
Currently the linear and polynomial tests trim the test statistic
by just discarding the start and end, rather than the lowest and
highest values. (>.<) Oops.
This fixes it by first sorting, then trimming, which is the proper behavior.

BUG=232244

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150404 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Do not update a generated file if the contents is the same

After this CL, changes in CodeGeneratorV8.pm that don't change generated code
won't cause rebuild of V8XXX.{h,cpp}.

R=abarth,thakis

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150279

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150405 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't delete leveldb directory if disk was full.

Also, equally as important, don't count a full disk as a corruption.

BUG=239882

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150406 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Prevented overload logic for nameless IDL methods

Changed CodeGeneratorV8 to only apply overloading logic for functions
with names.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150407 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove ENABLE_ENCRYPTED_MEDIA #define as it's always enabled

Removing this #define simplifies some MediaPlayer code. The code
is still behind a runtime flag.

This leaves ENABLE_ENCRYPTED_MEDIA_V2, which is turned off, untouched.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150408 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge KURLPrivate and KURL

Now that we no longer support the KURL backend for KURL, there's no reason to
have the KURLPrivate ghetto for the GURL backend. This CL merges this code into
KURL.cpp and makes some mechanical cleanups.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150409 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Recognize html whitespaces as separators for attribute selectors.

Used to only recognize 0x20 as a separator for attribute selector matching
values in space separated lists. Now recognizes 0x09, 0x0a, 0x0c, 0x0d, and
0x20 as separators.

BUG=239786

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150410 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: SASSSourceMapping hijacks the reverse sourcemapping for all UISourceCodes

This happens for ALL UISourceCodes when the SASS experiment is enabled

BUG=none
TBR=vsevik

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150411 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Node: Use FINAL instead of the non-virtual implementations of prefix/localName/namespaceURI 

merging http://trac.webkit.org/changeset/149974 to Blink. This patch can be considered as a follow up to Issue 14022022 and Issue 14722005.

BUG=240263

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

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