⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 270569 in webkit


Ignore:
Timestamp:
Dec 8, 2020, 10:00:24 PM (6 years ago)
Author:
Lauro Moura
Message:

Unreviewed. Add missing LFC guards around LineLayout usage from r270544

Fix build when LFC is disabled, like in Ubuntu LTS/Debian Stable bots.

  • rendering/RenderObject.cpp:

(WebCore::RenderObject::insertedIntoTree):
(WebCore::RenderObject::willBeRemovedFromTree):

  • rendering/RenderText.cpp:

(WebCore::RenderText::setText):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r270567 r270569  
     12020-12-08  Lauro Moura  <lmoura@igalia.com>
     2
     3        Unreviewed. Add missing LFC guards around LineLayout usage from r270544
     4
     5        Fix build when LFC is disabled, like in Ubuntu LTS/Debian Stable bots.
     6
     7        * rendering/RenderObject.cpp:
     8        (WebCore::RenderObject::insertedIntoTree):
     9        (WebCore::RenderObject::willBeRemovedFromTree):
     10        * rendering/RenderText.cpp:
     11        (WebCore::RenderText::setText):
     12
    1132020-12-08  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/Source/WebCore/rendering/RenderObject.cpp

    r270544 r270569  
    14671467void RenderObject::insertedIntoTree()
    14681468{
     1469#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
    14691470    if (auto* container = LayoutIntegration::LineLayout::blockContainer(*this))
    14701471        container->invalidateLineLayoutPath();
     1472#endif
    14711473
    14721474    // FIXME: We should ASSERT(isRooted()) here but generated content makes some out-of-order insertion.
     
    14771479void RenderObject::willBeRemovedFromTree()
    14781480{
     1481#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
    14791482    if (auto* container = LayoutIntegration::LineLayout::blockContainer(*this))
    14801483        container->invalidateLineLayoutPath();
     1484#endif
    14811485
    14821486    // FIXME: We should ASSERT(isRooted()) but we have some out-of-order removals which would need to be fixed first.
  • trunk/Source/WebCore/rendering/RenderText.cpp

    r270544 r270569  
    14621462    m_knownToHaveNoOverflowAndNoFallbackFonts = false;
    14631463
     1464#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
    14641465    if (auto* container = LayoutIntegration::LineLayout::blockContainer(*this))
    14651466        container->invalidateLineLayoutPath();
     1467#endif
    14661468   
    14671469    if (AXObjectCache* cache = document().existingAXObjectCache())
Note: See TracChangeset for help on using the changeset viewer.