Closed Bug 1342302 Opened 9 years ago Closed 9 years ago

Fine tune nsCSSRendering::PaintStyleImageLayerWithSC & SetupImageLayerClip

Categories

(Core :: Web Painting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: u459114, Assigned: u459114)

References

Details

Attachments

(4 files)

Reduce the complexity inside this funciton
1. ImageLayerClipState::mHasRoundedCorners can be true only if ImageLayerClipState::mClippedRadii is not empty 2. The last parameter of SetupImageLayerClip is verbose.
Summary: Fine tune nsCSSRendering::PaintStyleImageLayerWithSC → Fine tune nsCSSRendering::PaintStyleImageLayerWithSC & SetupImageLayerClip
Attachment #8840777 - Flags: review?(mstange)
Attachment #8840778 - Flags: review?(mstange)
Attachment #8840779 - Flags: review?(mstange)
Attachment #8840780 - Flags: review?(mstange)
Attachment #8840777 - Flags: review?(mstange) → review+
Comment on attachment 8840778 [details] Bug 1342302 - Part 2. Implement ImageLayerClipState::IsValid. https://reviewboard.mozilla.org/r/115206/#review116760
Attachment #8840778 - Flags: review?(mstange) → review+
Comment on attachment 8840779 [details] Bug 1342302 - Part 3. Rename ImageLayerClipState::mDirtyRectGfx to mDirtyRectInDevPx. https://reviewboard.mozilla.org/r/115208/#review116764 ::: layout/painting/nsCSSRendering.h:582 (Diff revision 3) > - nsRect mDirtyRect; > - gfxRect mDirtyRectGfx; > + nsRect mDirtyRectInAppUnit; > + gfxRect mDirtyRectInDevUnit; I would prefer the names mDirtyRectInAppUnits and mDirtyRectInDevPx.
Attachment #8840779 - Flags: review?(mstange) → review+
Comment on attachment 8840780 [details] Bug 1342302 - Part 4. Fine tune nsCSSRendering::PaintStyleImageLayerWithSC. https://reviewboard.mozilla.org/r/115210/#review116864
Attachment #8840780 - Flags: review?(mstange) → review+
Pushed by cku@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14fd552c865b Part 1. Implement RectCornerRadii::IsEmpty. r=mstange https://hg.mozilla.org/integration/autoland/rev/f4ac43e3f67d Part 2. Implement ImageLayerClipState::IsValid. r=mstange https://hg.mozilla.org/integration/autoland/rev/a1deec7b451a Part 3. Rename ImageLayerClipState::mDirtyRectGfx to mDirtyRectInDevPx. r=mstange https://hg.mozilla.org/integration/autoland/rev/1b8511b2ca4c Part 4. Fine tune nsCSSRendering::PaintStyleImageLayerWithSC. r=mstange
Blocks: 1373750
No longer blocks: 1373750
Depends on: 1373750
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: