Revert "Apply a zoom property when resolution is changed"
authorJihye Kang <jye.kang@samsung.com>
Fri, 12 Apr 2013 01:41:08 +0000 (10:41 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 12 Apr 2013 01:46:18 +0000 (10:46 +0900)
This reverts commit 39bc1fe1adf64257dce0e54d5a37a739bd809c42

Source/WebCore/html/shadow/MediaControlRootElement.cpp
Source/WebCore/html/shadow/MediaControlRootElement.h

index 3c87507..afa8081 100644 (file)
 #include "TextTrackCue.h"
 #endif
 
-#if ENABLE(TIZEN_VIEWPORT_META_TAG) && ENABLE(TIZEN_FULLSCREEN_API)
-#include "EflScreenUtilities.h"
-#endif
-
 using namespace std;
 
 namespace WebCore {
 
 static const double timeWithoutMouseMovementBeforeHidingControls = 3;
-static const int defaultScreenWidth = 720;
 
 MediaControlRootElement::MediaControlRootElement(Document* document)
     : MediaControls(document)
@@ -86,9 +81,6 @@ MediaControlRootElement::MediaControlRootElement(Document* document)
 #endif
     , m_isMouseOverControls(false)
     , m_isFullscreen(false)
-#if ENABLE(TIZEN_FULLSCREEN_API)
-    , m_resolutionScale(1.0f)
-#endif
 {
 }
 
@@ -533,12 +525,6 @@ void MediaControlRootElement::enteredFullscreen()
 
     if (Page* page = document()->page()) {
         page->chrome()->setCursorHiddenUntilMouseMoves(true);
-
-#if ENABLE(TIZEN_VIEWPORT_META_TAG) && ENABLE(TIZEN_FULLSCREEN_API)
-        int screenWidth = getDefaultScreenResolution().width();
-        if (screenWidth != defaultScreenWidth)
-            m_panel->setInlineStyleProperty(CSSPropertyZoom, String::number(screenWidth/defaultScreenWidth));
-#endif
     }
 
 #if !ENABLE(TIZEN_GSTREAMER_VIDEO)
@@ -568,11 +554,6 @@ void MediaControlRootElement::exitedFullscreen()
     // And if we reenter fullscreen we also want the panel in the standard position.
     m_panel->resetPosition();
 
-#if ENABLE(TIZEN_VIEWPORT_META_TAG) && ENABLE(TIZEN_FULLSCREEN_API)
-    if (getDefaultScreenResolution().width() != defaultScreenWidth)
-        m_panel->removeInlineStyleProperty(CSSPropertyZoom);
-#endif
-
 #if !ENABLE(TIZEN_GSTREAMER_VIDEO)
     stopHideFullscreenControlsTimer();
 #endif
index 226c81c..0f03d9c 100644 (file)
@@ -168,9 +168,6 @@ private:
 
     bool m_isMouseOverControls;
     bool m_isFullscreen;
-#if ENABLE(TIZEN_FULLSCREEN_API)
-    double m_resolutionScale;
-#endif
 };
 
 }