Closed Bug 1093066 Opened 10 years ago Closed 10 years ago

Get rid of gfxContext's Stroke() methods

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: jwatt, Assigned: jwatt)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Attached patch patch (obsolete) — Splinter Review
Attachment #8515966 - Flags: review?(matt.woodrow)
Comment on attachment 8515966 [details] [diff] [review] patch Review of attachment 8515966 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/svg/SVGContentUtils.cpp @@ +162,5 @@ > gfxTextContextPaint *aContextPaint, > StrokeOptionFlags aFlags) > { > + nsSVGElement* element = > + static_cast<nsSVGElement*>(aContent->IsNodeOfType(nsINode::eTEXT) ? This makes me a little queasy. Can we do this in the caller, or at least document and assert?
Comment on attachment 8515966 [details] [diff] [review] patch Review of attachment 8515966 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/svg/SVGContentUtils.cpp @@ +162,5 @@ > gfxTextContextPaint *aContextPaint, > StrokeOptionFlags aFlags) > { > + nsSVGElement* element = > + static_cast<nsSVGElement*>(aContent->IsNodeOfType(nsINode::eTEXT) ? Yeah, agreed. We should be able to do this in the SVGTextFrame caller and not have it here right?
Attached patch patchSplinter Review
So boring. Being more serious, this was just what the old code was doing, but yeah, we can be safer.
Attachment #8515966 - Attachment is obsolete: true
Attachment #8515966 - Flags: review?(matt.woodrow)
Attachment #8516214 - Flags: review?(matt.woodrow)
Attachment #8516214 - Flags: review?(matt.woodrow) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: