Summary: | Very bad scrolling-performance with the Trackpad at http://www.apple.com/ipad/app-store/ | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mehmet <mehmet.sahin> | ||||
Component: | New Bugs | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | hyatt, sam, simon.fraser | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Mac (Intel) | ||||||
OS: | OS X 10.6 | ||||||
URL: | http://www.apple.com/ipad/app-store/ | ||||||
Attachments: |
|
Description
Mehmet
2010-04-01 13:17:20 PDT
Created attachment 52466 [details]
Patch
Comment on attachment 52466 [details] Patch > + // Check to see if the image changed; we have to do this because the call to > + // CGImageCreateCopyWithColorSpace() below can create a new image every time. > + if (m_uncorrectedContentsImage && CFEqual(m_uncorrectedContentsImage.get(), newImage)) > + return; Wow, does CFEqual actually work on CGImages!? And it compares every bit? > + m_uncorrectedContentsImage = m_pendingContentsImage = newImage; Could you do these on separate lines? It's too easy to overlook the second assignment when it's all on one line. r=me assuming you tested (In reply to comment #3) > (From update of attachment 52466 [details]) > > + // Check to see if the image changed; we have to do this because the call to > > + // CGImageCreateCopyWithColorSpace() below can create a new image every time. > > + if (m_uncorrectedContentsImage && CFEqual(m_uncorrectedContentsImage.get(), newImage)) > > + return; > > Wow, does CFEqual actually work on CGImages!? And it compares every bit? I don't care about bit-for-bit comparisons; this just checks to see if this image is the same as the last one we set. I guess I could test for pointer equality? > > + m_uncorrectedContentsImage = m_pendingContentsImage = newImage; > > Could you do these on separate lines? It's too easy to overlook the second > assignment when it's all on one line. Will do. |