OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 pos.move(box->locationOffset()); // FIXME: Snap offsets? crbug.c
om/350474 | 1312 pos.move(box->locationOffset()); // FIXME: Snap offsets? crbug.c
om/350474 |
1313 box->addFocusRingRects(rects, flooredIntPoint(pos), paintContain
er); | 1313 box->addFocusRingRects(rects, flooredIntPoint(pos), paintContain
er); |
1314 } | 1314 } |
1315 } else { | 1315 } else { |
1316 current->addFocusRingRects(rects, additionalOffset, paintContainer); | 1316 current->addFocusRingRects(rects, additionalOffset, paintContainer); |
1317 } | 1317 } |
1318 } | 1318 } |
1319 } | 1319 } |
1320 | 1320 |
1321 // FIXME: In repaint-after-layout, we should be able to change the logic to remo
ve the need for this function. See crbug.com/368416. | 1321 // FIXME: In repaint-after-layout, we should be able to change the logic to remo
ve the need for this function. See crbug.com/368416. |
1322 LayoutPoint RenderObject::positionFromPaintInvalidationContainer(const RenderLay
erModelObject* paintInvalidationContainer) const | 1322 LayoutPoint RenderObject::positionFromPaintInvalidationContainer(const RenderLay
erModelObject* paintInvalidationContainer, const PaintInvalidationState* paintIn
validationState) const |
1323 { | 1323 { |
1324 // FIXME: This assert should be re-enabled when we move paint invalidation t
o after compositing update. crbug.com/360286 | 1324 // FIXME: This assert should be re-enabled when we move paint invalidation t
o after compositing update. crbug.com/360286 |
1325 // ASSERT(containerForPaintInvalidation() == paintInvalidationContainer); | 1325 // ASSERT(containerForPaintInvalidation() == paintInvalidationContainer); |
1326 | 1326 |
1327 LayoutPoint offset = isBox() ? toRenderBox(this)->location() : LayoutPoint()
; | 1327 LayoutPoint offset = isBox() ? toRenderBox(this)->location() : LayoutPoint()
; |
1328 if (paintInvalidationContainer == this) | 1328 if (paintInvalidationContainer == this) |
1329 return offset; | 1329 return offset; |
1330 | 1330 |
1331 return roundedIntPoint(localToContainerPoint(offset, paintInvalidationContai
ner)); | 1331 return roundedIntPoint(localToContainerPoint(offset, paintInvalidationContai
ner, 0, 0, paintInvalidationState)); |
1332 } | 1332 } |
1333 | 1333 |
1334 IntRect RenderObject::absoluteBoundingBoxRect() const | 1334 IntRect RenderObject::absoluteBoundingBoxRect() const |
1335 { | 1335 { |
1336 Vector<FloatQuad> quads; | 1336 Vector<FloatQuad> quads; |
1337 absoluteQuads(quads); | 1337 absoluteQuads(quads); |
1338 | 1338 |
1339 size_t n = quads.size(); | 1339 size_t n = quads.size(); |
1340 if (!n) | 1340 if (!n) |
1341 return IntRect(); | 1341 return IntRect(); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1467 } | 1467 } |
1468 | 1468 |
1469 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> jsonObjectForPaintInvali
dationInfo(const LayoutRect& rect, const String& invalidationReason) | 1469 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> jsonObjectForPaintInvali
dationInfo(const LayoutRect& rect, const String& invalidationReason) |
1470 { | 1470 { |
1471 TracedValue value; | 1471 TracedValue value; |
1472 addJsonObjectForRect(value, "rect", rect); | 1472 addJsonObjectForRect(value, "rect", rect); |
1473 value.setString("invalidation_reason", invalidationReason); | 1473 value.setString("invalidation_reason", invalidationReason); |
1474 return value.finish(); | 1474 return value.finish(); |
1475 } | 1475 } |
1476 | 1476 |
1477 LayoutRect RenderObject::computePaintInvalidationRect(const RenderLayerModelObje
ct* paintInvalidationContainer) const | 1477 LayoutRect RenderObject::computePaintInvalidationRect(const RenderLayerModelObje
ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS
tate) const |
1478 { | 1478 { |
1479 return clippedOverflowRectForPaintInvalidation(paintInvalidationContainer); | 1479 return clippedOverflowRectForPaintInvalidation(paintInvalidationContainer, p
aintInvalidationState); |
1480 } | 1480 } |
1481 | 1481 |
1482 void RenderObject::invalidatePaintUsingContainer(const RenderLayerModelObject* p
aintInvalidationContainer, const LayoutRect& r, InvalidationReason invalidationR
eason) const | 1482 void RenderObject::invalidatePaintUsingContainer(const RenderLayerModelObject* p
aintInvalidationContainer, const LayoutRect& r, InvalidationReason invalidationR
eason) const |
1483 { | 1483 { |
1484 if (r.isEmpty()) | 1484 if (r.isEmpty()) |
1485 return; | 1485 return; |
1486 | 1486 |
1487 // FIXME: This should be an assert, but editing/selection can trigger this c
ase to invalidate | 1487 // FIXME: This should be an assert, but editing/selection can trigger this c
ase to invalidate |
1488 // the selection. crbug.com/368140. | 1488 // the selection. crbug.com/368140. |
1489 if (!isRooted()) | 1489 if (!isRooted()) |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1528 return; // Don't invalidate paints if we're printing. | 1528 return; // Don't invalidate paints if we're printing. |
1529 | 1529 |
1530 // FIXME: really, we're in the paint invalidation phase here, and the follow
ing queries are legal. | 1530 // FIXME: really, we're in the paint invalidation phase here, and the follow
ing queries are legal. |
1531 // Until those states are fully fledged, I'll just disable the ASSERTS. | 1531 // Until those states are fully fledged, I'll just disable the ASSERTS. |
1532 DisableCompositingQueryAsserts disabler; | 1532 DisableCompositingQueryAsserts disabler; |
1533 const RenderLayerModelObject* paintInvalidationContainer = containerForPaint
Invalidation(); | 1533 const RenderLayerModelObject* paintInvalidationContainer = containerForPaint
Invalidation(); |
1534 LayoutRect paintInvalidationRect = boundsRectForPaintInvalidation(paintInval
idationContainer); | 1534 LayoutRect paintInvalidationRect = boundsRectForPaintInvalidation(paintInval
idationContainer); |
1535 invalidatePaintUsingContainer(paintInvalidationContainer, paintInvalidationR
ect, InvalidationPaint); | 1535 invalidatePaintUsingContainer(paintInvalidationContainer, paintInvalidationR
ect, InvalidationPaint); |
1536 } | 1536 } |
1537 | 1537 |
1538 LayoutRect RenderObject::boundsRectForPaintInvalidation(const RenderLayerModelOb
ject* paintInvalidationContainer) const | 1538 LayoutRect RenderObject::boundsRectForPaintInvalidation(const RenderLayerModelOb
ject* paintInvalidationContainer, const PaintInvalidationState* paintInvalidatio
nState) const |
1539 { | 1539 { |
1540 if (!paintInvalidationContainer) | 1540 if (!paintInvalidationContainer) |
1541 return computePaintInvalidationRect(paintInvalidationContainer); | 1541 return computePaintInvalidationRect(paintInvalidationContainer, paintInv
alidationState); |
1542 return RenderLayer::computePaintInvalidationRect(this, paintInvalidationCont
ainer->layer()); | 1542 return RenderLayer::computePaintInvalidationRect(this, paintInvalidationCont
ainer->layer(), paintInvalidationState); |
1543 } | 1543 } |
1544 | 1544 |
1545 void RenderObject::invalidatePaintRectangle(const LayoutRect& r) const | 1545 void RenderObject::invalidatePaintRectangle(const LayoutRect& r) const |
1546 { | 1546 { |
1547 if (!isRooted()) | 1547 if (!isRooted()) |
1548 return; | 1548 return; |
1549 | 1549 |
1550 if (view()->document().printing()) | 1550 if (view()->document().printing()) |
1551 return; // Don't invalidate paints if we're printing. | 1551 return; // Don't invalidate paints if we're printing. |
1552 | 1552 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1589 return "layer"; | 1589 return "layer"; |
1590 case InvalidationPaint: | 1590 case InvalidationPaint: |
1591 return "invalidate paint"; | 1591 return "invalidate paint"; |
1592 case InvalidationPaintRectangle: | 1592 case InvalidationPaintRectangle: |
1593 return "invalidate paint rectangle"; | 1593 return "invalidate paint rectangle"; |
1594 } | 1594 } |
1595 ASSERT_NOT_REACHED(); | 1595 ASSERT_NOT_REACHED(); |
1596 return ""; | 1596 return ""; |
1597 } | 1597 } |
1598 | 1598 |
1599 void RenderObject::invalidateTreeAfterLayout(const RenderLayerModelObject& paint
InvalidationContainer) | 1599 void RenderObject::invalidateTreeAfterLayout(const PaintInvalidationState& paint
InvalidationState) |
1600 { | 1600 { |
1601 // If we didn't need paint invalidation then our children don't need as well
. | 1601 // If we didn't need paint invalidation then our children don't need as well
. |
1602 // Skip walking down the tree as everything should be fine below us. | 1602 // Skip walking down the tree as everything should be fine below us. |
1603 if (!shouldCheckForPaintInvalidationAfterLayout()) | 1603 if (!shouldCheckForPaintInvalidationAfterLayout()) |
1604 return; | 1604 return; |
1605 | 1605 |
1606 clearPaintInvalidationState(); | 1606 clearPaintInvalidationState(); |
1607 | 1607 |
1608 for (RenderObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { | 1608 for (RenderObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { |
1609 if (!child->isOutOfFlowPositioned()) | 1609 if (!child->isOutOfFlowPositioned()) |
1610 child->invalidateTreeAfterLayout(paintInvalidationContainer); | 1610 child->invalidateTreeAfterLayout(paintInvalidationState); |
1611 } | 1611 } |
1612 } | 1612 } |
1613 | 1613 |
1614 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> jsonObjectForOldAndNewRe
cts(const LayoutRect& oldRect, const LayoutRect& newRect) | 1614 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> jsonObjectForOldAndNewRe
cts(const LayoutRect& oldRect, const LayoutRect& newRect) |
1615 { | 1615 { |
1616 TracedValue value; | 1616 TracedValue value; |
1617 addJsonObjectForRect(value, "old", oldRect); | 1617 addJsonObjectForRect(value, "old", oldRect); |
1618 addJsonObjectForRect(value, "new", newRect); | 1618 addJsonObjectForRect(value, "new", newRect); |
1619 return value.finish(); | 1619 return value.finish(); |
1620 } | 1620 } |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1723 { | 1723 { |
1724 if (shouldInvalidateOverflowForPaint()) | 1724 if (shouldInvalidateOverflowForPaint()) |
1725 invalidatePaintForOverflow(); | 1725 invalidatePaintForOverflow(); |
1726 } | 1726 } |
1727 | 1727 |
1728 bool RenderObject::checkForPaintInvalidation() const | 1728 bool RenderObject::checkForPaintInvalidation() const |
1729 { | 1729 { |
1730 return !document().view()->needsFullPaintInvalidation() && everHadLayout(); | 1730 return !document().view()->needsFullPaintInvalidation() && everHadLayout(); |
1731 } | 1731 } |
1732 | 1732 |
1733 LayoutRect RenderObject::rectWithOutlineForPaintInvalidation(const RenderLayerMo
delObject* paintInvalidationContainer, LayoutUnit outlineWidth) const | 1733 LayoutRect RenderObject::rectWithOutlineForPaintInvalidation(const RenderLayerMo
delObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInval
idationState* paintInvalidationState) const |
1734 { | 1734 { |
1735 LayoutRect r(clippedOverflowRectForPaintInvalidation(paintInvalidationContai
ner)); | 1735 LayoutRect r(clippedOverflowRectForPaintInvalidation(paintInvalidationContai
ner, paintInvalidationState)); |
1736 r.inflate(outlineWidth); | 1736 r.inflate(outlineWidth); |
1737 return r; | 1737 return r; |
1738 } | 1738 } |
1739 | 1739 |
1740 LayoutRect RenderObject::clippedOverflowRectForPaintInvalidation(const RenderLay
erModelObject*) const | 1740 LayoutRect RenderObject::clippedOverflowRectForPaintInvalidation(const RenderLay
erModelObject*, const PaintInvalidationState*) const |
1741 { | 1741 { |
1742 ASSERT_NOT_REACHED(); | 1742 ASSERT_NOT_REACHED(); |
1743 return LayoutRect(); | 1743 return LayoutRect(); |
1744 } | 1744 } |
1745 | 1745 |
1746 void RenderObject::mapRectToPaintInvalidationBacking(const RenderLayerModelObjec
t* paintInvalidationContainer, LayoutRect& rect, bool fixed) const | 1746 void RenderObject::mapRectToPaintInvalidationBacking(const RenderLayerModelObjec
t* paintInvalidationContainer, LayoutRect& rect, bool fixed, const PaintInvalida
tionState* paintInvalidationState) const |
1747 { | 1747 { |
1748 if (paintInvalidationContainer == this) | 1748 if (paintInvalidationContainer == this) |
1749 return; | 1749 return; |
1750 | 1750 |
1751 if (RenderObject* o = parent()) { | 1751 if (RenderObject* o = parent()) { |
1752 if (o->isRenderBlockFlow()) { | 1752 if (o->isRenderBlockFlow()) { |
1753 RenderBlock* cb = toRenderBlock(o); | 1753 RenderBlock* cb = toRenderBlock(o); |
1754 if (cb->hasColumns()) | 1754 if (cb->hasColumns()) |
1755 cb->adjustRectForColumns(rect); | 1755 cb->adjustRectForColumns(rect); |
1756 } | 1756 } |
1757 | 1757 |
1758 if (o->hasOverflowClip()) { | 1758 if (o->hasOverflowClip()) { |
1759 RenderBox* boxParent = toRenderBox(o); | 1759 RenderBox* boxParent = toRenderBox(o); |
1760 boxParent->applyCachedClipAndScrollOffsetForRepaint(rect); | 1760 boxParent->applyCachedClipAndScrollOffsetForRepaint(rect); |
1761 if (rect.isEmpty()) | 1761 if (rect.isEmpty()) |
1762 return; | 1762 return; |
1763 } | 1763 } |
1764 | 1764 |
1765 o->mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, f
ixed); | 1765 o->mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, f
ixed, paintInvalidationState); |
1766 } | 1766 } |
1767 } | 1767 } |
1768 | 1768 |
1769 void RenderObject::computeFloatRectForPaintInvalidation(const RenderLayerModelOb
ject*, FloatRect&, bool) const | 1769 void RenderObject::computeFloatRectForPaintInvalidation(const RenderLayerModelOb
ject*, FloatRect&, bool, const PaintInvalidationState*) const |
1770 { | 1770 { |
1771 ASSERT_NOT_REACHED(); | 1771 ASSERT_NOT_REACHED(); |
1772 } | 1772 } |
1773 | 1773 |
1774 void RenderObject::dirtyLinesFromChangedChild(RenderObject*) | 1774 void RenderObject::dirtyLinesFromChangedChild(RenderObject*) |
1775 { | 1775 { |
1776 } | 1776 } |
1777 | 1777 |
1778 #ifndef NDEBUG | 1778 #ifndef NDEBUG |
1779 | 1779 |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2309 } | 2309 } |
2310 | 2310 |
2311 FloatQuad RenderObject::absoluteToLocalQuad(const FloatQuad& quad, MapCoordinate
sFlags mode) const | 2311 FloatQuad RenderObject::absoluteToLocalQuad(const FloatQuad& quad, MapCoordinate
sFlags mode) const |
2312 { | 2312 { |
2313 TransformState transformState(TransformState::UnapplyInverseTransformDirecti
on, quad.boundingBox().center(), quad); | 2313 TransformState transformState(TransformState::UnapplyInverseTransformDirecti
on, quad.boundingBox().center(), quad); |
2314 mapAbsoluteToLocalPoint(mode, transformState); | 2314 mapAbsoluteToLocalPoint(mode, transformState); |
2315 transformState.flatten(); | 2315 transformState.flatten(); |
2316 return transformState.lastPlanarQuad(); | 2316 return transformState.lastPlanarQuad(); |
2317 } | 2317 } |
2318 | 2318 |
2319 void RenderObject::mapLocalToContainer(const RenderLayerModelObject* paintInvali
dationContainer, TransformState& transformState, MapCoordinatesFlags mode, bool*
wasFixed) const | 2319 void RenderObject::mapLocalToContainer(const RenderLayerModelObject* paintInvali
dationContainer, TransformState& transformState, MapCoordinatesFlags mode, bool*
wasFixed, const PaintInvalidationState* paintInvalidationState) const |
2320 { | 2320 { |
2321 if (paintInvalidationContainer == this) | 2321 if (paintInvalidationContainer == this) |
2322 return; | 2322 return; |
2323 | 2323 |
2324 RenderObject* o = parent(); | 2324 RenderObject* o = parent(); |
2325 if (!o) | 2325 if (!o) |
2326 return; | 2326 return; |
2327 | 2327 |
2328 // FIXME: this should call offsetFromContainer to share code, but I'm not su
re it's ever called. | 2328 // FIXME: this should call offsetFromContainer to share code, but I'm not su
re it's ever called. |
2329 LayoutPoint centerPoint = roundedLayoutPoint(transformState.mappedPoint()); | 2329 LayoutPoint centerPoint = roundedLayoutPoint(transformState.mappedPoint()); |
2330 if (mode & ApplyContainerFlip && o->isBox()) { | 2330 if (mode & ApplyContainerFlip && o->isBox()) { |
2331 if (o->style()->isFlippedBlocksWritingMode()) | 2331 if (o->style()->isFlippedBlocksWritingMode()) |
2332 transformState.move(toRenderBox(o)->flipForWritingModeIncludingColum
ns(roundedLayoutPoint(transformState.mappedPoint())) - centerPoint); | 2332 transformState.move(toRenderBox(o)->flipForWritingModeIncludingColum
ns(roundedLayoutPoint(transformState.mappedPoint())) - centerPoint); |
2333 mode &= ~ApplyContainerFlip; | 2333 mode &= ~ApplyContainerFlip; |
2334 } | 2334 } |
2335 | 2335 |
2336 transformState.move(o->columnOffset(roundedLayoutPoint(transformState.mapped
Point()))); | 2336 transformState.move(o->columnOffset(roundedLayoutPoint(transformState.mapped
Point()))); |
2337 | 2337 |
2338 if (o->hasOverflowClip()) | 2338 if (o->hasOverflowClip()) |
2339 transformState.move(-toRenderBox(o)->scrolledContentOffset()); | 2339 transformState.move(-toRenderBox(o)->scrolledContentOffset()); |
2340 | 2340 |
2341 o->mapLocalToContainer(paintInvalidationContainer, transformState, mode, was
Fixed); | 2341 o->mapLocalToContainer(paintInvalidationContainer, transformState, mode, was
Fixed, paintInvalidationState); |
2342 } | 2342 } |
2343 | 2343 |
2344 const RenderObject* RenderObject::pushMappingToContainer(const RenderLayerModelO
bject* ancestorToStopAt, RenderGeometryMap& geometryMap) const | 2344 const RenderObject* RenderObject::pushMappingToContainer(const RenderLayerModelO
bject* ancestorToStopAt, RenderGeometryMap& geometryMap) const |
2345 { | 2345 { |
2346 ASSERT_UNUSED(ancestorToStopAt, ancestorToStopAt != this); | 2346 ASSERT_UNUSED(ancestorToStopAt, ancestorToStopAt != this); |
2347 | 2347 |
2348 RenderObject* container = parent(); | 2348 RenderObject* container = parent(); |
2349 if (!container) | 2349 if (!container) |
2350 return 0; | 2350 return 0; |
2351 | 2351 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2402 { | 2402 { |
2403 // Track the point at the center of the quad's bounding box. As mapLocalToCo
ntainer() calls offsetFromContainer(), | 2403 // Track the point at the center of the quad's bounding box. As mapLocalToCo
ntainer() calls offsetFromContainer(), |
2404 // it will use that point as the reference point to decide which column's tr
ansform to apply in multiple-column blocks. | 2404 // it will use that point as the reference point to decide which column's tr
ansform to apply in multiple-column blocks. |
2405 TransformState transformState(TransformState::ApplyTransformDirection, local
Quad.boundingBox().center(), localQuad); | 2405 TransformState transformState(TransformState::ApplyTransformDirection, local
Quad.boundingBox().center(), localQuad); |
2406 mapLocalToContainer(paintInvalidationContainer, transformState, mode | Apply
ContainerFlip | UseTransforms, wasFixed); | 2406 mapLocalToContainer(paintInvalidationContainer, transformState, mode | Apply
ContainerFlip | UseTransforms, wasFixed); |
2407 transformState.flatten(); | 2407 transformState.flatten(); |
2408 | 2408 |
2409 return transformState.lastPlanarQuad(); | 2409 return transformState.lastPlanarQuad(); |
2410 } | 2410 } |
2411 | 2411 |
2412 FloatPoint RenderObject::localToContainerPoint(const FloatPoint& localPoint, con
st RenderLayerModelObject* paintInvalidationContainer, MapCoordinatesFlags mode,
bool* wasFixed) const | 2412 FloatPoint RenderObject::localToContainerPoint(const FloatPoint& localPoint, con
st RenderLayerModelObject* paintInvalidationContainer, MapCoordinatesFlags mode,
bool* wasFixed, const PaintInvalidationState* paintInvalidationState) const |
2413 { | 2413 { |
2414 TransformState transformState(TransformState::ApplyTransformDirection, local
Point); | 2414 TransformState transformState(TransformState::ApplyTransformDirection, local
Point); |
2415 mapLocalToContainer(paintInvalidationContainer, transformState, mode | Apply
ContainerFlip | UseTransforms, wasFixed); | 2415 mapLocalToContainer(paintInvalidationContainer, transformState, mode | Apply
ContainerFlip | UseTransforms, wasFixed, paintInvalidationState); |
2416 transformState.flatten(); | 2416 transformState.flatten(); |
2417 | 2417 |
2418 return transformState.lastPlanarPoint(); | 2418 return transformState.lastPlanarPoint(); |
2419 } | 2419 } |
2420 | 2420 |
2421 LayoutSize RenderObject::offsetFromContainer(const RenderObject* o, const Layout
Point& point, bool* offsetDependsOnPoint) const | 2421 LayoutSize RenderObject::offsetFromContainer(const RenderObject* o, const Layout
Point& point, bool* offsetDependsOnPoint) const |
2422 { | 2422 { |
2423 ASSERT(o == container()); | 2423 ASSERT(o == container()); |
2424 | 2424 |
2425 LayoutSize offset = o->columnOffset(point); | 2425 LayoutSize offset = o->columnOffset(point); |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3445 { | 3445 { |
3446 if (object1) { | 3446 if (object1) { |
3447 const WebCore::RenderObject* root = object1; | 3447 const WebCore::RenderObject* root = object1; |
3448 while (root->parent()) | 3448 while (root->parent()) |
3449 root = root->parent(); | 3449 root = root->parent(); |
3450 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3450 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3451 } | 3451 } |
3452 } | 3452 } |
3453 | 3453 |
3454 #endif | 3454 #endif |
OLD | NEW |