Closed
Bug 1093066
Opened 10 years ago
Closed 10 years ago
Get rid of gfxContext's Stroke() methods
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: jwatt, Assigned: jwatt)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
6.89 KB,
patch
|
mattwoodrow
:
review+
jwatt
:
checkin+
|
Details | Diff | Splinter Review |
No description provided.
![]() |
Assignee | |
Comment 1•10 years ago
|
||
Attachment #8515966 -
Flags: review?(matt.woodrow)
Comment 2•10 years ago
|
||
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 3•10 years ago
|
||
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?
![]() |
Assignee | |
Comment 4•10 years ago
|
||
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)
Updated•10 years ago
|
Attachment #8516214 -
Flags: review?(matt.woodrow) → review+
![]() |
Assignee | |
Comment 5•10 years ago
|
||
Comment on attachment 8516214 [details] [diff] [review]
patch
https://hg.mozilla.org/integration/mozilla-inbound/rev/d960256cdb80
Attachment #8516214 -
Flags: checkin+
Comment 6•10 years ago
|
||
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.
Description
•