Changeset 147973 in webkit
- Timestamp:
- Apr 8, 2013 6:34:05 PM (11 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r147960 r147973 2737 2737 int yOffset = 0; 2738 2738 while (!renderBlock->isRoot()) { 2739 xOffset += renderBlock->x() ;2740 yOffset += renderBlock->y() ;2739 xOffset += renderBlock->x().toInt(); 2740 yOffset += renderBlock->y().toInt(); 2741 2741 renderBlock = renderBlock->containingBlock(); 2742 2742 } … … 2745 2745 blockRect = IntRect(xOffset + linesBox.x(), yOffset + linesBox.y(), linesBox.width(), linesBox.height()); 2746 2746 } else 2747 blockRect = renderer->absoluteClippedOverflowRect();2747 blockRect = IntRect(renderer->absoluteClippedOverflowRect()); 2748 2748 2749 2749 if (renderer->isText()) { … … 2754 2754 int lineCount = rb->lineCount(); 2755 2755 for (int i = 0; i < lineCount; i++) 2756 blockWidth = max(blockWidth, rb->availableLogicalWidthForLine(i, false) );2756 blockWidth = max(blockWidth, rb->availableLogicalWidthForLine(i, false).toInt()); 2757 2757 2758 2758 blockRect.setWidth(blockWidth); -
trunk/Source/WebKit/blackberry/ChangeLog
r147960 r147973 1 2013-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 1 14 2013-04-08 Jeff Rogers <jrogers@rim.com> 2 15
Note: See TracChangeset
for help on using the changeset viewer.