Title: [246717] trunk/Source/WebCore
- Revision
- 246717
- Author
- [email protected]
- Date
- 2019-06-22 14:09:51 -0700 (Sat, 22 Jun 2019)
Log Message
[LFC][IFC] The anonymous InlineBox wrapper for the text node should take the parent style.
https://bugs.webkit.org/show_bug.cgi?id=199127
<rdar://problem/52017744>
Reviewed by Antti Koivisto.
<span style="vertical-align: bottom">bottom aligned text</span>
The InlineBox wrapper for the "bottom aligned text" content should take the parent span's style.
* layout/layouttree/LayoutTreeBuilder.cpp:
(WebCore::Layout::TreeBuilder::createSubTree):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (246716 => 246717)
--- trunk/Source/WebCore/ChangeLog 2019-06-22 20:09:50 UTC (rev 246716)
+++ trunk/Source/WebCore/ChangeLog 2019-06-22 21:09:51 UTC (rev 246717)
@@ -1,3 +1,17 @@
+2019-06-22 Zalan Bujtas <[email protected]>
+
+ [LFC][IFC] The anonymous InlineBox wrapper for the text node should take the parent style.
+ https://bugs.webkit.org/show_bug.cgi?id=199127
+ <rdar://problem/52017744>
+
+ Reviewed by Antti Koivisto.
+
+ <span style="vertical-align: bottom">bottom aligned text</span>
+ The InlineBox wrapper for the "bottom aligned text" content should take the parent span's style.
+
+ * layout/layouttree/LayoutTreeBuilder.cpp:
+ (WebCore::Layout::TreeBuilder::createSubTree):
+
2019-06-22 Antoine Quint <[email protected]>
[Pointer Events] Respect pointer capture when dispatching mouse boundary events and updating :hover
Modified: trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp (246716 => 246717)
--- trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp 2019-06-22 20:09:50 UTC (rev 246716)
+++ trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp 2019-06-22 21:09:51 UTC (rev 246717)
@@ -106,7 +106,11 @@
std::unique_ptr<Box> box;
if (is<RenderText>(child)) {
- box = std::make_unique<InlineBox>(Optional<Box::ElementAttributes>(), RenderStyle::createAnonymousStyleWithDisplay(rootRenderer.style(), DisplayType::Inline));
+ // FIXME: Clearly there must be a helper function for this.
+ if (rootRenderer.style().display() == DisplayType::Inline)
+ box = std::make_unique<InlineBox>(Optional<Box::ElementAttributes>(), RenderStyle::clone(rootRenderer.style()));
+ else
+ box = std::make_unique<InlineBox>(Optional<Box::ElementAttributes>(), RenderStyle::createAnonymousStyleWithDisplay(rootRenderer.style(), DisplayType::Inline));
downcast<InlineBox>(*box).setTextContent(downcast<RenderText>(child).originalText());
} else if (is<RenderLineBreak>(child)) {
auto& renderer = downcast<RenderLineBreak>(child);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes