Title: [191057] branches/safari-601-branch
- Revision
- 191057
- Author
- matthew_han...@apple.com
- Date
- 2015-10-14 11:49:43 -0700 (Wed, 14 Oct 2015)
Log Message
Merge r190570. rdar://problem/23075530
Modified Paths
Added Paths
Diff
Modified: branches/safari-601-branch/LayoutTests/ChangeLog (191056 => 191057)
--- branches/safari-601-branch/LayoutTests/ChangeLog 2015-10-14 18:49:41 UTC (rev 191056)
+++ branches/safari-601-branch/LayoutTests/ChangeLog 2015-10-14 18:49:43 UTC (rev 191057)
@@ -1,5 +1,23 @@
2015-10-13 Matthew Hanson <matthew_han...@apple.com>
+ Merge r190570. rdar://problem/23075530
+
+ 2015-10-05 Zalan Bujtas <za...@apple.com>
+
+ Mark the line dirty when RenderQuote's text changes.
+ https://bugs.webkit.org/show_bug.cgi?id=149784
+ rdar://problem/22558169
+
+ Reviewed by Antti Koivisto.
+
+ When quotation mark changes ( " -> ' or empty string), we
+ need to mark the line dirty to ensure its content gets laid out properly.
+
+ * fast/inline/quotation-text-changes-dynamically-expected.txt: Added.
+ * fast/inline/quotation-text-changes-dynamically.html: Added.
+
+2015-10-13 Matthew Hanson <matthew_han...@apple.com>
+
Merge r190339. rdar://problem/23075538
2015-09-29 Jon Honeycutt <jhoneyc...@apple.com>
Added: branches/safari-601-branch/LayoutTests/fast/inline/quotation-text-changes-dynamically-expected.txt (0 => 191057)
--- branches/safari-601-branch/LayoutTests/fast/inline/quotation-text-changes-dynamically-expected.txt (rev 0)
+++ branches/safari-601-branch/LayoutTests/fast/inline/quotation-text-changes-dynamically-expected.txt 2015-10-14 18:49:43 UTC (rev 191057)
@@ -0,0 +1 @@
+PASS if no crash or assert in debug
Added: branches/safari-601-branch/LayoutTests/fast/inline/quotation-text-changes-dynamically.html (0 => 191057)
--- branches/safari-601-branch/LayoutTests/fast/inline/quotation-text-changes-dynamically.html (rev 0)
+++ branches/safari-601-branch/LayoutTests/fast/inline/quotation-text-changes-dynamically.html 2015-10-14 18:49:43 UTC (rev 191057)
@@ -0,0 +1,23 @@
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+
+<style>
+q:before {
+ position: fixed;
+ -webkit-animation-name: name1;
+ -webkit-animation-duration: 1s;
+}
+
+@-webkit-keyframes name1 {
+ from {
+ column-width: 10px;
+ }
+ to {
+ column-width: 20px;
+ }
+}
+</style>
+
+<q>PASS if no crash or assert in debug</q>
\ No newline at end of file
Modified: branches/safari-601-branch/Source/WebCore/ChangeLog (191056 => 191057)
--- branches/safari-601-branch/Source/WebCore/ChangeLog 2015-10-14 18:49:41 UTC (rev 191056)
+++ branches/safari-601-branch/Source/WebCore/ChangeLog 2015-10-14 18:49:43 UTC (rev 191057)
@@ -1,5 +1,27 @@
2015-10-13 Matthew Hanson <matthew_han...@apple.com>
+ Merge r190570. rdar://problem/23075530
+
+ 2015-10-05 Zalan Bujtas <za...@apple.com>
+
+ Mark the line dirty when RenderQuote's text changes.
+ https://bugs.webkit.org/show_bug.cgi?id=149784
+ rdar://problem/22558169
+
+ Reviewed by Antti Koivisto.
+
+ When quotation mark changes ( " -> ' or empty string), we
+ need to mark the line dirty to ensure its content gets laid out properly.
+
+ Test: fast/inline/quotation-text-changes-dynamically.html
+
+ * rendering/RenderQuote.cpp:
+ (WebCore::quoteTextRenderer):
+ (WebCore::RenderQuote::updateText):
+ (WebCore::fragmentChild): Deleted.
+
+2015-10-13 Matthew Hanson <matthew_han...@apple.com>
+
Merge r190382. rdar://problem/22934301
2015-09-30 Dean Jackson <d...@apple.com>
Modified: branches/safari-601-branch/Source/WebCore/rendering/RenderQuote.cpp (191056 => 191057)
--- branches/safari-601-branch/Source/WebCore/rendering/RenderQuote.cpp 2015-10-14 18:49:41 UTC (rev 191056)
+++ branches/safari-601-branch/Source/WebCore/rendering/RenderQuote.cpp 2015-10-14 18:49:43 UTC (rev 191057)
@@ -330,7 +330,7 @@
return apostropheString;
}
-static RenderTextFragment* fragmentChild(RenderObject* lastChild)
+static RenderTextFragment* quoteTextRenderer(RenderObject* lastChild)
{
if (!lastChild)
return nullptr;
@@ -349,8 +349,9 @@
m_text = text;
// Start from the end of the child list because, if we've had a first-letter
// renderer inserted then the remaining text will be at the end.
- if (auto* fragment = fragmentChild(lastChild())) {
- fragment->setContentString(m_text);
+ if (auto* renderText = quoteTextRenderer(lastChild())) {
+ renderText->setContentString(m_text);
+ renderText->dirtyLineBoxes(false);
return;
}
addChild(new RenderTextFragment(document(), m_text));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes