Title: [255074] trunk/Source/WebCore
- Revision
- 255074
- Author
- [email protected]
- Date
- 2020-01-24 08:42:26 -0800 (Fri, 24 Jan 2020)
Log Message
[LFC][Painting] Add Display::Run cleanup to TextPainter::clearGlyphDisplayLists
https://bugs.webkit.org/show_bug.cgi?id=206744
<rdar://problem/58867112>
Reviewed by Antti Koivisto.
* rendering/TextPainter.cpp:
(WebCore::TextPainter::clearGlyphDisplayLists):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (255073 => 255074)
--- trunk/Source/WebCore/ChangeLog 2020-01-24 16:32:26 UTC (rev 255073)
+++ trunk/Source/WebCore/ChangeLog 2020-01-24 16:42:26 UTC (rev 255074)
@@ -1,3 +1,14 @@
+2020-01-24 Zalan Bujtas <[email protected]>
+
+ [LFC][Painting] Add Display::Run cleanup to TextPainter::clearGlyphDisplayLists
+ https://bugs.webkit.org/show_bug.cgi?id=206744
+ <rdar://problem/58867112>
+
+ Reviewed by Antti Koivisto.
+
+ * rendering/TextPainter.cpp:
+ (WebCore::TextPainter::clearGlyphDisplayLists):
+
2020-01-24 Antti Koivisto <[email protected]>
[LFC][Integration] Clear inline item caches on low memory notification
Modified: trunk/Source/WebCore/rendering/TextPainter.cpp (255073 => 255074)
--- trunk/Source/WebCore/rendering/TextPainter.cpp 2020-01-24 16:32:26 UTC (rev 255073)
+++ trunk/Source/WebCore/rendering/TextPainter.cpp 2020-01-24 16:42:26 UTC (rev 255074)
@@ -24,11 +24,13 @@
#include "TextPainter.h"
#include "DisplayListReplayer.h"
+#include "DisplayRun.h"
#include "FilterOperations.h"
#include "GraphicsContext.h"
#include "InlineTextBox.h"
#include "RenderCombineText.h"
#include "RenderLayer.h"
+#include "RuntimeEnabledFeatures.h"
#include "ShadowData.h"
#include <wtf/NeverDestroyed.h>
@@ -213,6 +215,10 @@
{
GlyphDisplayListCache<InlineTextBox>::singleton().clear();
GlyphDisplayListCache<SimpleLineLayout::Run>::singleton().clear();
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
+ if (RuntimeEnabledFeatures::sharedFeatures().layoutFormattingContextIntegrationEnabled())
+ GlyphDisplayListCache<Display::Run>::singleton().clear();
+#endif
}
bool TextPainter::shouldUseGlyphDisplayList(const PaintInfo& paintInfo)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes