RESOLVED FIXED 60596
Switch paintFillLayer and its progeny to use IntRect instead of four ints
https://bugs.webkit.org/show_bug.cgi?id=60596
Summary Switch paintFillLayer and its progeny to use IntRect instead of four ints
Levi Weintraub
Reported 2011-05-10 16:44:13 PDT
paintFillLayer, paintFillLayers, and paintFillLayerExtended (deep breaths) all take four ints instead of an IntRect.
Attachments
Patch (26.57 KB, patch)
2011-05-11 15:47 PDT, Levi Weintraub
no flags
Patch for landing (26.54 KB, patch)
2011-05-11 16:35 PDT, Levi Weintraub
no flags
Eric Seidel (no email)
Comment 1 2011-05-10 16:49:07 PDT
Amen, brother. Amen.
Levi Weintraub
Comment 2 2011-05-11 12:16:57 PDT
Also switching paintFillLayersExtended's InlineBox width and height parameters to an IntSize (duh! :)
Levi Weintraub
Comment 3 2011-05-11 15:47:36 PDT
Eric Seidel (no email)
Comment 4 2011-05-11 16:00:23 PDT
Comment on attachment 93200 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=93200&action=review OK. > Source/WebCore/rendering/InlineFlowBox.cpp:1061 > + paintInfo.context->clip(IntRect(rect.x(), rect.y(), width(), height())); rect.location(), size()? > Source/WebCore/rendering/InlineFlowBox.cpp:1062 > + boxModelObject()->paintFillLayerExtended(paintInfo, c, fillLayer, IntRect(stripX, stripY, stripWidth, stripHeight), BackgroundBleedNone, this, rect.size(), op); looks like stripRect is gonna be next. :)
Levi Weintraub
Comment 5 2011-05-11 16:03:09 PDT
Comment on attachment 93200 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=93200&action=review >> Source/WebCore/rendering/InlineFlowBox.cpp:1061 >> + paintInfo.context->clip(IntRect(rect.x(), rect.y(), width(), height())); > > rect.location(), size()? It's weird, but because width() and height() look at if we're horizontal, and because there's currently no size() function for InlineBox I had to go with this. One could be added tho ;)
Levi Weintraub
Comment 6 2011-05-11 16:03:53 PDT
(In reply to comment #4) > (From update of attachment 93200 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=93200&action=review > > OK. > > > Source/WebCore/rendering/InlineFlowBox.cpp:1061 > > + paintInfo.context->clip(IntRect(rect.x(), rect.y(), width(), height())); > > rect.location(), size()? > > > Source/WebCore/rendering/InlineFlowBox.cpp:1062 > > + boxModelObject()->paintFillLayerExtended(paintInfo, c, fillLayer, IntRect(stripX, stripY, stripWidth, stripHeight), BackgroundBleedNone, this, rect.size(), op); > > looks like stripRect is gonna be next. :) Also major thanks for all the reviewing work, dude! You're really keeping us clipping along.
Levi Weintraub
Comment 7 2011-05-11 16:35:06 PDT
Created attachment 93210 [details] Patch for landing
WebKit Commit Bot
Comment 8 2011-05-11 20:18:08 PDT
Comment on attachment 93210 [details] Patch for landing Clearing flags on attachment: 93210 Committed r86303: <http://trac.webkit.org/changeset/86303>
WebKit Commit Bot
Comment 9 2011-05-11 20:18:13 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.