Revert "[CSS Regions] Mouse over an element does not trigger :hover state for parent when the element is flowed in a region"

This caused :hover on display: block elements to stop working.

This reverts commit e1ff7fe9066009c168694766822129ddccb9eac2.

BUG=253472
R=leviw@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154409 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Apply ScriptPreprocessor to Web page scripts only.

Move ScriptPreprocessor from ScriptDebugServer to ScriptController.
Evaluate preprocessor in isolatedWorld.
Preprocess event listeners and <script> elements before entering V8.
Preprocess eval source in V8 beforeCompile event.

Add Debugger.getScriptCompilationTypeInfo() to extract the
V8 compilation script info, to seperate eval scripts from
e.g. devtools command line evaluations.

Report exceptions in the ScriptPreprocessor compilation.
Add new test-cases for these error paths.

BUG=226293

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154410 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add test to avoid crash/assert when ASSERT(layoutState->m_renderer == this) will be activated again in RenderBlock::offsetFromLogicalTopOfFirstPage()

The assert was being hit in the WebKit code for a test created with the fuzzer.
More details are available at https://bugs.webkit.org/show_bug.cgi?id=118587

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154411 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Minor cleanups to includes and fwd decls in core/css/resolver

Remove some unneeded includes/fwd decls in core/css/resolver, and add
some needed ones that were transitively included. IWYU suggests
adding a heap more includes, but since we probably won't have any
automated IWYU checks any time soon these will probably just end up
as unused includes again.

BUG=242216

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154412 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Disable default touch icons handling.

When no link rel=apple-touch-icon is present on a page, mobile chrome currently
sends requests for apple-touch-icon.png and apple-touch-icon-precomposed.png. A
very large majority of those requests fail with a 404. To save battery and data
plan, this CL disable those requests. Clients should use link rel=icon instead.

We can't turn of TOUCH_ICON_LOADING because we still want to support link
rel=apple-touch-icon

 Resubmitted after removing the test checking for this behavior in chromium: https://codereview.chromium.org/18903004/

R=thakis@chromium.org
BUG=258963,259681

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154413 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove flaky timeout expectation from compositing/geometry/video-fixed-scrolling.html

It passes consistently now.

BUG=245545
TBR=noel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154414 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove flaky timeout expectation for compositing/culling/clear-fixed-iframe.html

It consistently passed for a while now

BUG=245203
TBR=noel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154415 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add Debugger.getStepInPositions command to protocol and backend

Tests depends on another change:
https://codereview.chromium.org/18729002/

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154416 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge viewport units/calcs conversion flags into fixed/percent flags

In CSSPrimitiveValue::computeLength, we decide which conversions to
allow based on a template parameter which is a bitwise OR of several
flags. Since viewport units are a <length> type (as per css3 values),
we should be converting them whenever we can convert to a fixed length.
This patch removes the ViewportPercentageConversion flag and enables the
conversion whenever we enable a fixed length conversion.
Similarly, we should also convert calcs with both percentage and length
components (the CalculatedConversion flag) whenever both are allowed.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154417 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a test for :hover on display: block elements as per crbug.com/253472

I verified that this would have caught the regression by testing
with and w/o the revert.

BUG=253472
TBR=leviw

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154418 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make atob() / btoa() argument non optional

According to the latest specification, the argument to atob() / btoa()
should not be optional:
http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#windowbase64

This patch makes Blink behave according to the specification. The argument
is also mandatory in Firefox and IE10.

atob() / btoa() are also moved to their own WindowBase64 interface which
the Window interface implements. This does not change the behavior but
this is closer to the specification and it will make exposing those
methods to workers easier later on.

BUG=261126

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154419 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Workaround DocumentLoader assertions hit by layout tests.

The following three tests hit an assertion in DocumentLoader::responseReceived
because they 'alert()' after loading a 'data:' URL in a frame or popup. This
apparently breaks the assumptions in responseReceived.

I've updated the bug with a minimal reproduction; this patch simply adjusts the
tests to avoid 'alert()' in order to regain a bit of test coverage. The actual
issue will have to be fixed in a followup patch.

BUG=243300

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154420 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use Frame::domWindow() instead of Frame::document()->domWindow().

Now that Frame holds a direct reference to DOMWindow, just use
domWindow() directly rather than going from the Document back to the
DOMWindow.

BUG=238443
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154421 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove some dead code re-introduced by a bad merge.

TBR=dglazkov
BUG=237268

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154422 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDBAny need not be scriptwrappable.

V8IDBAnyCustom.cpp will call into toV8() for the appropriate type, which will in turn invoke wrap() for the appropriate type, which will perform the bindings integrity check.  Since IDBAny doesn't have its own wrap() method, there's no place that the check would actually be applied.  The presence of the IDBAny.idl was what triggered the conversion to scriptwrappable in the first place.

This does no harm, but wastes a few bytes of memory.

BUG=260757
R=jsbell@chromium.org

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

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154423 bbb929c8-8fbe-4397-9dbb-9b2b20218538
cornerStart/cornerRect shouldn't require a RenderLayer

Those functions requires a RenderLayer where they actually have no
need for it: they only need the scrollbars and the RenderStyle.

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

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