Revert of Merge MediaControlsChromium into MediaControls (https://codereview.chromium.org/157403002/)

Reason for revert:
This CL broke the build on Android:

http://build.chromium.org/p/chromium.webkit/builders/Android%20Builder/builds/34503/steps/compile/logs/stdio

FAILED: /mnt/data/b/build/goma/gomacc /mnt/data/b/build/slave/Android_Builder/build/src/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -MMD -MF obj/third_party/WebKit/Source/core/html/shadow/webcore_html.MediaControlsChromiumAndroid.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_CONFIGURATION_POLICY -DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY -DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE -DUSE_OPENSSL=1 -DENABLE_EGLIMAGE=1 -DENABLE_AUTOFILL_DIALOG=1 -DCLD_VERSION=1 -DENABLE_PRINTING=1 -DENABLE_MANAGED_USERS=1 -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DENABLE_CUSTOM_SCHEME_HANDLER=0 -DENABLE_SVG_FONTS=1 -DENABLE_GDI_FONTS_ON_WINDOWS=0 -DENABLE_HARFBUZZ_ON_WINDOWS=1 -DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -DENABLE_FAST_MOBILE_SCROLLING=1 -DENABLE_INPUT_SPEECH=0 -DENABLE_LEGACY_NOTIFICATIONS=0 -DENABLE_MEDIA_CAPTURE=1 -DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1 -DENABLE_WEB_AUDIO=1 -DENABLE_OPENTYPE_VERTICAL=1 -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DSK_ENABLE_INST_COUNT=0 -DSK_SUPPORT_GPU=1 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' -DSK_ENABLE_LEGACY_API_ALIASING=1 -DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1 -DGR_GL_IGNORE_ES3_MSAA=0 -DSK_BUILD_FOR_ANDROID -DSK_USE_POSIX_THREADS -DSK_DEFERRED_CANVAS_USES_FACTORIES=1 -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -DCHROME_PNG_READ_PACK_SUPPORT -DLIBXML_STATIC -DLIBXSLT_STATIC -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DANDROID -D__GNU_SOURCE=1 -DUSE_STLPORT=1 -D_STLP_USE_PTR_SPECIALIZATIONS=1 '-DCHROME_BUILD_ID=""' -DHAVE_SYS_UIO_H -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURCE=2 -I../../third_party/WebKit/Source -I../.. -I../../skia/config -I../../third_party/khronos -I../../gpu -I../../third_party/WebKit -Igen/blink -Igen/blink/bindings -I../../third_party/openmax_dl -I../../third_party/angle/include -I../../third_party/icu/source/i18n -I../../third_party/icu/source/common -I../../third_party/skia/src/core -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../skia/ext -I../../third_party/iccjpeg -I../../third_party/libpng -I../../third_party/libwebp -I../../third_party/libxml/linux/include -I../../third_party/libxml/src/include -I../../third_party/libxslt -I../../third_party/npapi -I../../third_party/npapi/bindings -I../../third_party/ots/include -I../../third_party/qcms/src -I../../third_party/sqlite -I../../third_party/zlib -I../../v8/include -fstack-protector --param=ssp-buffer-size=4 -Werror -fno-exceptions -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb -fno-tree-sra -fuse-ld=gold -Wno-psabi -mthumb-interwork -ffunction-sections -funwind-tables -g -fstack-protector -fno-short-enums -finline-limit=64 -Wa,--noexecstack --sysroot=/mnt/data/b/build/slave/Android_Builder/build/src/third_party/android_tools/ndk//platforms/android-14/arch-arm -I/mnt/data/b/build/slave/Android_Builder/build/src/third_party/android_tools/ndk//sources/cxx-stl/stlport/stlport -Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -funwind-tables -g1 -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -Wno-c++0x-compat -Wno-abi  -c ../../third_party/WebKit/Source/core/html/shadow/MediaControlsChromiumAndroid.cpp -o obj/third_party/WebKit/Source/core/html/shadow/webcore_html.MediaControlsChromiumAndroid.o
../../third_party/WebKit/Source/core/html/shadow/MediaControlsChromiumAndroid.cpp: In static member function 'static WTF::PassRefPtr<WebCore::MediaControls> WebCore::MediaControls::create(WebCore::Document&)':
../../third_party/WebKit/Source/core/html/shadow/MediaControlsChromiumAndroid.cpp:34:1:error: 'WebCore::MediaControlsChromiumAndroid::MediaControlsChromiumAndroid(WebCore::Document&)' is private
../../third_party/WebKit/Source/core/html/shadow/MediaControlsChromiumAndroid.cpp:46:103:error: within this context
../../third_party/WebKit/Source/core/html/shadow/MediaControlsChromiumAndroid.h:45:43:error: 'WebCore::MediaControlOverlayPlayButtonElement* WebCore::MediaControlsChromiumAndroid::m_overlayPlayButton' is private
../../third_party/WebKit/Source/core/html/shadow/MediaControlsChromiumAndroid.cpp:52:15:error: within this context
../../third_party/WebKit/Source/core/html/shadow/MediaControlsChromiumAndroid.h:46:42:error: 'WebCore::MediaControlOverlayEnclosureElement* WebCore::MediaControlsChromiumAndroid::m_overlayEnclosure' is private
../../third_party/WebKit/Source/core/html/shadow/MediaControlsChromiumAndroid.cpp:57:15:error: within this context


Original issue's description:
> Merge MediaControlsChromium into MediaControls
> 
> To the largest extent possible, code was copied from
> MediaControlsChromium.* to MediaControls.* without modification. Where
> MediaControlsChromium virtual functions called the MediaControls base
> functions, the order was preserved to avoid changing behavior.
> 
> BUG=341813
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166753

TBR=acolwell@chromium.org,philipj@opera.com
NOTREECHECKS=true
NOTRY=true
BUG=341813

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166755 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make MediaKeySession an ActiveDOMObject.

Since MediaKeySession handles events, it needs to be an ActiveDOMObject in order to properly maintain it's lifetime.

BUG=341567
TEST=EME content tests pass

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166756 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Force relayout instead of using cache for orthogonal flex items when in full layout

To avoid unnecessary extra layouts, a cache was added of the logical height of
flex items with orthogonal flow. However, when when in full layout
(relayoutChildren == true), we continued using the cached value. This patch pipes
relayoutChildren down into preferredMainAxisContentExtentForChild and forces
layout and re-seeds the cache for orthogonal children when true.

To avoid doing an unnecessary layout, this patch also tweaks the logic in
layoutAndPlaceChildren to not force child layout for orthogonally flowing children,
which is messy. It would be possible to assert that forcing a layout of these
children wouldn't change their logical height, but I didn't ope for that in this
version of the patch.

BUG=336127

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166757 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove HTMLMediaElement::togglePlayState()

It is unused.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166758 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove MediaController::m_mediaGroup

It is unused.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166759 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove scrollbars from more pageScaleFactor tests.

These scrollbars are brittle on some platforms to the change in
https://codereview.chromium.org/138013006

BUG=341145
TBR=abarth
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166760 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add relTypes() to WebPrerender.h.

We don't want to enable rel=next prerenders in blink until downstream
chrome support is ready (so they don't default on); this patch allows
downstream chrome patches to land before we start parsing them.

R=japhet@chromium.org
BUG=329963

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166761 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Prepare to move some classes in modules/device_orientation/ to Oilpan heap.

This CL prepares to move the following classes to Oilpan heap with transition types.
- DeviceAcceleration
- DeviceMotionData
- DeviceMotionData::Acceleration
- DeviceMotionData::RotationRate
- DeviceOrientationData
- DeviceRotationRate

We don't move DeviceMontionEvent and DeviceOrientationEvent yet because
Event class is not ready for Oilpan. They have some Persistent members for now.

We don't move DeviceMotionDispatcher and DeviceOrientationDispatcher to
Oilpan heap because they adopt singleton pattern and GC won't make any sense.

Note:
- readAccelerationArgument and readRotationRateArgument in
  V8DeviceMotionEventCustom.cpp should return PassRefPtr<> because they moves
  ownership to callers.
- V8DeviceMotionEvent::initDeviceMotionEventMethodCustom should use .release()
  for |acceleration|, |accelerationIncludingGravity|, and
  |rotationRate|. DeviceMotionData::create receives PassRefPtr<>s, and it takes
  their ownership.
- We should have Persistent::clear() for compatibility with RefPtr.
- acceleration(), accelerationIncludingGravity(), and rotationRate() of
  DeviceMotionData should not return PassRefPtr<>s. They are simple accessors,
  and don't move ownership.

BUG=340522

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

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