Bug 66502

Summary: Switch RenderBlock to to new layout types
Product: WebKit Reporter: Emil A Eklund <eae>
Component: Layout and RenderingAssignee: Emil A Eklund <eae>
Status: RESOLVED FIXED    
Severity: Normal CC: eric, leviw, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 63567    
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Emil A Eklund 2011-08-18 14:57:26 PDT
Convert RenderBlock to new layout abstraction.
Comment 1 Emil A Eklund 2011-08-18 14:59:24 PDT
Created attachment 104403 [details]
Patch
Comment 2 Eric Seidel (no email) 2011-08-19 10:57:18 PDT
Comment on attachment 104403 [details]
Patch

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

> Source/WebCore/rendering/RenderBlock.cpp:1349
> +            repaintRect.intersect(LayoutRect(0, 0, width(), height()));

I'm surprised there isn't a size() function to use here.

> Source/WebCore/rendering/RenderBlock.h:823
> +    typedef PODInterval<int, FloatingObject*> FloatingObjectInterval;
> +    typedef PODIntervalTree<int, FloatingObject*> FloatingObjectTree;

?
Comment 3 Emil A Eklund 2011-08-19 11:11:53 PDT
(In reply to comment #2)
> (From update of attachment 104403 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=104403&action=review
> 
> > Source/WebCore/rendering/RenderBlock.cpp:1349
> > +            repaintRect.intersect(LayoutRect(0, 0, width(), height()));
> 
> I'm surprised there isn't a size() function to use here.

There is, rewrote it as LayoutRect(LayoutPoint(), size())

> 
> > Source/WebCore/rendering/RenderBlock.h:823
> > +    typedef PODInterval<int, FloatingObject*> FloatingObjectInterval;
> > +    typedef PODIntervalTree<int, FloatingObject*> FloatingObjectTree;

Argh, merge failure, reverted.

Thanks.
Comment 4 Emil A Eklund 2011-08-19 11:34:01 PDT
Created attachment 104535 [details]
Patch for landing
Comment 5 WebKit Review Bot 2011-08-19 13:58:13 PDT
Comment on attachment 104535 [details]
Patch for landing

Clearing flags on attachment: 104535

Committed r93436: <http://trac.webkit.org/changeset/93436>
Comment 6 WebKit Review Bot 2011-08-19 13:58:18 PDT
All reviewed patches have been landed.  Closing bug.