Open
Bug 913868
Opened 11 years ago
Updated 2 years ago
nsCoord.h is a hub header
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
NEW
People
(Reporter: bjacob, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
4.61 KB,
patch
|
jrmuizel
:
review-
|
Details | Diff | Splinter Review |
A hub header is one that is included by many other headers, and itself includes many other headers. See tracking bug 912735.
Attachment #801166 -
Flags: review?(jmuizelaar)
Comment 1•11 years ago
|
||
Comment on attachment 801166 [details] [diff] [review] Trim nsCoord Review of attachment 801166 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/src/nsCoord.h @@ +23,1 @@ > I'm not thrilled with this approach, at the same time I can appreciate its value. Perhaps you can convince me more.
Comment 2•11 years ago
|
||
It seems there are a lot of files which pull in algorithm and/or cmath just for min/max (or floor/ceil in some cases). Could we create an mfbt header with these simple functions and use that rather than defining them again and again in various header files?
Reporter | ||
Comment 3•11 years ago
|
||
Good questions. I started a thread on dev-platform: "Including <algorithm> just to get std::min and std::max"
Comment 4•11 years ago
|
||
Comment on attachment 801166 [details] [diff] [review] Trim nsCoord Based on the discussion on dev-platform it sounds like this is not a good approach.
Attachment #801166 -
Flags: review?(jmuizelaar) → review-
Updated•11 years ago
|
Blocks: includehell
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•