Bug 118206 - Cached pages don't update their backing scale factor when it changes
Summary: Cached pages don't update their backing scale factor when it changes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Beth Dakin
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-06-28 15:07 PDT by Beth Dakin
Modified: 2013-06-28 16:13 PDT (History)
5 users (show)

See Also:


Attachments
Patch (5.01 KB, patch)
2013-06-28 15:44 PDT, Beth Dakin
thorton: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Beth Dakin 2013-06-28 15:07:52 PDT
Steps to reproduce:
1. Go to daringfireball.net on non-HiDPI display.
2. Click on any link on the page e.g. "Projects".
3. Move the window to HiDPI display.
4. Click the back button.

<rdar://problem/14261627>
Comment 1 Beth Dakin 2013-06-28 15:44:24 PDT
Created attachment 205750 [details]
Patch
Comment 2 Tim Horton 2013-06-28 15:57:46 PDT
Comment on attachment 205750 [details]
Patch

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

> Source/WebCore/history/CachedPage.h:74
> +    bool m_needsDeviceScaleChanged;

I don't really like the "needs XYZ changed" naming (it's really 'needs to *call* XYZChanged', or maybe needsDeviceScaleUpdate or something), but there's already one like that here :|
Comment 3 Beth Dakin 2013-06-28 16:13:02 PDT
Thanks, Tim! I gave it some thought but was unable to think of a better name. I do agree it's not great. I will keep thinking on it.