Closed
Bug 1168245
Opened 9 years ago
Closed 9 years ago
Remove seemingly nonsensical code from nsDisplayTransform::GetDeltaToTransformOrigin
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: jwatt, Assigned: jwatt)
Details
Attachments
(1 file)
1.29 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
Removing this code doesn't cause anything to fail on Try. Note that this section of code used to be unconditional before bug 923193, part 1, but I realized in that bug that nsDisplayTransform::GetFrameBoundsForTransform (now TransformReferenceBox::EnsureDimensionsAreCached) always returns a rect with zero offset. Therefore this bit of code could/can only have an effect if aBoundsOverride is non-null. I can't actually see a way in which aBoundsOverride can end up with non-zero offset either though. For example, when nsDisplayTransform::TransformRect passes in an override bounds it sets the offset of the 'newBounds' object that is passes to {0,0}. Perhaps this code is in some way related to UNIFIED_CONTINUATIONS, but the UNIFIED_CONTINUATIONS code has never worked. Rather than have this mysterious bit of code left here I think we should remove (it unless someone can explain it). If something break as a result of removing it, we can add it back with a nice explanatory comment this time!
Attachment #8610305 -
Flags: review?(matt.woodrow)
Comment 2•9 years ago
|
||
Comment on attachment 8610305 [details] [diff] [review] patch Review of attachment 8610305 [details] [diff] [review]: ----------------------------------------------------------------- Let's give it a shot!
Attachment #8610305 -
Flags: review?(matt.woodrow) → review+
Assignee | ||
Updated•9 years ago
|
Summary: Remove broken code from nsDisplayTransform::GetDeltaToTransformOrigin → Remove seemingly nonsensical code from nsDisplayTransform::GetDeltaToTransformOrigin
https://hg.mozilla.org/mozilla-central/rev/3c9ee60d1ca5
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•