Closed
Bug 1158122
Opened 10 years ago
Closed 10 years ago
Remove all occurrences of the gfxIntRect and nsIntRect typedefs in gfx code, replace them by gfx::IntRect
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: nical, Assigned: u538282, Mentored)
References
Details
Attachments
(9 files)
20.21 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
803 bytes,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
3.43 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
5.19 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
27.34 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
32.17 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
32.33 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
44.98 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
30.99 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
Now that gfxIntRect and nsIntRect are typedefs of gfx::IntRect and not separate classes, we can remove all of their occurrences in graphics code (anything under the gfx/ directory). This is purely a cosmetic change, perfect for someone who would like to understand the workflow of submitting contributions before tackling a real bug or feature. grep -r nsIntRect gfx/ grep -r gfxIntRect gfx/ and manually replace them by gfx::IntRect in code that is under the mozilla namespace, IntRect for code under mozilla::gfx or .cpp files with "using namespace mozilla::gfx;" or mozilla::gfx::IntRect for the few headers with no namespaces. Let's leave out the code outside of gfx/ for now to let each module owner decide if, how and/or when to deal with updating the rect classes/typedefs.
What would be the best for this bug: a patch for the entire correction or several patches, one for each subdirectory of gfx/ for example?
Reporter | ||
Comment 2•10 years ago
|
||
(In reply to thibaud.backenstrass from comment #1) > What would be the best for this bug: a patch for the entire correction or > several patches, one for each subdirectory of gfx/ for example? Several patches would be best.
This patch replaces around 45 of the 386 occurences of nsIntRect, all located in subdirectory gfx/src/. Rebuild completed with no errors.
Attachment #8602117 -
Flags: review?(nical.bugzilla)
Reporter | ||
Updated•10 years ago
|
Attachment #8602117 -
Flags: review?(nical.bugzilla) → review+
Reporter | ||
Updated•10 years ago
|
Whiteboard: [leave-open]
Removes all occurences of nsIntRect in gfx/ipc/ Build successful Complete patch 8602117
Attachment #8602252 -
Flags: review?(nical.bugzilla)
Removes all occurences of nsIntRect in gfx/gl/ Build successful Complete patches 8602117 & 8602252
Attachment #8602256 -
Flags: review?(nical.bugzilla)
Removes all occurences of nsIntRect in gfx/thebes/ Build successful Complete patches 8602117, 8602252 & 8602256
Attachment #8602258 -
Flags: review?(nical.bugzilla)
Removes all occurences of nsIntRect in gfx/layers/basic/, gfx/layers/d3d9/, gfx/layers/d3d11 and related files : - gfx/layers/D3D11ShareHandleImage.h, - gfx/layers/D3D9SurfaceImage.cpp, - gfx/layers/D3D9SurfaceImage.h. Build successful Complete patches 8602117, 8602252, 8602256 & 8602258
Attachment #8602268 -
Flags: review?(nical.bugzilla)
Removes all occurences of nsIntRect in gfx/layers/composite/ Build successful Complete patches 8602117, 8602252, 8602256, 8602258 & 8602268
Attachment #8602273 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 10•10 years ago
|
||
Removes all occurences of nsIntRect in gfx/layers/client/ Build successful, but after editing the patch file manually (please verify it carefully, I can do another one if there is a problem!) Complete patches 8602117, 8602252, 8602256, 8602258, 8602268 & 8602273
Attachment #8602520 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 11•10 years ago
|
||
Removes all remaining occurences of nsIntRect in gfx/layers/ (mostly gfx/layers/*.h and gfx/layers/*.cpp files) Build successful Complete patches 8602117, 8602252, 8602256, 8602258, 8602268, 8602273 & 8602520
Attachment #8602522 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 12•10 years ago
|
||
Removes most occurences of nsIntRect in gfx/tests/ Build successful, but after editing the patch file manually (please verify it carefully, I can do another one if there is a problem!) Complete patches 8602117, 8602252, 8602256, 8602258, 8602268, 8602273, 8602520 & 8602522 It seems that I cannot change the lines 432 to 439 in https://hg.mozilla.org/integration/mozilla-inbound/file/27bd818ba469/gfx/tests/gtest/TestRect.cpp#l432 without having a build failure, so I didn't modified them.
Attachment #8602526 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 13•10 years ago
|
||
My 9 patches above removed nearly all occurences of nsIntRect in gfx/ : - the typedef in https://hg.mozilla.org/integration/mozilla-inbound/file/27bd818ba469/gfx/src/nsRect.h#l26 has not been removed since it is used in other directories than gfx/, - the lines https://hg.mozilla.org/integration/mozilla-inbound/file/27bd818ba469/gfx/tests/gtest/TestRect.cpp#l432 remained unchanged because it seems to cause trouble.
Reporter | ||
Updated•10 years ago
|
Attachment #8602252 -
Flags: review?(nical.bugzilla) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8602256 -
Flags: review?(nical.bugzilla) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8602258 -
Flags: review?(nical.bugzilla) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8602268 -
Flags: review?(nical.bugzilla) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8602273 -
Flags: review?(nical.bugzilla) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8602520 -
Flags: review?(nical.bugzilla) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8602522 -
Flags: review?(nical.bugzilla) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8602526 -
Flags: review?(nical.bugzilla) → review+
Comment 14•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f3bc38042efe https://hg.mozilla.org/integration/mozilla-inbound/rev/2ccef0dba530 https://hg.mozilla.org/integration/mozilla-inbound/rev/0124362f1d0d https://hg.mozilla.org/integration/mozilla-inbound/rev/8fe012b57499 https://hg.mozilla.org/integration/mozilla-inbound/rev/31f9997fd7b0 https://hg.mozilla.org/integration/mozilla-inbound/rev/0b36252183e6 https://hg.mozilla.org/integration/mozilla-inbound/rev/285ba2b18e50 https://hg.mozilla.org/integration/mozilla-inbound/rev/81b2c07f94ef
Reporter | ||
Updated•10 years ago
|
Whiteboard: [leave-open]
Reporter | ||
Updated•10 years ago
|
Assignee: nobody → thibaud.backenstrass
Comment 15•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/76becfa04f43
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
https://hg.mozilla.org/mozilla-central/rev/f3bc38042efe https://hg.mozilla.org/mozilla-central/rev/2ccef0dba530 https://hg.mozilla.org/mozilla-central/rev/0124362f1d0d https://hg.mozilla.org/mozilla-central/rev/8fe012b57499 https://hg.mozilla.org/mozilla-central/rev/31f9997fd7b0 https://hg.mozilla.org/mozilla-central/rev/0b36252183e6 https://hg.mozilla.org/mozilla-central/rev/285ba2b18e50 https://hg.mozilla.org/mozilla-central/rev/81b2c07f94ef
Comment 17•10 years ago
|
||
In the future, if you have more of these renames coming, please advise stability@m.o to be on the lookout, because these patches dramatically change crash signatures.
You need to log in
before you can comment on or make changes to this bug.
Description
•