Auto-rebaseline for r156792

http://src.chromium.org/viewvc/blink?view=revision&revision=156792

BUG=280213
TBR=jbauman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156796 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unshare logic between mousemove/mouseleave event processing again.

I tried to unify this in r154247 to get rid of a redundant protective
RefPtr. However, this caused some issues with interactions between
context menus and tooltips on OS X. This is mostly a revert but with
some of the members renamed to make the naming more consistent/clearer.

BUG=261132

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156797 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove usesBeforeAfterRules RuleFeatureSet flag

Almost every real world complex page uses ::before or ::after from my sampling
and all this flag does is let us skip a few if statements inside recalcStyle
and the loop inside RenderStyle::getCachedPseudoStyle which is suspect since
we always go through an essentially identical loop in
Element::pseudoStyleCacheIsInvalid (and since most elements have no pseudos).

We should just remove this "fast path" code.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156798 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove expensive system includes from TypeTraits.h and simplify.

I checked with @thestig that it's ok to try requiring GCC 4.6, which is satisfied by all currently supported Ubuntu releases. This simplifies things.

Also, we might as well use the generic routine, even for newest MSVC builds, in order to be simple and consistent across OS'es, and avoid the expensive system includes on all OS'es.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156799 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make InputType and InputTypeView RefCounted.

This is a preparation to add HTMLInputElement::m_inputTypeView. Both of
m_inputType and m_inputTypeView will be able to own single InputType object.

BUG=274205
TEST=none; no behavior changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156800 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactoring: Editor::frame() should return a reference.

Also, Editor::Editor and SpellCheckRequester::SpellCheckRequester shold take
reference arguments, and SpellCheckRequester::m_frame should be a referance.

BUG=none
TEST=none; no behavior changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156801 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 156774 "Add support for BeforeUnloadEvent"

Speculative revert for Chromium OS test failures on browser_tests:
  KeyboardOperations/FileManagerBrowserTest.Test/3
  KeyboardOperations/FileManagerBrowserTest.Test/4
  KeyboardOperations/FileManagerBrowserTest.Test/5

http://build.chromium.org/p/chromium.chromiumos/buildstatus?builder=Linux%20ChromiumOS%20Tests%20%282%29&number=17612
http://build.chromium.org/p/chromium.memory/buildstatus?builder=Linux%20Chromium%20OS%20ASAN%20Tests%20%281%29&number=11554
http://build.chromium.org/p/chromium.memory/buildstatus?builder=Linux%20Chromium%20OS%20ASAN%20Tests%20%282%29&number=11976
http://build.chromium.org/p/chromium.memory/buildstatus?builder=Linux%20Chromium%20OS%20ASAN%20Tests%20%283%29&number=9424

> Add support for BeforeUnloadEvent
> 
> Add support for BeforeUnloadEvent as per the specification:
> http://www.whatwg.org/specs/web-apps/current-work/#beforeunloadevent
> 
> BeforeUnloadEvent has a returnValue attribute. Setting returnValue to a non-empty
> string in an event handler causes the user agent should ask the user to confirm
> that they wish to unload the document. This is equivalent to returning a non-empty
> string in the EventHandler:
> http://www.whatwg.org/specs/web-apps/current-work/#onbeforeunloadeventhandler
> 
> BeforeUnloadEvent and returnValue are already supported by IE and Firefox. Previously,
> Blink was passing a base Event type to the beforeunload event handlers instead of
> a BeforeUnloadEvent.
> 
> Note that this patch also removes support for Event.returnValue. This used to be
> an IE extension but this is no longer supported by IE (nor Firefox) so the
> compatibility risk should be low. Applications use preventDefault() nowadays to
> do this and only fallback to Event.returnValue to support older versions of IE
> (IE < 9).
> 
> BUG=277851
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156654
> 
> Review URL: https://chromiumcodereview.appspot.com/22893051

TBR=ch.dumez@sisa.samsung.com

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

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