Revert 228346 "DevTools: support beforeunload lifecycle for DevT..."

> DevTools: support beforeunload lifecycle for DevTools window
> 
> This patch teaches DevTools window to send beforeunload events to
> its frontend. This events won't be send if the inspected webcontents
> got closed - additional work is needed to handle this case.
> 
> BUG=289552
> TBR=pfeldman
> 
> Review URL: https://codereview.chromium.org/23766027

TBR=lushnikov@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228373 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 228373
Extract browser.RunUnloadEventsHelper into unload controllers

This patch extracts browser.RunUnloadEventsHelper from browser into
unload controllers. This is a preparation step before devtools
integration into beforeunload process.

BUG=289552

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228374 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Fix the position of share button.

The position of inline element in the element that is specified 'display:
-webkit-box' is wrong. The CL updates the button's style from inline to block.

BUG=306411
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228375 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 228374
cc: Fix masks when the RenderPassDrawQuad does not cover the whole pass

If the RenderPassDrawQuad is not the same size as the texture backing
the RenderPass, then we have to scale the texture coordinates when
reading the pass texture.

If the pass has a mask as well, we have to scale those coordinates as
well. However the coordinates given to the mask shader are already
scaled to the size of the contents texture. We further scale and
offset the coordinates but the offset was incorrect.

Tested by:
RendererPixelTest.RenderPassAndMaskWithPartialQuad
LayerTreeHostMasksPixelTest.MaskOfClippedLayer

R=enne
BUG=264534

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228376 0039d316-1c4b-4281-b951-d872f2087c98
Disable GpuFeatureTest.Canvas2DAllowed in software compositing mode.

NOTRY=True
TBR=jbauman
BUG=306790

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228377 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 228376
SVN changes up to revision 228377