Closed
Bug 908880
Opened 11 years ago
Closed 11 years ago
Overflow rect is not updated when assigning a filter dynamically
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(3 files, 1 obsolete file)
805 bytes,
image/svg+xml
|
Details | |
3.85 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
2.03 KB,
patch
|
jwatt
:
review+
akeybl
:
approval-mozilla-beta-
|
Details | Diff | Splinter Review |
Similar to bug 879682, but with a filter that's added dynamically to an already existing element.
Assignee | ||
Updated•11 years ago
|
Attachment #794863 -
Attachment mime type: text/html → image/svg+xml
Assignee | ||
Comment 1•11 years ago
|
||
FinishAndStoreOverflow wasn't called on the frame. Sending nsChangeHint_UpdateOverflow calls it.
Attachment #794866 -
Flags: review?(jwatt)
Comment 2•11 years ago
|
||
Comment on attachment 794866 [details] [diff] [review] v1 Review of attachment 794866 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! ::: layout/style/nsStyleStruct.cpp @@ +1153,5 @@ > if (!EqualURIs(mClipPath, aOther.mClipPath) || > !EqualURIs(mMask, aOther.mMask) || > mFilters != aOther.mFilters) { > NS_UpdateHint(hint, nsChangeHint_UpdateEffects); > + NS_UpdateHint(hint, nsChangeHint_UpdateOverflow); Can you tack on: // for filters only to this new line?
Attachment #794866 -
Flags: review?(jwatt) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Sure. https://hg.mozilla.org/integration/mozilla-inbound/rev/f37447f59817
Comment 4•11 years ago
|
||
Caused assertion failures on Windows like: https://tbpl.mozilla.org/php/getParsedLog.php?id=26962547&tree=Mozilla-Inbound https://hg.mozilla.org/integration/mozilla-inbound/rev/beba6103e786
Comment 5•11 years ago
|
||
If we have a hint for filters only then it should be for filters only shouldn't it i.e. if (mFilters != aOther.mFilters) { NS_UpdateHint(hint, nsChangeHint_UpdateOverflow); } if (!EqualURIs(mClipPath, aOther.mClipPath) || !EqualURIs(mMask, aOther.mMask) || mFilters != aOther.mFilters) { NS_UpdateHint(hint, nsChangeHint_UpdateEffects); NS_UpdateHint(hint, nsChangeHint_RepaintFrame); }
Assignee | ||
Comment 6•11 years ago
|
||
I agree, I'll make that change when I land again.
Assignee | ||
Comment 7•11 years ago
|
||
The assertion is: ###!!! ASSERTION: CalcDifference() returned bigger hint than MaxDifference(): 'NS_IsHintSubset( thisSVGReset->CalcDifference(*otherSVGReset), nsStyleSVGReset::MaxDifference())', file e:/builds/moz2_slave/m-in-w32-d-0000000000000000000/build/layout/style/nsStyleContext.cpp, line 483
Comment 8•11 years ago
|
||
You need to update this line: http://mxr.mozilla.org/mozilla-central/source/layout/style/nsStyleStruct.h#2348 So that nsChangeHint_UpdateOverflow is allowed.
Assignee | ||
Comment 9•11 years ago
|
||
So it turns out that this failure was not an issue with the patch but with the build which did not recompile nsStyleContext.cpp. I filed bug 908993 on that.
Assignee | ||
Comment 10•11 years ago
|
||
New patch with the change requested in comment 5.
Attachment #794866 -
Attachment is obsolete: true
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 795025 [details] [diff] [review] v2 I'll open a new bug for this.
Attachment #795025 -
Attachment is obsolete: true
Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 794866 [details] [diff] [review] v1 This was relanded in https://hg.mozilla.org/integration/mozilla-inbound/rev/48a3aeb26ed6
Attachment #794866 -
Attachment is obsolete: false
Comment 13•11 years ago
|
||
This did land on central as part of https://hg.mozilla.org/mozilla-central/rev/48a3aeb26ed6
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Comment 15•11 years ago
|
||
Requesting approval for beta (v25) based on the fact that this fixed tracking-25+ bug 886883. This is a minimal version of the patch for this bug, plus the tweak made as a follow-up in bug 911310. [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 875037 User impact if declined: Firebug needs to keep their workaround for bug 886883. Testing completed (on m-c, etc.): baked on nightly and aurora Risk to taking this patch (and alternatives if risky): very low String or IDL/UUID changes made by this patch: none
Attachment #816870 -
Flags: review+
Attachment #816870 -
Flags: approval-mozilla-beta?
Comment 16•11 years ago
|
||
Comment on attachment 816870 [details] [diff] [review] patch for beta (v25) Sadly, too late in the cycle to take a non-critical fix.
Attachment #816870 -
Flags: approval-mozilla-beta? → approval-mozilla-beta-
You need to log in
before you can comment on or make changes to this bug.
Description
•