Open Bug 913868 Opened 11 years ago Updated 2 years ago

nsCoord.h is a hub header

Categories

(Core :: Graphics, defect)

defect

Tracking

()

People

(Reporter: bjacob, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached patch Trim nsCoordSplinter 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 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.
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?
Good questions. I started a thread on dev-platform: "Including <algorithm> just to get std::min and std::max"
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-
Blocks: includehell
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: