Closed
Bug 280214
Opened 20 years ago
Closed 20 years ago
[FIX]views don't get updated with SVG generated in XUL documents
Categories
(Core :: SVG, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla1.8beta1
People
(Reporter: mpk, Assigned: bzbarsky)
References
Details
(Keywords: regression, testcase)
Attachments
(4 files)
1.56 KB,
application/vnd.mozilla.xul+xml
|
Details | |
1.13 KB,
patch
|
alex
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
1.54 KB,
application/vnd.mozilla.xul+xml
|
Details | |
1.08 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
I suspect the fix for bug #244366 to be the cause for this regression. Builds
with sources checked out using "-D 2005-01-19 19:38:00 PST" were okay wheras the
ones using "-D 2005-01-19 19:40:00 PST" were not.
Other platforms (especially Linux) may be affected as well, but I don't have any
systems to test with right now. I'll attach a simple testcase shortly to
demonstrate the problem.
Reporter | ||
Comment 1•20 years ago
|
||
Changing the svg checkbox rebuilds the content (either xhtml or svg) from
scratch, thereby replacing all the former elements. The second checkbox
controls whether the svg root element should be inserted into the document
right after creation or just after it gets some children first. On my
svg-enabled (libart) firefox builds this results in either one faulty behavior
(no content at all) or another (both xhtml and svg are displayed) when svg is
checked. Deactivation of svg works as it should. svgRootElement.forceRedraw()
is always performed at the end of the initialization, but doesn't have any
visible effects until you perform it manually. I tried to reproduce this bug
with an XHTML host document instead of a XUL document. This ran fine however...
Assignee | ||
Comment 2•20 years ago
|
||
I don't see how forceRedraw() ever worked.... it's just calling the wrong function.
Over to SVG, ccing some SVG folks in case they know why it was done this way.
Assignee: roc → general
Component: Layout: View Rendering → SVG
Assignee | ||
Comment 3•20 years ago
|
||
Assignee: general → bzbarsky
Status: NEW → ASSIGNED
Attachment #172726 -
Flags: superreview?(roc)
Attachment #172726 -
Flags: review?(alex)
Assignee | ||
Updated•20 years ago
|
Priority: -- → P1
Summary: views don't get updated with SVG generated in XUL documents → [FIX]views don't get updated with SVG generated in XUL documents
Target Milestone: --- → mozilla1.8beta
Updated•20 years ago
|
Attachment #172726 -
Flags: review?(alex) → review+
Assignee | ||
Comment 4•20 years ago
|
||
Though let me see if I understand it correctly. The patch fixes the testcase
as-is, with the forceRedraw() call after the DOM has been modified.
If I remove that forceRedraw() call, then even in a build with my patch I see
drawing problems. I assume that's also incorrect, right? ;)
Reporter | ||
Comment 5•20 years ago
|
||
Well, I put a forceRedraw() call at the end of the script to make sure that the
svg content was up to date. This led me to believe that this bug would belong to
layout rather than svg. The original script didn't have that.
And yes, it would be more than just great if the reflows would take place
without having to force redraws. ;-)
I could put the original code on a publicly accessible web server if requested.
Assignee | ||
Comment 6•20 years ago
|
||
So in brief, the SVG code is pretty evil. It disables painting for the entire
viewmanager tree when an outer SVGFrame is created, and only reenables it when
it's reflow (from inside reflow!), via Begin/EndUpdateViewBatch.
It also uses Begin/EndUpdateViewBatch to implement the disable/enableRefresh()
DOM methods on SVG nodes.
I've filed bug 280363 on making SVG not misuse the viewmanager api or changing
the viewmanager api to allow the model that SVG seems to be expecting.
Attachment #172823 -
Flags: superreview?(roc)
Attachment #172823 -
Flags: review?(roc)
Attachment #172823 -
Flags: superreview?(roc)
Attachment #172823 -
Flags: superreview+
Attachment #172823 -
Flags: review?(roc)
Attachment #172823 -
Flags: review+
Attachment #172726 -
Flags: superreview?(roc) → superreview+
Assignee | ||
Comment 7•20 years ago
|
||
Both patches checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•