Get rid of unnecessary layouts on body elements with quirky children

RenderBlockFlow::marginBeforeEstimateForChild() was checking the wrong
margin when detecting quirky children. The performance test added by
this patch times out without the change in this CL - obviously a
pathological case!

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169269 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move DeviceSensorEvent* h|cpp files to a common module

DeviceSensorEvent* h|cpp files resided under device_orientation as
device_orientation and motion were the only ones to use them. As more
Device Apis are added using the module system in Blink
(e.g. Ambient Light) we need to move these files to a common place (Source/core/frame) to
avoid any cross module dependency.


Encounted this issue while adding Ambient Light support ->
https://codereview.chromium.org/143823004/

BUG=

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

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