Bug 128639 - [WK2][iOS] Add back the special viewport for the old xhtml mobile doctype
Summary: [WK2][iOS] Add back the special viewport for the old xhtml mobile doctype
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Benjamin Poulain
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-11 17:20 PST by Benjamin Poulain
Modified: 2014-02-12 13:39 PST (History)
4 users (show)

See Also:


Attachments
Patch (12.40 KB, patch)
2014-02-11 17:25 PST, Benjamin Poulain
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Poulain 2014-02-11 17:20:41 PST
[WK2][iOS] Add back the special viewport for the old xhtml mobile doctype
Comment 1 Benjamin Poulain 2014-02-11 17:25:05 PST
Created attachment 223921 [details]
Patch
Comment 2 Andreas Kling 2014-02-12 10:56:26 PST
Comment on attachment 223921 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=223921&action=review

r=me, thanks for fixing this! (I was the one who removed the doctype stuff..)

> Source/WebCore/dom/Document.cpp:801
> +    page()->chrome().didReceiveDocType(frame());

Since this code doesn't actually check that a doctype tag is present, maybe we should have a comment about why.
It's also not obvious why this is restricted to PLATFORM(IOS).

> Source/WebCore/page/Chrome.cpp:609
> +    if (DocumentType* documentType = frame->document()->doctype())

I'd harmfully consider auto* here.
Comment 3 Benjamin Poulain 2014-02-12 13:39:23 PST
Committed r163980: <http://trac.webkit.org/changeset/163980>