Closed
Bug 797106
Opened 13 years ago
Closed 13 years ago
don't use PR_BYTES_PER_WORD in nsTextFormatter*.cpp
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: froydnj, Assigned: froydnj)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
4.32 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
This is easily addressed with some template magic.
![]() |
Assignee | |
Comment 1•13 years ago
|
||
Attachment #667150 -
Flags: review?(ehsan)
Comment 2•13 years ago
|
||
Comment on attachment 667150 [details] [diff] [review]
patch
Review of attachment 667150 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great!
::: content/base/src/nsTextFragmentImpl.h
@@ +3,5 @@
> + * License, v. 2.0. If a copy of the MPL was not distributed with this
> + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
> +
> +#ifndef nsTextFragmentImpl_h__
> +#define nsTextFragmentImpl_h__
Nit: please include mozilla/StandardInteger.h here.
Attachment #667150 -
Flags: review?(ehsan) → review+
![]() |
Assignee | |
Comment 3•13 years ago
|
||
Assignee: nobody → nfroyd
Status: NEW → ASSIGNED
Comment 4•13 years ago
|
||
I had to back this out as part of a weird reftest breakage on 64-bit platforms:
https://hg.mozilla.org/integration/mozilla-inbound/rev/402e2cf6602d
Example failure log: https://tbpl.mozilla.org/php/getParsedLog.php?id=15760281&tree=Mozilla-Inbound
Comment 5•13 years ago
|
||
Comment on attachment 667150 [details] [diff] [review]
patch
Review of attachment 667150 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/base/src/nsTextFragmentImpl.h
@@ +13,5 @@
> + static const uint32_t numUnicharsPerWord = 2;
> +};
> +
> +template<> struct Non8BitParameters<8> {
> + static const size_t mask = 0xff00ff00ff00ff0;
Missing 0 at the end here
![]() |
Assignee | |
Comment 6•13 years ago
|
||
(In reply to :Ms2ger from comment #5)
> ::: content/base/src/nsTextFragmentImpl.h
> @@ +13,5 @@
> > + static const uint32_t numUnicharsPerWord = 2;
> > +};
> > +
> > +template<> struct Non8BitParameters<8> {
> > + static const size_t mask = 0xff00ff00ff00ff0;
>
> Missing 0 at the end here
Doh, thanks.
I also changed my templates to use static inline functions; Talos whined at me about increasing the number of constructors on my last push. I didn't see the constructors compiling locally and I have a hard time understanding how the other changes in that push could have caused problems...
https://hg.mozilla.org/integration/mozilla-inbound/rev/28da4bd92b92
Comment 7•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in
before you can comment on or make changes to this bug.
Description
•