Closed
Bug 931915
Opened 12 years ago
Closed 12 years ago
Add an AppendRoundedRectToPath helper to Moz2D, then make gfxContext::RoundedRectangle use it
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: jwatt, Assigned: jwatt)
References
(Blocks 1 open bug)
Details
(Whiteboard: [qa-])
Attachments
(2 files)
|
8.18 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
|
3.64 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
This code is cribbed from gfxContext::RoundedRectangle, but hacked up a fair bit to get rid of the dependencies on Mozilla code that Moz2D doesn't want to have.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #823449 -
Flags: review?(bas)
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #823670 -
Flags: review?
| Assignee | ||
Updated•12 years ago
|
Summary: Add an AppendRoundedRectToPath helper to Moz2D → Add an AppendRoundedRectToPath helper to Moz2D, then make gfxContext::RoundedRectangle use it
| Assignee | ||
Updated•12 years ago
|
Attachment #823670 -
Flags: review? → review?(bas)
| Assignee | ||
Comment 3•12 years ago
|
||
Bas, any idea why WinXP is failing to link this?
https://tbpl.mozilla.org/php/getParsedLog.php?id=29825670&tree=Try&full=1#error0
| Assignee | ||
Comment 4•12 years ago
|
||
I tried changing the aCornerRadii type to |const Size*|, but that doesn't help. Still getting:
gfxContext.obj : error LNK2019: unresolved external symbol "void __cdecl mozilla::gfx::AppendRoundedRectToPath(class mozilla::gfx::PathBuilder *,struct mozilla::gfx::RectTyped<struct mozilla::gfx::UnknownUnits> const &,struct mozilla::gfx::SizeTyped<struct mozilla::gfx::UnknownUnits> const *,bool)" (?AppendRoundedRectToPath@gfx@mozilla@@YAXPAVPathBuilder@12@ABU?$RectTyped@UUnknownUnits@gfx@mozilla@@@12@PBU?$SizeTyped@UUnknownUnits@gfx@mozilla@@@12@_N@Z) referenced in function "public: void __thiscall gfxContext::RoundedRectangle(struct gfxRect const &,struct gfxCornerSizes const &,bool)" (?RoundedRectangle@gfxContext@@QAEXABUgfxRect@@ABUgfxCornerSizes@@_N@Z)
http://pear.warosu.org/c++filtjs/ says that the missing symbol demangles to:
void __cdecl mozilla::gfx::AppendRoundedRectToPath(class mozilla::gfx::PathBuilder *,struct mozilla::gfx::RectTyped const &,struct mozilla::gfx::SizeTyped const *,bool)
when it should be:
void __cdecl mozilla::gfx::AppendRoundedRectToPath(class mozilla::gfx::PathBuilder *,struct mozilla::gfx::RectTyped<struct mozilla::gfx::UnknownUnits> const &,struct mozilla::gfx::SizeTyped<struct mozilla::gfx::UnknownUnits> const *,bool)
Bas, any idea what's happening to the "<struct mozilla::gfx::UnknownUnits>" part that's missing off the second and third args on XP?
Updated•12 years ago
|
Attachment #823449 -
Flags: review?(bas) → review+
Updated•12 years ago
|
Attachment #823670 -
Flags: review?(bas) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Sadly had to backout this push due to failures linking on Windows:
https://tbpl.mozilla.org/php/getParsedLog.php?id=29971575&tree=Mozilla-Inbound
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/c4f51fe7d637
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/a750c58e428e
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/9189b08d7d5e
| Assignee | ||
Comment 7•12 years ago
|
||
Gah, the Try push showed it failing to link on the reference from content in a future patch that builds on this, not on the reference from inside its own library! XP sucks.
Thanks, Ed.
| Assignee | ||
Comment 8•12 years ago
|
||
| Assignee | ||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f9b22be50b69
https://hg.mozilla.org/mozilla-central/rev/425e452372a2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•12 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•