WebKit Bugzilla
Attachment 371925 Details for
Bug 198779
: [cairo][SVG] If clipPath has multiple elements, clip-path coordinate system is wrongly scaled in high DPI
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
WIP patch
wip.diff (text/plain), 926 bytes, created by
Fujii Hironori
on 2019-06-11 21:49:43 PDT
(
hide
)
Description:
WIP patch
Filename:
MIME Type:
Creator:
Fujii Hironori
Created:
2019-06-11 21:49:43 PDT
Size:
926 bytes
patch
obsolete
>diff --git a/Source/WebCore/platform/graphics/cairo/PlatformContextCairo.cpp b/Source/WebCore/platform/graphics/cairo/PlatformContextCairo.cpp >index 7f242fdbecb..969875bc199 100644 >--- a/Source/WebCore/platform/graphics/cairo/PlatformContextCairo.cpp >+++ b/Source/WebCore/platform/graphics/cairo/PlatformContextCairo.cpp >@@ -80,7 +80,12 @@ void PlatformContextCairo::restore() > if (maskInformation.isValid()) { > const FloatRect& maskRect = maskInformation.maskRect(); > cairo_pop_group_to_source(m_cr.get()); >+ // Reset the current matrix because the mask surface doesn't have a matrix. >+ cairo_matrix_t matrix; >+ cairo_get_matrix(m_cr.get(), &matrix); >+ cairo_identity_matrix(m_cr.get()); > cairo_mask_surface(m_cr.get(), maskInformation.maskSurface(), maskRect.x(), maskRect.y()); >+ cairo_set_matrix(m_cr.get(), &matrix); > } > > m_stateStack.removeLast();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 198779
:
371919
|
371920
| 371925