Bug 78291

Summary: FrameView::addSlowRepaintObject() doesn't update m_canBlitOnScroll correctly
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mitz: review+

Description Anders Carlsson 2012-02-09 15:29:25 PST
FrameView::addSlowRepaintObject() doesn't update m_canBlitOnScroll correctly
Comment 1 Anders Carlsson 2012-02-09 15:32:03 PST
Created attachment 126388 [details]
Patch
Comment 2 mitz 2012-02-09 15:38:38 PST
Comment on attachment 126388 [details]
Patch

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

> Source/WebCore/page/FrameView.cpp:1332
>      m_slowRepaintObjectCount++;
> +    if (m_slowRepaintObjectCount == 1)

This is one case where I think collapsing this into a single line would have made things clearer:
    if (!m_slowRepaintObjectCount++)
Comment 3 Anders Carlsson 2012-02-09 17:55:00 PST
Committed r107332: <http://trac.webkit.org/changeset/107332>