48fb05b81c
Two issues: 1) we are currently computing object bounding boxes using the RenderContext of the client resource, which can override presentation attributes -> introduce an OBBScope to capture not just the current OBB node but also its original RenderContext 2) text fragments must use the root <text> bounding box for OBB-relative units [1] -> update SkSVGTextFragment::renderText to not override the current OBBScope; this ensures we're using the root element scope for the whole text subtree [1] https://www.w3.org/TR/SVG11/text.html#ObjectBoundingBoxUnitsTextObjects Bug: skia:11936 Change-Id: Ib48ccd3dc22639de42ea150b881a26dda72fa4bf Reviewed-on: https://skia-review.googlesource.com/c/skia/+/403037 Commit-Queue: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@google.com> Reviewed-by: Tyler Denniston <tdenniston@google.com> |
||
---|---|---|
animations | ||
bazel | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
client_utils/android | ||
demos.skia.org | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.bazelignore | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.bazel | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
DIR_METADATA | ||
go.mod | ||
go.sum | ||
LICENSE | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt | ||
WORKSPACE.bazel |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.