Title: [257917] trunk
Revision
257917
Author
[email protected]
Date
2020-03-05 08:04:12 -0800 (Thu, 05 Mar 2020)

Log Message

[LFC][Invalidation] Incoming image data should invalidate layout tree content
https://bugs.webkit.org/show_bug.cgi?id=208640
<rdar://problem/60083229>

Reviewed by Antti Koivisto.

Source/WebCore:

This is a forced invalidation (in the least intrusive way) to make sure LFC has up-to-date replaced information.

* rendering/RenderImage.cpp:
(WebCore::RenderImage::imageChanged):

LayoutTests:

* platform/mac-wk2/TestExpectations:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (257916 => 257917)


--- trunk/LayoutTests/ChangeLog	2020-03-05 16:00:13 UTC (rev 257916)
+++ trunk/LayoutTests/ChangeLog	2020-03-05 16:04:12 UTC (rev 257917)
@@ -1,3 +1,13 @@
+2020-03-05  Zalan Bujtas  <[email protected]>
+
+        [LFC][Invalidation] Incoming image data should invalidate layout tree content
+        https://bugs.webkit.org/show_bug.cgi?id=208640
+        <rdar://problem/60083229>
+
+        Reviewed by Antti Koivisto.
+
+        * platform/mac-wk2/TestExpectations:
+
 2020-03-05  Diego Pino Garcia  <[email protected]>
 
         [GTK] Gardening, update TestExpectations

Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (257916 => 257917)


--- trunk/LayoutTests/platform/mac-wk2/TestExpectations	2020-03-05 16:00:13 UTC (rev 257916)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations	2020-03-05 16:04:12 UTC (rev 257917)
@@ -1090,7 +1090,4 @@
 
 webkit.org/b/208584 fast/scrolling/scroll-animator-overlay-scrollbars-clicked.html [ Pass Failure ]
 
-webkit.org/b/208590 [ Debug ] fast/events/beforeunload-prompt.html [ Pass Crash ]
-
-# LFC only failure.
-webkit.org/b/208600 [ Debug ] fast/layoutformattingcontext/block-only/replaced-intrinsic-width-simple.html [ Skip ]
\ No newline at end of file
+webkit.org/b/208590 [ Debug ] fast/events/beforeunload-prompt.html [ Pass Crash ]
\ No newline at end of file

Modified: trunk/Source/WebCore/ChangeLog (257916 => 257917)


--- trunk/Source/WebCore/ChangeLog	2020-03-05 16:00:13 UTC (rev 257916)
+++ trunk/Source/WebCore/ChangeLog	2020-03-05 16:04:12 UTC (rev 257917)
@@ -1,3 +1,16 @@
+2020-03-05  Zalan Bujtas  <[email protected]>
+
+        [LFC][Invalidation] Incoming image data should invalidate layout tree content
+        https://bugs.webkit.org/show_bug.cgi?id=208640
+        <rdar://problem/60083229>
+
+        Reviewed by Antti Koivisto.
+
+        This is a forced invalidation (in the least intrusive way) to make sure LFC has up-to-date replaced information.
+
+        * rendering/RenderImage.cpp:
+        (WebCore::RenderImage::imageChanged):
+
 2020-03-05  Youenn Fablet  <[email protected]>
 
         Remove CoreAudioCaptureSourceFactory::setCoreAudioActiveSource/unsetCoreAudioActiveSource

Modified: trunk/Source/WebCore/rendering/RenderImage.cpp (257916 => 257917)


--- trunk/Source/WebCore/rendering/RenderImage.cpp	2020-03-05 16:00:13 UTC (rev 257916)
+++ trunk/Source/WebCore/rendering/RenderImage.cpp	2020-03-05 16:04:12 UTC (rev 257917)
@@ -325,6 +325,11 @@
     repaintOrMarkForLayout(imageSizeChange, rect);
     if (AXObjectCache* cache = document().existingAXObjectCache())
         cache->deferRecomputeIsIgnoredIfNeeded(element());
+
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
+    if (RuntimeEnabledFeatures::sharedFeatures().layoutFormattingContextEnabled())
+        view().frameView().layoutContext().invalidateLayoutTreeContent();
+#endif
 }
 
 void RenderImage::updateIntrinsicSizeIfNeeded(const LayoutSize& newSize)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to