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

Changeset 238479 in webkit


Ignore:
Timestamp:
Nov 25, 2018, 1:28:33 PM (8 years ago)
Author:
Alan Bujtas
Message:

Fix build after r238472.

  • layout/inlineformatting/InlineFormattingContext.cpp:

(WebCore::Layout::InlineFormattingContext::splitInlineRunIfNeeded const):

  • layout/inlineformatting/InlineFormattingContextGeometry.cpp:

(WebCore::Layout::InlineFormattingContext::Geometry::runWidth):

  • layout/inlineformatting/InlineLineBreaker.cpp:

(WebCore::Layout::InlineLineBreaker::textWidth const):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r238475 r238479  
     12018-11-25  Zalan Bujtas  <zalan@apple.com>
     2
     3        Fix build after r238472.
     4
     5        * layout/inlineformatting/InlineFormattingContext.cpp:
     6        (WebCore::Layout::InlineFormattingContext::splitInlineRunIfNeeded const):
     7        * layout/inlineformatting/InlineFormattingContextGeometry.cpp:
     8        (WebCore::Layout::InlineFormattingContext::Geometry::runWidth):
     9        * layout/inlineformatting/InlineLineBreaker.cpp:
     10        (WebCore::Layout::InlineLineBreaker::textWidth const):
     11
    1122018-11-25  Tim Horton  <timothy_horton@apple.com>
    213
  • trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp

    r238472 r238479  
    163163    };
    164164
    165     for (auto iterator = inlineContent.find(&inlineRun.inlineItem()); iterator != inlineContent.end() && remaningLength > 0; ++iterator) {
     165    for (auto iterator = inlineContent.find(const_cast<InlineItem*>(&inlineRun.inlineItem())); iterator != inlineContent.end() && remaningLength > 0; ++iterator) {
    166166        auto& inlineItem = **iterator;
    167167
  • trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContextGeometry.cpp

    r238472 r238479  
    181181    LayoutUnit width;
    182182    auto startPosition = from;
    183     auto iterator = inlineContent.find(&inlineItem);
     183    auto iterator = inlineContent.find(const_cast<InlineItem*>(&inlineItem));
    184184    auto inlineItemEnd = inlineContent.end();
    185185    while (length) {
  • trunk/Source/WebCore/layout/inlineformatting/InlineLineBreaker.cpp

    r238472 r238479  
    162162    // FIXME: It does not do proper kerning/ligature handling.
    163163    LayoutUnit width;
    164     auto iterator = m_inlineContent.find(&inlineItem);
     164    auto iterator = m_inlineContent.find(const_cast<InlineItem*>(&inlineItem));
    165165    auto inlineItemEnd = m_inlineContent.end();
    166166    while (length) {
Note: See TracChangeset for help on using the changeset viewer.