Changeset 272142 in webkit
- Timestamp:
- Feb 1, 2021, 7:11:08 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
rendering/RenderInline.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r272141 r272142 1 2021-02-01 Antti Koivisto <antti@apple.com> 2 3 [LFC][Integration] RenderInline::offsetLeft needs to call ensureLineBoxes 4 https://bugs.webkit.org/show_bug.cgi?id=221196 5 6 Reviewed by Zalan Bujtas. 7 8 Use ensureLineBoxes for rare API calls before we implement them fully in LFC integration. 9 10 * layout/integration/LayoutIntegrationCoverage.cpp: 11 * rendering/RenderInline.cpp: 12 (WebCore::RenderInline::absoluteQuadsForSelection const): 13 (WebCore::RenderInline::offsetLeft const): 14 (WebCore::RenderInline::offsetTop const): 15 (WebCore::RenderInline::nodeAtPoint): 16 1 17 2021-02-01 Miguel Gomez <magomez@igalia.com> 2 18 -
trunk/Source/WebCore/rendering/RenderInline.cpp
r272062 r272142 428 428 void RenderInline::absoluteQuadsForSelection(Vector<FloatQuad>& quads) const 429 429 { 430 #if ENABLE(LAYOUT_FORMATTING_CONTEXT) 431 if (auto* lineLayout = LayoutIntegration::LineLayout::containing(const_cast<RenderInline&>(*this))) 432 lineLayout->flow().ensureLineBoxes(); 433 #endif 430 434 AbsoluteQuadsGeneratorContext context(this, quads); 431 435 generateLineBoxRects(context); … … 435 439 LayoutUnit RenderInline::offsetLeft() const 436 440 { 441 #if ENABLE(LAYOUT_FORMATTING_CONTEXT) 442 if (auto* lineLayout = LayoutIntegration::LineLayout::containing(const_cast<RenderInline&>(*this))) 443 lineLayout->flow().ensureLineBoxes(); 444 #endif 437 445 LayoutPoint topLeft; 438 446 if (InlineBox* firstBox = firstLineBoxIncludingCulling()) … … 443 451 LayoutUnit RenderInline::offsetTop() const 444 452 { 453 #if ENABLE(LAYOUT_FORMATTING_CONTEXT) 454 if (auto* lineLayout = LayoutIntegration::LineLayout::containing(const_cast<RenderInline&>(*this))) 455 lineLayout->flow().ensureLineBoxes(); 456 #endif 445 457 LayoutPoint topLeft; 446 458 if (InlineBox* firstBox = firstLineBoxIncludingCulling()) … … 517 529 const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction) 518 530 { 531 #if ENABLE(LAYOUT_FORMATTING_CONTEXT) 532 if (auto* lineLayout = LayoutIntegration::LineLayout::containing(const_cast<RenderInline&>(*this))) 533 lineLayout->flow().ensureLineBoxes(); 534 #endif 519 535 return m_lineBoxes.hitTest(this, request, result, locationInContainer, accumulatedOffset, hitTestAction); 520 536 }
Note:
See TracChangeset
for help on using the changeset viewer.