Title: [265653] releases/WebKitGTK/webkit-2.30
- Revision
- 265653
- Author
- [email protected]
- Date
- 2020-08-13 23:38:53 -0700 (Thu, 13 Aug 2020)
Log Message
Merge r265561 - Broken formatting in price table on yandex.ru after translating to English
https://bugs.webkit.org/show_bug.cgi?id=215416
<rdar://problem/66354018>
Reviewed by Tim Horton.
Source/WebCore:
Extend the behavior added in r265188 so that it applies to all elements that have `display: table-cell;`, rather
than only table data cell elements.
* editing/TextManipulationController.cpp:
(WebCore::isEnclosingItemBoundaryElement):
Tools:
* TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm:
(TestWebKitAPI::TEST):
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.30/Source/WebCore/ChangeLog (265652 => 265653)
--- releases/WebKitGTK/webkit-2.30/Source/WebCore/ChangeLog 2020-08-14 06:38:47 UTC (rev 265652)
+++ releases/WebKitGTK/webkit-2.30/Source/WebCore/ChangeLog 2020-08-14 06:38:53 UTC (rev 265653)
@@ -1,3 +1,17 @@
+2020-08-12 Wenson Hsieh <[email protected]>
+
+ Broken formatting in price table on yandex.ru after translating to English
+ https://bugs.webkit.org/show_bug.cgi?id=215416
+ <rdar://problem/66354018>
+
+ Reviewed by Tim Horton.
+
+ Extend the behavior added in r265188 so that it applies to all elements that have `display: table-cell;`, rather
+ than only table data cell elements.
+
+ * editing/TextManipulationController.cpp:
+ (WebCore::isEnclosingItemBoundaryElement):
+
2020-08-12 Adrian Perez de Castro <[email protected]>
Unreviewed non-unified build fix.
Modified: releases/WebKitGTK/webkit-2.30/Source/WebCore/editing/TextManipulationController.cpp (265652 => 265653)
--- releases/WebKitGTK/webkit-2.30/Source/WebCore/editing/TextManipulationController.cpp 2020-08-14 06:38:47 UTC (rev 265652)
+++ releases/WebKitGTK/webkit-2.30/Source/WebCore/editing/TextManipulationController.cpp 2020-08-14 06:38:53 UTC (rev 265653)
@@ -325,7 +325,7 @@
}
}
- if (element.hasTagName(HTMLNames::tdTag) && displayType == DisplayType::TableCell)
+ if (displayType == DisplayType::TableCell)
return true;
if (element.hasTagName(HTMLNames::spanTag) && displayType == DisplayType::InlineBlock)
Modified: releases/WebKitGTK/webkit-2.30/Tools/ChangeLog (265652 => 265653)
--- releases/WebKitGTK/webkit-2.30/Tools/ChangeLog 2020-08-14 06:38:47 UTC (rev 265652)
+++ releases/WebKitGTK/webkit-2.30/Tools/ChangeLog 2020-08-14 06:38:53 UTC (rev 265653)
@@ -1,3 +1,14 @@
+2020-08-12 Wenson Hsieh <[email protected]>
+
+ Broken formatting in price table on yandex.ru after translating to English
+ https://bugs.webkit.org/show_bug.cgi?id=215416
+ <rdar://problem/66354018>
+
+ Reviewed by Tim Horton.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm:
+ (TestWebKitAPI::TEST):
+
2020-08-11 Alex Christensen <[email protected]>
Enable HTTP/2 ping API tests
Modified: releases/WebKitGTK/webkit-2.30/Tools/TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm (265652 => 265653)
--- releases/WebKitGTK/webkit-2.30/Tools/TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm 2020-08-14 06:38:47 UTC (rev 265652)
+++ releases/WebKitGTK/webkit-2.30/Tools/TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm 2020-08-14 06:38:53 UTC (rev 265653)
@@ -1157,6 +1157,7 @@
"<head>"
" <style>"
" td { border: solid 1px tomato; }"
+ " a { border: solid 1px black; display: table-cell; }"
" </style>"
"</head>"
"<body>"
@@ -1163,6 +1164,8 @@
" <table>"
" <tbody>"
" <tr>"
+ " <a><span>Hello</span></a>"
+ " <a>World</a>"
" <td>Foo</td>"
" <td>Bar</td>"
" <td>Baz</td>"
@@ -1178,13 +1181,17 @@
TestWebKitAPI::Util::run(&done);
auto items = [delegate items];
- EXPECT_EQ(items.count, 3UL);
+ EXPECT_EQ(items.count, 5UL);
EXPECT_EQ(items[0].tokens.count, 1UL);
- EXPECT_WK_STREQ("Foo", items[0].tokens[0].content);
+ EXPECT_WK_STREQ("Hello", items[0].tokens[0].content);
EXPECT_EQ(items[1].tokens.count, 1UL);
- EXPECT_WK_STREQ("Bar", items[1].tokens[0].content);
+ EXPECT_WK_STREQ("World", items[1].tokens[0].content);
EXPECT_EQ(items[2].tokens.count, 1UL);
- EXPECT_WK_STREQ("Baz", items[2].tokens[0].content);
+ EXPECT_WK_STREQ("Foo", items[2].tokens[0].content);
+ EXPECT_EQ(items[3].tokens.count, 1UL);
+ EXPECT_WK_STREQ("Bar", items[3].tokens[0].content);
+ EXPECT_EQ(items[4].tokens.count, 1UL);
+ EXPECT_WK_STREQ("Baz", items[4].tokens[0].content);
}
struct Token {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes