Title: [253341] trunk/Source/WebCore
- Revision
- 253341
- Author
- [email protected]
- Date
- 2019-12-10 12:56:45 -0800 (Tue, 10 Dec 2019)
Log Message
[LFC][IFC] Call RenderText:text() to get the rendered content instead of ::originalText()
https://bugs.webkit.org/show_bug.cgi?id=205079
<rdar://problem/57804297>
Reviewed by Antti Koivisto.
It fixes the cases when the original text content is different from the rendered content (e.g. Yen symbol).
* layout/layouttree/LayoutTreeBuilder.cpp:
(WebCore::Layout::TreeBuilder::createLayoutBox):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (253340 => 253341)
--- trunk/Source/WebCore/ChangeLog 2019-12-10 20:19:09 UTC (rev 253340)
+++ trunk/Source/WebCore/ChangeLog 2019-12-10 20:56:45 UTC (rev 253341)
@@ -1,5 +1,18 @@
2019-12-10 Zalan Bujtas <[email protected]>
+ [LFC][IFC] Call RenderText:text() to get the rendered content instead of ::originalText()
+ https://bugs.webkit.org/show_bug.cgi?id=205079
+ <rdar://problem/57804297>
+
+ Reviewed by Antti Koivisto.
+
+ It fixes the cases when the original text content is different from the rendered content (e.g. Yen symbol).
+
+ * layout/layouttree/LayoutTreeBuilder.cpp:
+ (WebCore::Layout::TreeBuilder::createLayoutBox):
+
+2019-12-10 Zalan Bujtas <[email protected]>
+
[LFC][IFC][Painting] TextRuns always have 0 left offset
https://bugs.webkit.org/show_bug.cgi?id=205071
<rdar://problem/57801254>
Modified: trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp (253340 => 253341)
--- trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp 2019-12-10 20:19:09 UTC (rev 253340)
+++ trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp 2019-12-10 20:56:45 UTC (rev 253341)
@@ -191,7 +191,7 @@
std::unique_ptr<Box> childLayoutBox;
if (is<RenderText>(childRenderer)) {
auto& textRenderer = downcast<RenderText>(childRenderer);
- auto text = applyTextTransform(textRenderer.originalText(), parentRenderer.style());
+ auto text = applyTextTransform(textRenderer.text(), parentRenderer.style());
// FIXME: Clearly there must be a helper function for this.
auto textContent = TextContext { text, canUseSimplifiedTextMeasuring(text, parentRenderer.style().fontCascade(), parentRenderer.style().collapseWhiteSpace()) };
if (parentRenderer.style().display() == DisplayType::Inline)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes