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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 } | 1043 } |
1044 return LayoutRect(); | 1044 return LayoutRect(); |
1045 } | 1045 } |
1046 | 1046 |
1047 LayoutRect LayoutInline::localOverflowRectForPaintInvalidation() const | 1047 LayoutRect LayoutInline::localOverflowRectForPaintInvalidation() const |
1048 { | 1048 { |
1049 // If we don't create line boxes, we don't have any invalidations to do. | 1049 // If we don't create line boxes, we don't have any invalidations to do. |
1050 if (!alwaysCreateLineBoxes()) | 1050 if (!alwaysCreateLineBoxes()) |
1051 return LayoutRect(); | 1051 return LayoutRect(); |
1052 | 1052 |
1053 if (style()->visibility() != VISIBLE) | 1053 if (style()->visibility() != EVisibility::Visible) |
1054 return LayoutRect(); | 1054 return LayoutRect(); |
1055 | 1055 |
1056 return visualOverflowRect(); | 1056 return visualOverflowRect(); |
1057 } | 1057 } |
1058 | 1058 |
1059 LayoutRect LayoutInline::visualOverflowRect() const | 1059 LayoutRect LayoutInline::visualOverflowRect() const |
1060 { | 1060 { |
1061 LayoutRect overflowRect = linesVisualOverflowBoundingBox(); | 1061 LayoutRect overflowRect = linesVisualOverflowBoundingBox(); |
1062 LayoutUnit outlineOutset(style()->outlineOutsetExtent()); | 1062 LayoutUnit outlineOutset(style()->outlineOutsetExtent()); |
1063 if (outlineOutset) { | 1063 if (outlineOutset) { |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 | 1329 |
1330 void LayoutInline::computeSelfHitTestRects(Vector<LayoutRect>& rects, const Layo
utPoint& layerOffset) const | 1330 void LayoutInline::computeSelfHitTestRects(Vector<LayoutRect>& rects, const Layo
utPoint& layerOffset) const |
1331 { | 1331 { |
1332 AbsoluteLayoutRectsGeneratorContext context(rects, layerOffset); | 1332 AbsoluteLayoutRectsGeneratorContext context(rects, layerOffset); |
1333 generateLineBoxRects(context); | 1333 generateLineBoxRects(context); |
1334 } | 1334 } |
1335 | 1335 |
1336 void LayoutInline::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions) | 1336 void LayoutInline::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions) |
1337 { | 1337 { |
1338 // Convert the style regions to absolute coordinates. | 1338 // Convert the style regions to absolute coordinates. |
1339 if (style()->visibility() != VISIBLE) | 1339 if (style()->visibility() != EVisibility::Visible) |
1340 return; | 1340 return; |
1341 | 1341 |
1342 if (style()->getDraggableRegionMode() == DraggableRegionNone) | 1342 if (style()->getDraggableRegionMode() == DraggableRegionNone) |
1343 return; | 1343 return; |
1344 | 1344 |
1345 AnnotatedRegionValue region; | 1345 AnnotatedRegionValue region; |
1346 region.draggable = style()->getDraggableRegionMode() == DraggableRegionDrag; | 1346 region.draggable = style()->getDraggableRegionMode() == DraggableRegionDrag; |
1347 region.bounds = LayoutRect(linesBoundingBox()); | 1347 region.bounds = LayoutRect(linesBoundingBox()); |
1348 | 1348 |
1349 LayoutObject* container = containingBlock(); | 1349 LayoutObject* container = containingBlock(); |
1350 if (!container) | 1350 if (!container) |
1351 container = this; | 1351 container = this; |
1352 | 1352 |
1353 FloatPoint absPos = container->localToAbsolute(); | 1353 FloatPoint absPos = container->localToAbsolute(); |
1354 region.bounds.setX(LayoutUnit(absPos.x() + region.bounds.x())); | 1354 region.bounds.setX(LayoutUnit(absPos.x() + region.bounds.x())); |
1355 region.bounds.setY(LayoutUnit(absPos.y() + region.bounds.y())); | 1355 region.bounds.setY(LayoutUnit(absPos.y() + region.bounds.y())); |
1356 | 1356 |
1357 regions.append(region); | 1357 regions.append(region); |
1358 } | 1358 } |
1359 | 1359 |
1360 void LayoutInline::invalidateDisplayItemClients(PaintInvalidationReason invalida
tionReason) const | 1360 void LayoutInline::invalidateDisplayItemClients(PaintInvalidationReason invalida
tionReason) const |
1361 { | 1361 { |
1362 LayoutBoxModelObject::invalidateDisplayItemClients(invalidationReason); | 1362 LayoutBoxModelObject::invalidateDisplayItemClients(invalidationReason); |
1363 | 1363 |
1364 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) | 1364 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) |
1365 invalidateDisplayItemClient(*box, invalidationReason); | 1365 invalidateDisplayItemClient(*box, invalidationReason); |
1366 } | 1366 } |
1367 | 1367 |
1368 } // namespace blink | 1368 } // namespace blink |
OLD | NEW |