Changeset 112061 in webkit
- Timestamp:
- Mar 26, 2012, 1:35:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/subpixellayout/Source/WebCore/rendering/RenderListMarker.cpp
r111854 r112061 1111 1111 return; 1112 1112 1113 IntPoint boxOrigin(roundedIntPoint(paintOffset + location()));1114 IntRect overflowRect(pixelSnappedIntRect(visualOverflowRect()));1113 LayoutPoint boxOrigin(paintOffset + location()); 1114 LayoutRect overflowRect(visualOverflowRect()); 1115 1115 overflowRect.moveBy(boxOrigin); 1116 1116 overflowRect.inflate(maximalOutlineSize(paintInfo.phase)); 1117 1117 1118 if (!paintInfo.rect.intersects( overflowRect))1118 if (!paintInfo.rect.intersects(pixelSnappedIntRect(overflowRect))) 1119 1119 return; 1120 1120 1121 IntRect box(boxOrigin, frameRect().pixelSnappedSize());1121 LayoutRect box(boxOrigin, size()); 1122 1122 1123 1123 IntRect marker = getRelativeMarkerRect(); 1124 marker.moveBy( boxOrigin);1124 marker.moveBy(roundedIntPoint(boxOrigin)); 1125 1125 1126 1126 GraphicsContext* context = paintInfo.context; … … 1259 1259 GraphicsContextStateSaver stateSaver(*context, false); 1260 1260 if (!style()->isHorizontalWritingMode()) { 1261 marker.moveBy( -boxOrigin);1261 marker.moveBy(roundedIntPoint(-boxOrigin)); 1262 1262 marker = marker.transposedRect(); 1263 marker.move (box.x(), box.y() - logicalHeight());1263 marker.moveBy(IntPoint(roundToInt(box.x()), roundToInt(box.y() - logicalHeight()))); 1264 1264 stateSaver.save(); 1265 1265 context->translate(marker.x(), marker.maxY()); … … 1268 1268 } 1269 1269 1270 LayoutPoint textOrigin = LayoutPoint(marker.x(), marker.y() + style()->fontMetrics().ascent());1270 IntPoint textOrigin = IntPoint(marker.x(), marker.y() + style()->fontMetrics().ascent()); 1271 1271 1272 1272 if (type == Asterisks || type == Footnotes) … … 1287 1287 const UChar suffix = listMarkerSuffix(type, m_listItem->value()); 1288 1288 if (style()->isLeftToRightDirection()) { 1289 LayoutUnit width = font.width(textRun);1289 int width = font.width(textRun); 1290 1290 context->drawText(font, textRun, textOrigin); 1291 1291 UChar suffixSpace[2] = { suffix, ' ' }; … … 1294 1294 UChar spaceSuffix[2] = { ' ', suffix }; 1295 1295 TextRun spaceSuffixRun = RenderBlock::constructTextRun(this, font, spaceSuffix, 2, style()); 1296 LayoutUnit width = font.width(spaceSuffixRun);1296 int width = font.width(spaceSuffixRun); 1297 1297 context->drawText(font, spaceSuffixRun, textOrigin); 1298 1298 context->drawText(font, textRun, textOrigin + IntSize(width, 0));
Note:
See TracChangeset
for help on using the changeset viewer.