Changeset 147973 in webkit


Ignore:
Timestamp:
Apr 8, 2013 6:34:05 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] WebPage: fix build due to type mismatches
https://bugs.webkit.org/show_bug.cgi?id=114148

Patch by Alberto Garcia <agarcia@igalia.com> on 2013-04-08
Reviewed by Darin Adler.

Add explicit conversions between LayoutUnit and int, and between
LayoutRect and IntRect.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::rectForNode):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r147960 r147973  
    27372737        int yOffset = 0;
    27382738        while (!renderBlock->isRoot()) {
    2739             xOffset += renderBlock->x();
    2740             yOffset += renderBlock->y();
     2739            xOffset += renderBlock->x().toInt();
     2740            yOffset += renderBlock->y().toInt();
    27412741            renderBlock = renderBlock->containingBlock();
    27422742        }
     
    27452745        blockRect = IntRect(xOffset + linesBox.x(), yOffset + linesBox.y(), linesBox.width(), linesBox.height());
    27462746    } else
    2747         blockRect = renderer->absoluteClippedOverflowRect();
     2747        blockRect = IntRect(renderer->absoluteClippedOverflowRect());
    27482748
    27492749    if (renderer->isText()) {
     
    27542754        int lineCount = rb->lineCount();
    27552755        for (int i = 0; i < lineCount; i++)
    2756             blockWidth = max(blockWidth, rb->availableLogicalWidthForLine(i, false));
     2756            blockWidth = max(blockWidth, rb->availableLogicalWidthForLine(i, false).toInt());
    27572757
    27582758        blockRect.setWidth(blockWidth);
  • trunk/Source/WebKit/blackberry/ChangeLog

    r147960 r147973  
     12013-04-08  Alberto Garcia  <agarcia@igalia.com>
     2
     3        [BlackBerry] WebPage: fix build due to type mismatches
     4        https://bugs.webkit.org/show_bug.cgi?id=114148
     5
     6        Reviewed by Darin Adler.
     7
     8        Add explicit conversions between LayoutUnit and int, and between
     9        LayoutRect and IntRect.
     10
     11        * Api/WebPage.cpp:
     12        (BlackBerry::WebKit::WebPagePrivate::rectForNode):
     13
    1142013-04-08  Jeff Rogers  <jrogers@rim.com>
    215
Note: See TracChangeset for help on using the changeset viewer.