Closed
Bug 707960
Opened 14 years ago
Closed 13 years ago
Resolve covered region hack introduced in bug 614732
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(1 file)
7.38 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
The covered region hack introduced in bug 614732 should be eliminated to avoid doing extra work. See bug 614732 comment 32 option #1.
![]() |
Assignee | |
Comment 1•14 years ago
|
||
More specifically the patch from bug 614732 comment 35 should be removed when bug 539356 is fixed.
Depends on: dlbi
![]() |
Assignee | |
Updated•13 years ago
|
![]() |
Assignee | |
Comment 2•13 years ago
|
||
Once bug 767823 is fixed, the only GetCoveredRegion caller is BoxToRect::AddBox(), via nsSVGUtils::GetOuterSVGFrameAndCoveredRegion, which is called under getBoundingClientRect/getClientRects. At that point it doesn't seem like it's worth having mCoveredRegion members on SVG leaf frames. For now we probably want to keep the GetCoveredRegion methods until we can figure out if we're going to break much content by changing them to use visual overflow rects. But I think we want getBoundingClientRect/getClientRects to act more like getBBox, in that the information is calculated on demand, rather than calculated just in case and cached the frames. This patch makes that so.
Comment 3•13 years ago
|
||
Comment on attachment 636181 [details] [diff] [review]
patch
> nsSVGForeignObjectFrame::GetCoveredRegion()
...
>+ // GetCanvasTM includes the x,y translation
>+ return nsSVGUtils::TransformFrameRectToOuterSVG(gfxRect(0.0, 0.0, w, h, GetCanvasTM(), PresContext());
Nit: wrap line somewhere. Other instances are already wrapped.
Attachment #636181 -
Flags: review?(longsonr) → review+
![]() |
Assignee | |
Comment 4•13 years ago
|
||
Target Milestone: --- → mozilla17
Comment 5•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•