mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1114398 - Part 2: Test whether the path backend matches the DrawTarget backend for the SVG path cache. r=jwatt
This commit is contained in:
parent
b96d7eb9fd
commit
15a431139b
@ -87,7 +87,9 @@ nsSVGPathGeometryElement::GetOrBuildPath(const DrawTarget& aDrawTarget,
|
||||
// chrome). The benefit is that we avoid causing a CPU memory cache miss by
|
||||
// looking at the global variable that the pref's stored in.
|
||||
if (cacheable && mCachedPath) {
|
||||
return mCachedPath;
|
||||
if (aDrawTarget.GetBackendType() == mCachedPath->GetBackendType()) {
|
||||
return mCachedPath;
|
||||
}
|
||||
}
|
||||
RefPtr<PathBuilder> builder = aDrawTarget.CreatePathBuilder(aFillRule);
|
||||
RefPtr<Path> path = BuildPath(builder);
|
||||
|
Loading…
Reference in New Issue
Block a user