Skip to content
  • darin's avatar
    Change code that moves NSViews out of the way to run inside drawRect · 94aae382
    darin authored
    	after a layout change rather than running at layout time. This makes
    	sure that views are in the right place when propagating dirty rects.
    
            * kwq/KWQKHTMLPartImpl.h: Add paint method and _needsToSetWidgetsAside flag.
            * kwq/KWQKHTMLPartImpl.mm:
            (KWQKHTMLPartImpl::KWQKHTMLPartImpl): Set _needsToSetWidgetsAside to false.
            (KWQKHTMLPartImpl::layout): Set _needsToSetWidgetsAside to true. Don't call
    	moveWidgetsAside any more.
            (KWQKHTMLPartImpl::paint): Moved the code here from the bridge, but also call
    	moveWidgetsAside if _needsToSetWidgetsAside flag is set.
            * kwq/WebCoreBridge.mm:
            (-[WebCoreBridge drawRect:withPainter:]): Call KWQKHTMLPartImpl::paint, which
    	is where I moved this code.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2118 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    94aae382