Closed Bug 1065344 Opened 10 years ago Closed 10 years ago

Some nsFilterInstance cleanup

Categories

(Core :: SVG, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: mstange, Assigned: mstange)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

No description provided.
Not really related to this bug, but preparatory cleanup.
Attachment #8487132 - Flags: review?(mvujovic)
Attachment #8487134 - Flags: review?(mvujovic)
I missed this during review: nsPresContext::AppUnitsPerCSSPixel() is a static method and always returns 60, we don't need to store the result.
Attachment #8487136 - Flags: review?(mvujovic)
Comment on attachment 8487132 [details] [diff] [review] part 1: mUserSpaceBounds shouldn't change its meaning temporarily Review of attachment 8487132 [details] [diff] [review]: ----------------------------------------------------------------- Looks better! ::: layout/svg/nsSVGFilterInstance.cpp @@ +104,5 @@ > // The filter region is way too big if there is float -> int overflow. > return NS_ERROR_FAILURE; > } > > // Undo the temporary transformation of the user space bounds. This comment mentions the "temporary transformation" we're not doing anymore. I would either remove it, change it to "Set the user space bounds based on the rounded-out filter space bounds.", or something else.
Attachment #8487132 - Flags: review?(mvujovic) → review+
Comment on attachment 8487134 [details] [diff] [review] part 2: Only construct FilterDescription once Review of attachment 8487134 [details] [diff] [review]: ----------------------------------------------------------------- Nice!
Attachment #8487134 - Flags: review?(mvujovic) → review+
Attachment #8487136 - Flags: review?(mvujovic) → review+
Actually, let's cut this bug here, I'll file a new bug for the rest. Thanks for the quick reviews!
Summary: Prepare nsFilterInstance for frame-less filter rendering → Some nsFilterInstance cleanup
Flags: qe-verify-
Blocks: 1152918
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: