Bug 135781

Summary: Refactor ShapeOutsideInfo so it isn't mutated for each line
Product: WebKit Reporter: Bem Jones-Bey <bjonesbe>
Component: Layout and RenderingAssignee: Bem Jones-Bey <bjonesbe>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kondapallykalyan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Bem Jones-Bey 2014-08-08 17:44:24 PDT
Refactor ShapeOutsideInfo so it isn't mutated for each line
Comment 1 Bem Jones-Bey 2014-08-08 17:54:44 PDT
Created attachment 236327 [details]
Patch
Comment 2 Bem Jones-Bey 2014-08-08 21:10:10 PDT
Created attachment 236330 [details]
Patch

Rebased so it will actually apply.
Comment 3 Bem Jones-Bey 2014-08-12 11:01:00 PDT
Created attachment 236454 [details]
Patch

Rearrange bool members of ShapeOutsideDeltas to get more efficient layout.
Comment 4 Zoltan Horvath 2014-08-12 11:27:01 PDT
Comment on attachment 236454 [details]
Patch

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

> Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp:336
> +        return m_shapeOutsideDeltas;

You don't need this return.
Comment 5 Bem Jones-Bey 2014-08-12 13:03:19 PDT
Comment on attachment 236454 [details]
Patch

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

>> Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp:336
>> +        return m_shapeOutsideDeltas;
> 
> You don't need this return.

You're right. I'll fix that.
Comment 6 Bem Jones-Bey 2014-08-12 13:12:41 PDT
Created attachment 236462 [details]
Patch

Remove extra return statement
Comment 7 Zoltan Horvath 2014-08-12 22:50:07 PDT
Comment on attachment 236462 [details]
Patch

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

r=me

> Source/WebCore/rendering/shapes/ShapeOutsideInfo.h:47
> +    WTF_MAKE_FAST_ALLOCATED;

Since ShapeOutsideDeltas isn't instantiated by operator new, you don't need to make it fast allocated.
Comment 8 Bem Jones-Bey 2014-08-13 11:37:46 PDT
Created attachment 236538 [details]
Patch

Remove unneeded fast allocation for ShapeOutsideDeltas
Comment 9 WebKit Commit Bot 2014-08-13 12:05:37 PDT
Comment on attachment 236538 [details]
Patch

Clearing flags on attachment: 236538

Committed r172529: <http://trac.webkit.org/changeset/172529>
Comment 10 WebKit Commit Bot 2014-08-13 12:05:40 PDT
All reviewed patches have been landed.  Closing bug.