Open
Bug 1395976
Opened 8 years ago
Updated 3 years ago
Add more test cases in test_bbox-changes.xhtml
Categories
(Core :: SVG, enhancement, P3)
Core
SVG
Tracking
()
NEW
Tracking | Status | |
---|---|---|
firefox57 | --- | wontfix |
People
(Reporter: u459114, Unassigned)
References
Details
In bug 1361639, I change some logic in SVGTransformableElement::GetBBox to get correct bbox of an use element. Bug 1395873 was filed so I know that change cause some dead code.
I should also add more test cases in test_bbox-changes.xhtml to catch this mistake.
if (flags == nsSVGUtils::eBBoxIncludeMarkers ||
flags == nsSVGUtils::eBBoxIncludeClipped) {
flags |= nsSVGUtils::eBBoxIncludeFill;
}
The change in bug 1361639 will miss including eBBoxIncludeFill when the caller pass simple SVGBoundingBoxOptions::markers or SVGBoundingBoxOptions::clipped flag.
I think it should be better to comment what is the difference between "nsSVGUtils::eBBoxIncludeFill" and "nsSVGUtils::eBBoxIncludeFillGeometry", since I can not really understand it before reading a comment at [1]. (maybe copy concept from [1]?)
[1] https://hg.mozilla.org/mozilla-central/file/52d586efd12e/layout/svg/SVGGeometryFrame.cpp#l400
Updated•8 years ago
|
Priority: -- → P3
Updated•8 years ago
|
status-firefox57:
--- → wontfix
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•