Closed
Bug 1208283
Opened 9 years ago
Closed 9 years ago
Remove gfxRGBA (part 2)
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 2 obsolete files)
10.39 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
18.30 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
1.49 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
9.93 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
7.25 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
A follow-up to 1207944, which started removing gfxRGBA from the tree.
![]() |
Assignee | |
Comment 1•9 years ago
|
||
Attachment #8665722 -
Flags: review?(matt.woodrow)
![]() |
Assignee | |
Comment 2•9 years ago
|
||
Attachment #8665726 -
Flags: review?(matt.woodrow)
![]() |
Assignee | |
Comment 3•9 years ago
|
||
This is a little weird, arguably, but while doing this refactoring I kept
worrying I'd type the wrong name and I went back multiple times to check, and
then I got sick of doing that and decided to make it an impossible mistake to
make.
Attachment #8665728 -
Flags: review?(matt.woodrow)
![]() |
Assignee | |
Comment 4•9 years ago
|
||
Fix the part number.
Attachment #8665732 -
Flags: review?(matt.woodrow)
![]() |
Assignee | |
Updated•9 years ago
|
Attachment #8665728 -
Attachment is obsolete: true
Attachment #8665728 -
Flags: review?(matt.woodrow)
![]() |
Assignee | |
Comment 5•9 years ago
|
||
Attachment #8665733 -
Flags: review?(matt.woodrow)
![]() |
Assignee | |
Comment 6•9 years ago
|
||
Attachment #8665735 -
Flags: review?(matt.woodrow)
![]() |
Assignee | |
Comment 7•9 years ago
|
||
Attachment #8665736 -
Flags: review?(matt.woodrow)
![]() |
||
Comment 8•9 years ago
|
||
I'm going to take these reviews as well, since Matt's timezone means he's now into his weekend and I'd like to keep this moving while you're churning out patches. Hope no one minds.
![]() |
||
Comment 9•9 years ago
|
||
Comment on attachment 8665732 [details] [diff] [review]
(part 3) - Rename Color::{To,From}ARGB() so they aren't easily confused with {To,From}ABGR()
Redirecting to Bas, since this concerns Moz2D API.
Attachment #8665732 -
Flags: review?(matt.woodrow) → review?(bas)
![]() |
||
Comment 10•9 years ago
|
||
Comment on attachment 8665722 [details] [diff] [review]
(part 1) - Change gfxPattern's single-arg constructor to take a gfx::Color& instead of a gfxRGBA&
Review of attachment 8665722 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/thebes/gfxSVGGlyphs.cpp
@@ +39,5 @@
> typedef mozilla::dom::Element Element;
>
> mozilla::gfx::UserDataKey gfxTextContextPaint::sUserDataKey;
>
> +/* static */ const Color SimpleTextContextPaint::sZero = Color();
Boo for the implicit defaults. ;)
::: layout/svg/nsSVGGradientFrame.cpp
@@ +234,5 @@
>
> // SVG specification says that no stops should be treated like
> // the corresponding fill or stroke had "none" specified.
> if (nStops == 0) {
> + nsRefPtr<gfxPattern> pattern = new gfxPattern(gfx::Color());
Layout code generally uses mozilla:gfx in .cpp files. Add another 'using' statement at the top of this file so you don't need the gfx prefix.
@@ +244,5 @@
> // gradient step if there are more than one.
> float stopOpacity = stopFrames[nStops-1]->StyleSVGReset()->mStopOpacity;
> nscolor stopColor = stopFrames[nStops-1]->StyleSVGReset()->mStopColor;
>
> + gfx::Color stopColor2 = gfx::Color::FromABGR(stopColor);
Here too.
@@ +299,5 @@
> offset = lastOffset;
> else
> lastOffset = offset;
>
> + gfx::Color stopColor2 = gfx::Color::FromABGR(stopColor);
And here.
Attachment #8665722 -
Flags: review?(matt.woodrow) → review+
![]() |
||
Updated•9 years ago
|
Attachment #8665726 -
Flags: review?(matt.woodrow) → review+
![]() |
||
Updated•9 years ago
|
Attachment #8665733 -
Flags: review?(matt.woodrow) → review+
![]() |
||
Updated•9 years ago
|
Attachment #8665735 -
Flags: review?(matt.woodrow) → review+
![]() |
||
Updated•9 years ago
|
Attachment #8665736 -
Flags: review?(matt.woodrow) → review+
![]() |
Assignee | |
Comment 11•9 years ago
|
||
> I'm going to take these reviews as well... Hope no one minds.
Nope! Thank you.
Comment 12•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8fbfb98cba6b
https://hg.mozilla.org/integration/mozilla-inbound/rev/daf573ce289f
https://hg.mozilla.org/integration/mozilla-inbound/rev/1795954013f5
https://hg.mozilla.org/integration/mozilla-inbound/rev/715b6528b7aa
https://hg.mozilla.org/integration/mozilla-inbound/rev/02072bae0239
![]() |
Assignee | |
Updated•9 years ago
|
Attachment #8665732 -
Attachment is obsolete: true
Attachment #8665732 -
Flags: review?(bas)
![]() |
Assignee | |
Comment 13•9 years ago
|
||
> (part 2) - Change ColorLayer::mColor, ColorLayerProperties::mColor,
> ReadbackLayer::mBackgroundColor from gfxRBGA to gfx::Color
I landed all the patches except this one, which I spun off into bug 1208945, because it's something of a tangent to the other patches.
Comment 14•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8fbfb98cba6b
https://hg.mozilla.org/mozilla-central/rev/daf573ce289f
https://hg.mozilla.org/mozilla-central/rev/1795954013f5
https://hg.mozilla.org/mozilla-central/rev/715b6528b7aa
https://hg.mozilla.org/mozilla-central/rev/02072bae0239
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•