Changeset 169635 in webkit


Ignore:
Timestamp:
Jun 5, 2014 7:22:26 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r169570.
https://bugs.webkit.org/show_bug.cgi?id=133565

It breaks Baidu (Requested by benjaminp on #webkit).

Reverted changeset:

"[iOS] Start ignoring common bogus viewport parameters"
https://bugs.webkit.org/show_bug.cgi?id=133466
http://trac.webkit.org/changeset/169570

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r169632 r169635  
     12014-06-05  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r169570.
     4        https://bugs.webkit.org/show_bug.cgi?id=133565
     5
     6        It breaks Baidu (Requested by benjaminp on #webkit).
     7
     8        Reverted changeset:
     9
     10        "[iOS] Start ignoring common bogus viewport parameters"
     11        https://bugs.webkit.org/show_bug.cgi?id=133466
     12        http://trac.webkit.org/changeset/169570
     13
    1142014-06-05  Michael Timbrook  <timbrook@apple.com>
    215
  • trunk/Source/WebCore/dom/ViewportArguments.cpp

    r169570 r169635  
    405405void finalizeViewportArguments(ViewportArguments& arguments, const FloatSize& screenSize)
    406406{
    407     if (arguments.width == ViewportArguments::ValueDeviceWidth && (arguments.zoom == 1 || arguments.minZoom == 1)) {
    408         // A large amount of pages are using the viewport width=device-width + scaling parameters incorrectly.
    409         // This has become so pervasive that the vast majority of those pages render better without viewport meta tag than with it.
    410         // Clearing the width is a workaround for the most common incorrect viewports. :(
    411         arguments.width = ViewportArguments::ValueAuto;
    412     } else if (arguments.width == ViewportArguments::ValueDeviceWidth)
     407    if (arguments.width == ViewportArguments::ValueDeviceWidth)
    413408        arguments.width = screenSize.width();
    414409    else if (arguments.width == ViewportArguments::ValueDeviceHeight)
Note: See TracChangeset for help on using the changeset viewer.