Changeset 48401 in webkit


Ignore:
Timestamp:
Sep 15, 2009 2:26:26 PM (15 years ago)
Author:
Simon Fraser
Message:

2009-09-15 Simon Fraser <Simon Fraser>

Reviewed by Dan Bernstein.

Fixed position elements flash when CSS transforms are applied on page > 2048px tall
https://bugs.webkit.org/show_bug.cgi?id=27272

Update the previous workaround for misplaced compositing layers, which used a 4096px
threshold, to 2048px since that's the GPU max texture size on some older hardware.

  • WebView/WebHTMLView.mm: (-[WebHTMLView _updateLayerHostingViewPosition]):
Location:
trunk/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/mac/ChangeLog

    r48400 r48401  
     12009-09-15  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        Fixed position elements flash when CSS transforms are applied on page > 2048px tall
     6        https://bugs.webkit.org/show_bug.cgi?id=27272
     7       
     8        Update the previous workaround for misplaced compositing layers, which used a 4096px
     9        threshold, to 2048px since that's the GPU max texture size on some older hardware.
     10
     11        * WebView/WebHTMLView.mm:
     12        (-[WebHTMLView _updateLayerHostingViewPosition]):
     13
    1142009-09-15  Alex Milowski  <alex@milowski.com>
    215
  • trunk/WebKit/mac/WebView/WebHTMLView.mm

    r47999 r48401  
    54635463        return;
    54645464   
    5465     const CGFloat maxHeight = 4096;
     5465    const CGFloat maxHeight = 2048;
    54665466    NSRect layerViewFrame = [self bounds];
    54675467
     
    54695469        CGFloat documentHeight = layerViewFrame.size.height;
    54705470           
    5471         // Clamp the size of the view to <= 4096px to avoid the bug.
     5471        // Clamp the size of the view to <= maxHeight to avoid the bug.
    54725472        layerViewFrame.size.height = maxHeight;
    54735473        NSRect visibleRect = [[self enclosingScrollView] documentVisibleRect];
Note: See TracChangeset for help on using the changeset viewer.