Bug 139445 - Refactor of rebuildFloatingObjectSetFromIntrudingFloats function after r176957.
Summary: Refactor of rebuildFloatingObjectSetFromIntrudingFloats function after r176957.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Javier Fernandez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-09 06:28 PST by Javier Fernandez
Modified: 2014-12-09 09:44 PST (History)
7 users (show)

See Also:


Attachments
Patch (8.31 KB, patch)
2014-12-09 06:46 PST, Javier Fernandez
no flags Details | Formatted Diff | Diff
updated-patch (8.21 KB, patch)
2014-12-09 08:12 PST, Javier Fernandez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Javier Fernandez 2014-12-09 06:28:25 PST
Refactor of rebuildFloatingObjectSetFromIntrudingFloats function after r176957.
Comment 1 Javier Fernandez 2014-12-09 06:46:01 PST
Created attachment 242917 [details]
Patch
Comment 2 Javier Fernandez 2014-12-09 06:49:50 PST
This bug has been created to complete the changes suggested in the review of the patch for bug #139150.
Comment 3 Darin Adler 2014-12-09 07:33:39 PST
Comment on attachment 242917 [details]
Patch

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

> Source/WebCore/rendering/RenderBlockFlow.cpp:191
> +            if (!siblingBlock.avoidsFloats()) {
> +                previousBlock = &siblingBlock;
> +                break;
> +            }

This could just be:

    if (!siblingBlock.avoidFloats())
        return &siblingBlock;

Then we could get rid of the previousBlock local variable entirely.
Comment 4 Javier Fernandez 2014-12-09 08:12:25 PST
Created attachment 242922 [details]
updated-patch

Applied suggested changes.
Comment 5 WebKit Commit Bot 2014-12-09 09:44:04 PST
Comment on attachment 242922 [details]
updated-patch

Clearing flags on attachment: 242922

Committed r177021: <http://trac.webkit.org/changeset/177021>
Comment 6 WebKit Commit Bot 2014-12-09 09:44:08 PST
All reviewed patches have been landed.  Closing bug.