Title: [253209] trunk/Source/WebCore
- Revision
- 253209
- Author
- [email protected]
- Date
- 2019-12-06 10:08:03 -0800 (Fri, 06 Dec 2019)
Log Message
[LFC][Integration] Fix DisplayRunPath offsets
https://bugs.webkit.org/show_bug.cgi?id=204949
Reviewed by Zalan Bujtas.
Fixes output of tests like fast/text/system-font-zero-size.html with LFC integration enabled.
* rendering/line/LineLayoutTraversalDisplayRunPath.h:
(WebCore::LineLayoutTraversal::DisplayRunPath::DisplayRunPath):
(WebCore::LineLayoutTraversal::DisplayRunPath::localStartOffset const):
(WebCore::LineLayoutTraversal::DisplayRunPath::localEndOffset const):
Display::Run offsets are already local.
(WebCore::LineLayoutTraversal::DisplayRunPath::length const):
(WebCore::LineLayoutTraversal::DisplayRunPath::runs const):
(WebCore::LineLayoutTraversal::DisplayRunPath::firstRun const): Deleted.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (253208 => 253209)
--- trunk/Source/WebCore/ChangeLog 2019-12-06 17:15:40 UTC (rev 253208)
+++ trunk/Source/WebCore/ChangeLog 2019-12-06 18:08:03 UTC (rev 253209)
@@ -1,3 +1,23 @@
+2019-12-06 Antti Koivisto <[email protected]>
+
+ [LFC][Integration] Fix DisplayRunPath offsets
+ https://bugs.webkit.org/show_bug.cgi?id=204949
+
+ Reviewed by Zalan Bujtas.
+
+ Fixes output of tests like fast/text/system-font-zero-size.html with LFC integration enabled.
+
+ * rendering/line/LineLayoutTraversalDisplayRunPath.h:
+ (WebCore::LineLayoutTraversal::DisplayRunPath::DisplayRunPath):
+ (WebCore::LineLayoutTraversal::DisplayRunPath::localStartOffset const):
+ (WebCore::LineLayoutTraversal::DisplayRunPath::localEndOffset const):
+
+ Display::Run offsets are already local.
+
+ (WebCore::LineLayoutTraversal::DisplayRunPath::length const):
+ (WebCore::LineLayoutTraversal::DisplayRunPath::runs const):
+ (WebCore::LineLayoutTraversal::DisplayRunPath::firstRun const): Deleted.
+
2019-12-05 Chris Dumez <[email protected]>
Stop using reserveCapacity() / reserveInitialCapacity() in IPC decoders
Modified: trunk/Source/WebCore/rendering/line/LineLayoutTraversalDisplayRunPath.h (253208 => 253209)
--- trunk/Source/WebCore/rendering/line/LineLayoutTraversalDisplayRunPath.h 2019-12-06 17:15:40 UTC (rev 253208)
+++ trunk/Source/WebCore/rendering/line/LineLayoutTraversalDisplayRunPath.h 2019-12-06 18:08:03 UTC (rev 253209)
@@ -42,7 +42,6 @@
public:
DisplayRunPath(const Display::InlineContent& inlineContent, size_t startIndex, size_t endIndex)
: m_inlineContent(&inlineContent)
- , m_startIndex(startIndex)
, m_endIndex(endIndex)
, m_runIndex(startIndex)
{ }
@@ -65,9 +64,9 @@
bool hasHyphen() const { return false; } // FIXME: Implement.
StringView text() const { return run().textContext()->content(); }
- unsigned localStartOffset() const { return run().textContext()->start() - firstRun().textContext()->start(); }
- unsigned localEndOffset() const { return run().textContext()->end() - firstRun().textContext()->start(); }
- unsigned length() const { return run().textContext()->end() - run().textContext()->start(); }
+ unsigned localStartOffset() const { return run().textContext()->start(); }
+ unsigned localEndOffset() const { return run().textContext()->end(); }
+ unsigned length() const { return run().textContext()->length(); }
bool isLastOnLine() const
{
@@ -93,11 +92,9 @@
private:
const Display::InlineContent::Runs& runs() const { return m_inlineContent->runs; }
- const Display::Run& firstRun() const { return runs()[m_startIndex]; }
const Display::Run& run() const { return runs()[m_runIndex]; }
RefPtr<const Display::InlineContent> m_inlineContent;
- size_t m_startIndex { 0 };
size_t m_endIndex { 0 };
size_t m_runIndex { 0 };
};
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes