Bug 66502 - Switch RenderBlock to to new layout types
Summary: Switch RenderBlock to to new layout types
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Emil A Eklund
URL:
Keywords:
Depends on:
Blocks: 63567
  Show dependency treegraph
 
Reported: 2011-08-18 14:57 PDT by Emil A Eklund
Modified: 2011-08-19 13:58 PDT (History)
3 users (show)

See Also:


Attachments
Patch (66.32 KB, patch)
2011-08-18 14:59 PDT, Emil A Eklund
no flags Details | Formatted Diff | Diff
Patch for landing (65.76 KB, patch)
2011-08-19 11:34 PDT, Emil A Eklund
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.