Diff
Modified: trunk/Source/WebCore/ChangeLog (253257 => 253258)
--- trunk/Source/WebCore/ChangeLog 2019-12-07 18:56:50 UTC (rev 253257)
+++ trunk/Source/WebCore/ChangeLog 2019-12-07 19:04:39 UTC (rev 253258)
@@ -1,5 +1,62 @@
2019-12-07 Zalan Bujtas <[email protected]>
+ [LFC][IFC] Introduce InlineRect
+ https://bugs.webkit.org/show_bug.cgi?id=204988
+ <rdar://problem/57729049>
+
+ Reviewed by Antti Koivisto.
+
+ This is in preparation for using float based types in IFC. See webkit.org/b/204986 for more info.
+
+ * WebCore.xcodeproj/project.pbxproj:
+ * layout/LayoutUnits.h:
+ * layout/displaytree/DisplayInlineRect.h: Added.
+ (WebCore::Display::InlineRect::expandHorizontally):
+ (WebCore::Display::InlineRect::expandVertically):
+ (WebCore::Display::InlineRect::invalidateTop):
+ (WebCore::Display::InlineRect::invalidateLeft):
+ (WebCore::Display::InlineRect::invalidateWidth):
+ (WebCore::Display::InlineRect::invalidateHeight):
+ (WebCore::Display::InlineRect::hasValidPosition const):
+ (WebCore::Display::InlineRect::hasValidSize const):
+ (WebCore::Display::InlineRect::hasValidGeometry const):
+ (WebCore::Display::InlineRect::InlineRect):
+ (WebCore::Display::InlineRect::invalidatePosition):
+ (WebCore::Display::InlineRect::setHasValidPosition):
+ (WebCore::Display::InlineRect::setHasValidSize):
+ (WebCore::Display::InlineRect::top const):
+ (WebCore::Display::InlineRect::left const):
+ (WebCore::Display::InlineRect::bottom const):
+ (WebCore::Display::InlineRect::right const):
+ (WebCore::Display::InlineRect::topLeft const):
+ (WebCore::Display::InlineRect::size const):
+ (WebCore::Display::InlineRect::width const):
+ (WebCore::Display::InlineRect::height const):
+ (WebCore::Display::InlineRect::setTopLeft):
+ (WebCore::Display::InlineRect::setTop):
+ (WebCore::Display::InlineRect::setLeft):
+ (WebCore::Display::InlineRect::setWidth):
+ (WebCore::Display::InlineRect::setHeight):
+ (WebCore::Display::InlineRect::moveHorizontally):
+ (WebCore::Display::InlineRect::moveVertically):
+ (WebCore::Display::InlineRect::expand):
+ (WebCore::Display::InlineRect::operator InlineLayoutRect const):
+ * layout/displaytree/DisplayLineBox.h:
+ (WebCore::Display::LineBox::LineBox):
+ * layout/displaytree/DisplayRun.h:
+ (WebCore::Display::Run::logicalRect const):
+ (WebCore::Display::Run::setLogicalLeft):
+ (WebCore::Display::Run::Run):
+ (WebCore::Display::Run::setLogicalRight): Deleted.
+ * layout/inlineformatting/InlineLineBuilder.cpp:
+ (WebCore::Layout::LineBuilder::ContinousContent::close):
+ (WebCore::Layout::LineBuilder::Run::Run):
+ (WebCore::Layout::LineBuilder::initialize):
+ * layout/inlineformatting/InlineLineBuilder.h:
+ (WebCore::Layout::LineBuilder::Run::logicalRect const):
+
+2019-12-07 Zalan Bujtas <[email protected]>
+
[LFC][IFC] Introduce InlineLayoutUnit
https://bugs.webkit.org/show_bug.cgi?id=204986
<rdar://problem/57728333>
Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (253257 => 253258)
--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2019-12-07 18:56:50 UTC (rev 253257)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2019-12-07 19:04:39 UTC (rev 253258)
@@ -370,6 +370,7 @@
0FFD4D6118651FA300512F6E /* AsyncScrollingCoordinator.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FFD4D5F18651FA300512F6E /* AsyncScrollingCoordinator.h */; settings = {ATTRIBUTES = (Private, ); }; };
10FB084B14E15C7E00A3DB98 /* PublicURLManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 10FB084A14E15C7E00A3DB98 /* PublicURLManager.h */; };
112B34D51E60B98300BB310A /* SimpleLineLayoutPagination.h in Headers */ = {isa = PBXBuildFile; fileRef = 112B34D41E60B98300BB310A /* SimpleLineLayoutPagination.h */; };
+ 112FB352239C23C40087054A /* DisplayInlineRect.h in Headers */ = {isa = PBXBuildFile; fileRef = 112FB350239C23C40087054A /* DisplayInlineRect.h */; settings = {ATTRIBUTES = (Private, ); }; };
11310CF220BA4A320065A8D0 /* LayoutTreeBuilder.h in Headers */ = {isa = PBXBuildFile; fileRef = 11100FD7209514DF0081AA6C /* LayoutTreeBuilder.h */; settings = {ATTRIBUTES = (Private, ); }; };
11310CF320BA4A370065A8D0 /* LayoutReplaced.h in Headers */ = {isa = PBXBuildFile; fileRef = 111C615620AD1AE1005B82FA /* LayoutReplaced.h */; settings = {ATTRIBUTES = (Private, ); }; };
11310CF420BA4A3D0065A8D0 /* LayoutIterator.h in Headers */ = {isa = PBXBuildFile; fileRef = 11100FC72092764C0081AA6C /* LayoutIterator.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -5876,6 +5877,7 @@
111C615720AD1AE1005B82FA /* LayoutReplaced.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = LayoutReplaced.cpp; sourceTree = "<group>"; };
112B34D01E60B8A700BB310A /* SimpleLineLayoutPagination.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SimpleLineLayoutPagination.cpp; sourceTree = "<group>"; };
112B34D41E60B98300BB310A /* SimpleLineLayoutPagination.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimpleLineLayoutPagination.h; sourceTree = "<group>"; };
+ 112FB350239C23C40087054A /* DisplayInlineRect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DisplayInlineRect.h; sourceTree = "<group>"; };
113409D7203E038000C66915 /* RenderTreeBuilderContinuation.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = RenderTreeBuilderContinuation.cpp; sourceTree = "<group>"; };
113409D8203E038000C66915 /* RenderTreeBuilderContinuation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RenderTreeBuilderContinuation.h; sourceTree = "<group>"; };
113A3CB22385860000AE3ECE /* TextContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextContext.h; sourceTree = "<group>"; };
@@ -16749,6 +16751,7 @@
6F77868523491AC6004D9636 /* DisplayPainter.cpp */,
6F77868723491AD7004D9636 /* DisplayPainter.h */,
6FD9CD52227E21C800E53957 /* DisplayRect.h */,
+ 112FB350239C23C40087054A /* DisplayInlineRect.h */,
6FCE1A1822618AB3004F0343 /* DisplayRun.h */,
);
path = displaytree;
@@ -31924,6 +31927,7 @@
BC5EB6680E81CB7100B25965 /* RenderStyleConstants.h in Headers */,
436708C112D9CA4B00044234 /* RenderSVGBlock.h in Headers */,
436708C312D9CA4B00044234 /* RenderSVGContainer.h in Headers */,
+ 112FB352239C23C40087054A /* DisplayInlineRect.h in Headers */,
2B365C841525119E0091D27B /* RenderSVGEllipse.h in Headers */,
43C092BC12D9E4EE00A989C3 /* RenderSVGForeignObject.h in Headers */,
436708C512D9CA4B00044234 /* RenderSVGGradientStop.h in Headers */,
Modified: trunk/Source/WebCore/layout/LayoutUnits.h (253257 => 253258)
--- trunk/Source/WebCore/layout/LayoutUnits.h 2019-12-07 18:56:50 UTC (rev 253257)
+++ trunk/Source/WebCore/layout/LayoutUnits.h 2019-12-07 19:04:39 UTC (rev 253258)
@@ -39,6 +39,9 @@
}
using InlineLayoutUnit = LayoutUnit;
+using InlineLayoutPoint = LayoutPoint;
+using InlineLayoutSize = LayoutSize;
+using InlineLayoutRect = LayoutRect;
namespace Layout {
Added: trunk/Source/WebCore/layout/displaytree/DisplayInlineRect.h (0 => 253258)
--- trunk/Source/WebCore/layout/displaytree/DisplayInlineRect.h (rev 0)
+++ trunk/Source/WebCore/layout/displaytree/DisplayInlineRect.h 2019-12-07 19:04:39 UTC (rev 253258)
@@ -0,0 +1,241 @@
+/*
+ * Copyright (C) 2019 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
+
+#include "LayoutUnits.h"
+
+namespace WebCore {
+namespace Display {
+
+class InlineRect {
+public:
+ InlineRect() = default;
+ InlineRect(InlineLayoutUnit top, InlineLayoutUnit left, InlineLayoutUnit width, InlineLayoutUnit height);
+ InlineRect(const InlineLayoutPoint& topLeft, InlineLayoutUnit width, InlineLayoutUnit height);
+
+ InlineLayoutUnit top() const;
+ InlineLayoutUnit left() const;
+ InlineLayoutPoint topLeft() const;
+
+ InlineLayoutUnit bottom() const;
+ InlineLayoutUnit right() const;
+
+ InlineLayoutUnit width() const;
+ InlineLayoutUnit height() const;
+ InlineLayoutSize size() const;
+
+ void setTop(InlineLayoutUnit);
+ void setLeft(InlineLayoutUnit);
+ void setTopLeft(const InlineLayoutPoint&);
+ void setWidth(InlineLayoutUnit);
+ void setHeight(InlineLayoutUnit);
+
+ void moveHorizontally(InlineLayoutUnit);
+ void moveVertically(InlineLayoutUnit);
+
+ void expand(Optional<InlineLayoutUnit>, Optional<InlineLayoutUnit>);
+ void expandHorizontally(InlineLayoutUnit delta) { expand(delta, { }); }
+ void expandVertically(InlineLayoutUnit delta) { expand({ }, delta); }
+
+ operator InlineLayoutRect() const;
+
+private:
+#if !ASSERT_DISABLED
+ void invalidateTop() { m_hasValidTop = false; }
+ void invalidateLeft() { m_hasValidLeft = false; }
+ void invalidateWidth() { m_hasValidWidth = false; }
+ void invalidateHeight() { m_hasValidHeight = false; }
+ void invalidatePosition();
+
+ bool hasValidPosition() const { return m_hasValidTop && m_hasValidLeft; }
+ bool hasValidSize() const { return m_hasValidWidth && m_hasValidHeight; }
+ bool hasValidGeometry() const { return hasValidPosition() && hasValidSize(); }
+
+ void setHasValidPosition();
+ void setHasValidSize();
+
+ bool m_hasValidTop { false };
+ bool m_hasValidLeft { false };
+ bool m_hasValidWidth { false };
+ bool m_hasValidHeight { false };
+#endif
+ InlineLayoutRect m_rect;
+};
+
+inline InlineRect::InlineRect(InlineLayoutUnit top, InlineLayoutUnit left, InlineLayoutUnit width, InlineLayoutUnit height)
+ : m_rect(left, top, width, height)
+{
+#if !ASSERT_DISABLED
+ m_hasValidTop = true;
+ m_hasValidLeft = true;
+ m_hasValidWidth = true;
+ m_hasValidHeight = true;
+#endif
+}
+
+inline InlineRect::InlineRect(const InlineLayoutPoint& topLeft, InlineLayoutUnit width, InlineLayoutUnit height)
+ : InlineRect(topLeft.y(), topLeft.x(), width, height)
+{
+}
+
+#if !ASSERT_DISABLED
+inline void InlineRect::invalidatePosition()
+{
+ invalidateTop();
+ invalidateLeft();
+}
+
+inline void InlineRect::setHasValidPosition()
+{
+ m_hasValidTop = true;
+ m_hasValidLeft = true;
+}
+
+inline void InlineRect::setHasValidSize()
+{
+ m_hasValidWidth = true;
+ m_hasValidHeight = true;
+}
+#endif
+
+inline InlineLayoutUnit InlineRect::top() const
+{
+ ASSERT(m_hasValidTop);
+ return m_rect.y();
+}
+
+inline InlineLayoutUnit InlineRect::left() const
+{
+ ASSERT(m_hasValidLeft);
+ return m_rect.x();
+}
+
+inline InlineLayoutUnit InlineRect::bottom() const
+{
+ ASSERT(m_hasValidTop && m_hasValidHeight);
+ return m_rect.maxY();
+}
+
+inline InlineLayoutUnit InlineRect::right() const
+{
+ ASSERT(m_hasValidLeft && m_hasValidWidth);
+ return m_rect.maxX();
+}
+
+inline InlineLayoutPoint InlineRect::topLeft() const
+{
+ ASSERT(hasValidPosition());
+ return m_rect.minXMinYCorner();
+}
+
+inline InlineLayoutSize InlineRect::size() const
+{
+ ASSERT(hasValidSize());
+ return m_rect.size();
+}
+
+inline InlineLayoutUnit InlineRect::width() const
+{
+ ASSERT(m_hasValidWidth);
+ return m_rect.width();
+}
+
+inline InlineLayoutUnit InlineRect::height() const
+{
+ ASSERT(m_hasValidHeight);
+ return m_rect.height();
+}
+
+inline void InlineRect::setTopLeft(const InlineLayoutPoint& topLeft)
+{
+#if !ASSERT_DISABLED
+ setHasValidPosition();
+#endif
+ m_rect.setLocation(topLeft);
+}
+
+inline void InlineRect::setTop(InlineLayoutUnit top)
+{
+#if !ASSERT_DISABLED
+ m_hasValidTop = true;
+#endif
+ m_rect.setY(top);
+}
+
+inline void InlineRect::setLeft(InlineLayoutUnit left)
+{
+#if !ASSERT_DISABLED
+ m_hasValidLeft = true;
+#endif
+ m_rect.setX(left);
+}
+
+inline void InlineRect::setWidth(InlineLayoutUnit width)
+{
+#if !ASSERT_DISABLED
+ m_hasValidWidth = true;
+#endif
+ m_rect.setWidth(width);
+}
+
+inline void InlineRect::setHeight(InlineLayoutUnit height)
+{
+#if !ASSERT_DISABLED
+ m_hasValidHeight = true;
+#endif
+ m_rect.setHeight(height);
+}
+
+inline void InlineRect::moveHorizontally(InlineLayoutUnit offset)
+{
+ ASSERT(m_hasValidLeft);
+ m_rect.move(InlineLayoutSize { offset, 0 });
+}
+
+inline void InlineRect::moveVertically(InlineLayoutUnit offset)
+{
+ ASSERT(m_hasValidTop);
+ m_rect.move(InlineLayoutSize { 0, offset });
+}
+
+inline void InlineRect::expand(Optional<InlineLayoutUnit> width, Optional<InlineLayoutUnit> height)
+{
+ ASSERT(!width || m_hasValidWidth);
+ ASSERT(!height || m_hasValidHeight);
+ m_rect.expand(width.valueOr(0), height.valueOr(0));
+}
+
+inline InlineRect::operator InlineLayoutRect() const
+{
+ ASSERT(hasValidGeometry());
+ return m_rect;
+}
+
+}
+}
+#endif
Modified: trunk/Source/WebCore/layout/displaytree/DisplayLineBox.h (253257 => 253258)
--- trunk/Source/WebCore/layout/displaytree/DisplayLineBox.h 2019-12-07 18:56:50 UTC (rev 253257)
+++ trunk/Source/WebCore/layout/displaytree/DisplayLineBox.h 2019-12-07 19:04:39 UTC (rev 253258)
@@ -28,6 +28,7 @@
#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
#include "DisplayBox.h"
+#include "DisplayInlineRect.h"
namespace WebCore {
namespace Display {
@@ -57,7 +58,7 @@
InlineLayoutUnit m_descent;
};
- LineBox(Rect, const Baseline&, InlineLayoutUnit baselineOffset);
+ LineBox(const InlineRect&, const Baseline&, InlineLayoutUnit baselineOffset);
LineBox() = default;
LayoutPoint logicalTopLeft() const { return m_rect.topLeft(); }
@@ -123,13 +124,13 @@
bool m_hasValidBaseline { false };
bool m_hasValidBaselineOffset { false };
#endif
- Rect m_rect;
+ InlineRect m_rect;
Baseline m_baseline;
InlineLayoutUnit m_baselineOffset;
bool m_isConsideredEmpty { true };
};
-inline LineBox::LineBox(Rect rect, const Baseline& baseline, InlineLayoutUnit baselineOffset)
+inline LineBox::LineBox(const InlineRect& rect, const Baseline& baseline, InlineLayoutUnit baselineOffset)
: m_rect(rect)
, m_baseline(baseline)
, m_baselineOffset(baselineOffset)
Modified: trunk/Source/WebCore/layout/displaytree/DisplayRun.h (253257 => 253258)
--- trunk/Source/WebCore/layout/displaytree/DisplayRun.h 2019-12-07 18:56:50 UTC (rev 253257)
+++ trunk/Source/WebCore/layout/displaytree/DisplayRun.h 2019-12-07 19:04:39 UTC (rev 253258)
@@ -27,9 +27,8 @@
#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
-#include "DisplayRect.h"
+#include "DisplayInlineRect.h"
#include "LayoutBox.h"
-#include "LayoutUnit.h"
#include "RenderStyle.h"
#include "TextFlags.h"
@@ -72,11 +71,11 @@
Optional<ExpansionContext> m_expansionContext;
};
- Run(size_t lineIndex, const Layout::Box&, const Rect& logicalRect, Optional<TextContext> = WTF::nullopt);
+ Run(size_t lineIndex, const Layout::Box&, const InlineRect& logicalRect, Optional<TextContext> = WTF::nullopt);
size_t lineIndex() const { return m_lineIndex; }
- const Rect& logicalRect() const { return m_logicalRect; }
+ const InlineRect& logicalRect() const { return m_logicalRect; }
LayoutPoint logicalTopLeft() const { return m_logicalRect.topLeft(); }
LayoutUnit logicalLeft() const { return m_logicalRect.left(); }
@@ -90,7 +89,6 @@
void setLogicalWidth(LayoutUnit width) { m_logicalRect.setWidth(width); }
void setLogicalTop(LayoutUnit logicalTop) { m_logicalRect.setTop(logicalTop); }
void setLogicalLeft(LayoutUnit logicalLeft) { m_logicalRect.setLeft(logicalLeft); }
- void setLogicalRight(LayoutUnit logicalRight) { m_logicalRect.shiftRightTo(logicalRight); }
void moveVertically(LayoutUnit delta) { m_logicalRect.moveVertically(delta); }
void moveHorizontally(LayoutUnit delta) { m_logicalRect.moveHorizontally(delta); }
void expandVertically(LayoutUnit delta) { m_logicalRect.expandVertically(delta); }
@@ -113,11 +111,11 @@
const size_t m_lineIndex;
WeakPtr<const Layout::Box> m_layoutBox;
CachedImage* m_cachedImage { nullptr };
- Rect m_logicalRect;
+ InlineRect m_logicalRect;
Optional<TextContext> m_textContext;
};
-inline Run::Run(size_t lineIndex, const Layout::Box& layoutBox, const Rect& logicalRect, Optional<TextContext> textContext)
+inline Run::Run(size_t lineIndex, const Layout::Box& layoutBox, const InlineRect& logicalRect, Optional<TextContext> textContext)
: m_lineIndex(lineIndex)
, m_layoutBox(makeWeakPtr(layoutBox))
, m_logicalRect(logicalRect)
Modified: trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.cpp (253257 => 253258)
--- trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.cpp 2019-12-07 18:56:50 UTC (rev 253257)
+++ trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.cpp 2019-12-07 19:04:39 UTC (rev 253258)
@@ -102,7 +102,7 @@
++m_expansionOpportunityCount;
textContext.setExpansion({ expansionBehavior, { } });
}
- return { m_initialInlineRun, Display::Rect { 0_lu, m_initialInlineRun.logicalLeft(), m_initialInlineRun.logicalWidth() + m_expandedWidth, 0_lu }, textContext, m_expansionOpportunityCount };
+ return { m_initialInlineRun, Display::InlineRect { 0_lu, m_initialInlineRun.logicalLeft(), m_initialInlineRun.logicalWidth() + m_expandedWidth, 0_lu }, textContext, m_expansionOpportunityCount };
}
LineBuilder::Run::Run(const InlineItemRun& inlineItemRun)
@@ -119,7 +119,7 @@
}
}
-LineBuilder::Run::Run(const InlineItemRun& inlineItemRun, const Display::Rect& logicalRect, const Display::Run::TextContext& textContext, unsigned expansionOpportunityCount)
+LineBuilder::Run::Run(const InlineItemRun& inlineItemRun, const Display::InlineRect& logicalRect, const Display::Run::TextContext& textContext, unsigned expansionOpportunityCount)
: m_layoutBox(&inlineItemRun.layoutBox())
, m_type(inlineItemRun.type())
, m_logicalRect(logicalRect)
@@ -177,7 +177,7 @@
} else
m_initialStrut = { };
- auto lineRect = Display::Rect { constraints.logicalTopLeft, 0_lu, initialLineHeight };
+ auto lineRect = Display::InlineRect { constraints.logicalTopLeft, 0_lu, initialLineHeight };
auto baseline = Display::LineBox::Baseline { initialBaselineOffset, initialLineHeight - initialBaselineOffset };
m_lineBox = Display::LineBox { lineRect, baseline, initialBaselineOffset };
m_lineLogicalWidth = constraints.availableLogicalWidth;
Modified: trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.h (253257 => 253258)
--- trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.h 2019-12-07 18:56:50 UTC (rev 253257)
+++ trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.h 2019-12-07 19:04:39 UTC (rev 253258)
@@ -74,7 +74,7 @@
struct Run {
Run(const InlineItemRun&);
- Run(const InlineItemRun&, const Display::Rect&, const Display::Run::TextContext&, unsigned expansionOpportunityCount);
+ Run(const InlineItemRun&, const Display::InlineRect&, const Display::Run::TextContext&, unsigned expansionOpportunityCount);
Run(Run&&) = default;
Run& operator=(Run&& other) = default;
@@ -86,7 +86,7 @@
const Box& layoutBox() const { return *m_layoutBox; }
const RenderStyle& style() const { return m_layoutBox->style(); }
- const Display::Rect& logicalRect() const { return m_logicalRect; }
+ const Display::InlineRect& logicalRect() const { return m_logicalRect; }
const Optional<Display::Run::TextContext>& textContext() const { return m_textContext; }
bool isCollapsedToVisuallyEmpty() const { return m_isCollapsedToVisuallyEmpty; }
@@ -106,7 +106,7 @@
const Box* m_layoutBox { nullptr };
InlineItem::Type m_type;
- Display::Rect m_logicalRect;
+ Display::InlineRect m_logicalRect;
Optional<Display::Run::TextContext> m_textContext;
unsigned m_expansionOpportunityCount { 0 };
bool m_isCollapsedToVisuallyEmpty { false };