Remove tizen feature in computeViewportAttributes()
authorChanghyup Jwa <ch.jwa@samsung.com>
Thu, 6 Sep 2012 07:54:23 +0000 (16:54 +0900)
committerChanghyup Jwa <ch.jwa@samsung.com>
Mon, 10 Sep 2012 07:32:39 +0000 (16:32 +0900)
[Title] Remove tizen feature in computeViewportAttributes()
[Issue] WEB-1711
[Problem] Minimum scale value and layout size is incorrect.
[Cause] Tizen feature which is supporting insufficient viewport argument is
        making side effect.
[Solution] Remove unnecessary tizen feature.

Change-Id: I6c51846b87c27c8949654e59bb68be83a091a494

Source/WebCore/dom/ViewportArguments.cpp

index 590e129..da49a9f 100644 (file)
@@ -99,13 +99,6 @@ ViewportAttributes computeViewportAttributes(ViewportArguments args, int desktop
     case ViewportArguments::ValueDeviceHeight:
         args.width = deviceHeight;
         break;
-#if ENABLE(TIZEN_VIEWPORT_META_TAG)
-    // When viewport meta tag doesn't have width attribute, mobile browser for Tizen needs to process ValueAuto as deviceWidth.
-    case ViewportArguments::ValueAuto:
-        if (args.type == ViewportArguments::ViewportMeta)
-            args.width = deviceWidth;
-        break;
-#endif
     }
 
     switch (int(args.height)) {