Bug 92927

Summary: Switch mapLocalToContainer to use a flag instead of boolean parameters
Product: WebKit Reporter: Levi Weintraub <leviw>
Component: Layout and RenderingAssignee: Levi Weintraub <leviw>
Status: RESOLVED FIXED    
Severity: Normal CC: eric, webkit.review.bot, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 89238    
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing none

Levi Weintraub
Reported 2012-08-01 17:49:53 PDT
I intend on adding another mode of operation for bug switching between pixel snapping which will further complicate the current contract.
Attachments
Patch (31.12 KB, patch)
2012-08-02 10:12 PDT, Levi Weintraub
no flags
Patch (33.09 KB, patch)
2012-08-02 14:06 PDT, Levi Weintraub
no flags
Patch for landing (32.97 KB, patch)
2012-08-03 10:27 PDT, Levi Weintraub
no flags
Levi Weintraub
Comment 1 2012-08-02 10:12:17 PDT
Build Bot
Comment 2 2012-08-02 10:34:07 PDT
Dirk Schulze
Comment 3 2012-08-02 10:41:07 PDT
Comment on attachment 156114 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=156114&action=review > Source/WebCore/rendering/svg/RenderSVGForeignObject.cpp:193 > +void RenderSVGForeignObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, TransformState& transformState, MapLocalToContainerFlags mode, bool* wasFixed) const You need to comment it out, or flag it unused. > Source/WebCore/rendering/svg/RenderSVGInline.cpp:82 > +void RenderSVGInline::mapLocalToContainer(RenderBoxModelObject* repaintContainer, TransformState& transformState, MapLocalToContainerFlags mode, bool* wasFixed) const Ditto. > Source/WebCore/rendering/svg/RenderSVGModelObject.cpp:58 > +void RenderSVGModelObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, TransformState& transformState, MapLocalToContainerFlags mode, bool* wasFixed) const Ditto.
Levi Weintraub
Comment 4 2012-08-02 11:26:48 PDT
(In reply to comment #3) > (From update of attachment 156114 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=156114&action=review > > > Source/WebCore/rendering/svg/RenderSVGForeignObject.cpp:193 > > +void RenderSVGForeignObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, TransformState& transformState, MapLocalToContainerFlags mode, bool* wasFixed) const > > You need to comment it out, or flag it unused. > > > Source/WebCore/rendering/svg/RenderSVGInline.cpp:82 > > +void RenderSVGInline::mapLocalToContainer(RenderBoxModelObject* repaintContainer, TransformState& transformState, MapLocalToContainerFlags mode, bool* wasFixed) const > > Ditto. > > > Source/WebCore/rendering/svg/RenderSVGModelObject.cpp:58 > > +void RenderSVGModelObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, TransformState& transformState, MapLocalToContainerFlags mode, bool* wasFixed) const > > Ditto. Of course, thank you :)
Levi Weintraub
Comment 5 2012-08-02 14:06:15 PDT
Dirk Schulze
Comment 6 2012-08-02 20:21:52 PDT
Comment on attachment 156161 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=156161&action=review LGTM. Just some snippets, r=me. > Source/WebCore/rendering/svg/RenderSVGForeignObject.cpp:195 > +void RenderSVGForeignObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, TransformState& transformState, MapLocalToContainerFlags mode, bool* wasFixed) const > { > + UNUSED_PARAM(mode); Sorry for not mention it before. But isn't it easier to just not use 'mode'? I think MapLocalToContainerFlags is self descriptive. > Source/WebCore/rendering/svg/RenderSVGInline.cpp:84 > + UNUSED_PARAM(mode); Ditto. > Source/WebCore/rendering/svg/RenderSVGModelObject.cpp:60 > + UNUSED_PARAM(mode); Ditto. > Source/WebCore/rendering/svg/RenderSVGText.cpp:116 > + UNUSED_PARAM(mode); Ditto.
Levi Weintraub
Comment 7 2012-08-03 10:27:08 PDT
Created attachment 156410 [details] Patch for landing
WebKit Review Bot
Comment 8 2012-08-03 15:23:58 PDT
Comment on attachment 156410 [details] Patch for landing Clearing flags on attachment: 156410 Committed r124662: <http://trac.webkit.org/changeset/124662>
WebKit Review Bot
Comment 9 2012-08-03 15:24:02 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.