Title: [290324] trunk/Source/WebCore
- Revision
- 290324
- Author
- [email protected]
- Date
- 2022-02-22 11:34:17 -0800 (Tue, 22 Feb 2022)
Log Message
[LBSE] Activate LBSE for <rect> painting
https://bugs.webkit.org/show_bug.cgi?id=236194
Reviewed by Rob Buis.
Finally activate LBSE for <rect> elements -- painting <rect> elements
now works as expected in LBSE. Try using MiniBrowser and switch
from legacy engine to LBSE and back -- this now works just fine and
rebuilds the render tree / updates display.
Covered by existing tests, no change in behaviour.
* rendering/svg/SVGRenderTreeAsText.cpp:
(WebCore::writeStyle):
(WebCore::writeChildren):
* svg/SVGRectElement.cpp:
(WebCore::SVGRectElement::createElementRenderer):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (290323 => 290324)
--- trunk/Source/WebCore/ChangeLog 2022-02-22 19:31:32 UTC (rev 290323)
+++ trunk/Source/WebCore/ChangeLog 2022-02-22 19:34:17 UTC (rev 290324)
@@ -1,3 +1,23 @@
+2022-02-22 Nikolas Zimmermann <[email protected]>
+
+ [LBSE] Activate LBSE for <rect> painting
+ https://bugs.webkit.org/show_bug.cgi?id=236194
+
+ Reviewed by Rob Buis.
+
+ Finally activate LBSE for <rect> elements -- painting <rect> elements
+ now works as expected in LBSE. Try using MiniBrowser and switch
+ from legacy engine to LBSE and back -- this now works just fine and
+ rebuilds the render tree / updates display.
+
+ Covered by existing tests, no change in behaviour.
+
+ * rendering/svg/SVGRenderTreeAsText.cpp:
+ (WebCore::writeStyle):
+ (WebCore::writeChildren):
+ * svg/SVGRectElement.cpp:
+ (WebCore::SVGRectElement::createElementRenderer):
+
2022-02-22 Philippe Normand <[email protected]>
[GStreamer] Initial MediaRecorder implementation
Modified: trunk/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp (290323 => 290324)
--- trunk/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp 2022-02-22 19:31:32 UTC (rev 290323)
+++ trunk/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp 2022-02-22 19:34:17 UTC (rev 290324)
@@ -244,7 +244,7 @@
}
#if ENABLE(LAYER_BASED_SVG_ENGINE)
- else if (is<LegacyRenderSVGShape>(renderer)) {
+ else if (is<RenderSVGShape>(renderer)) {
const auto& shape = downcast<RenderSVGShape>(renderer);
Color fallbackColor;
@@ -439,8 +439,13 @@
{
TextStream::IndentScope indentScope(ts);
- for (const auto& child : childrenOfType<RenderObject>(parent))
+ for (const auto& child : childrenOfType<RenderObject>(parent)) {
+#if ENABLE(LAYER_BASED_SVG_ENGINE)
+ if (parent.document().settings().layerBasedSVGEngineEnabled() && child.hasLayer())
+ continue;
+#endif
write(ts, child, behavior);
+ }
}
static inline void writeCommonGradientProperties(TextStream& ts, SVGSpreadMethodType spreadMethod, const AffineTransform& gradientTransform, SVGUnitTypes::SVGUnitType gradientUnits)
Modified: trunk/Source/WebCore/svg/SVGRectElement.cpp (290323 => 290324)
--- trunk/Source/WebCore/svg/SVGRectElement.cpp 2022-02-22 19:31:32 UTC (rev 290323)
+++ trunk/Source/WebCore/svg/SVGRectElement.cpp 2022-02-22 19:34:17 UTC (rev 290324)
@@ -89,9 +89,8 @@
RenderPtr<RenderElement> SVGRectElement::createElementRenderer(RenderStyle&& style, const RenderTreePosition&)
{
- // FIXME: [LBSE] Upstream enough code to allow the creation of RenderLayerModelObject based SVG renderers.
#if ENABLE(LAYER_BASED_SVG_ENGINE)
- if (false && document().settings().layerBasedSVGEngineEnabled())
+ if (document().settings().layerBasedSVGEngineEnabled())
return createRenderer<RenderSVGRect>(*this, WTFMove(style));
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes