| 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. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. |
| 5 * All rights reserved. | 5 * All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1434 | 1434 |
| 1435 return Style()->IsHorizontalWritingMode() ? logical_offset | 1435 return Style()->IsHorizontalWritingMode() ? logical_offset |
| 1436 : logical_offset.TransposedSize(); | 1436 : logical_offset.TransposedSize(); |
| 1437 } | 1437 } |
| 1438 | 1438 |
| 1439 void LayoutInline::ImageChanged(WrappedImagePtr, const IntRect*) { | 1439 void LayoutInline::ImageChanged(WrappedImagePtr, const IntRect*) { |
| 1440 if (!Parent()) | 1440 if (!Parent()) |
| 1441 return; | 1441 return; |
| 1442 | 1442 |
| 1443 // FIXME: We can do better. | 1443 // FIXME: We can do better. |
| 1444 SetShouldDoFullPaintInvalidation(); | 1444 SetShouldDoFullPaintInvalidation(PaintInvalidationReason::kImage); |
| 1445 } | 1445 } |
| 1446 | 1446 |
| 1447 namespace { | 1447 namespace { |
| 1448 | 1448 |
| 1449 class AbsoluteLayoutRectsGeneratorContext { | 1449 class AbsoluteLayoutRectsGeneratorContext { |
| 1450 public: | 1450 public: |
| 1451 AbsoluteLayoutRectsGeneratorContext(Vector<LayoutRect>& rects, | 1451 AbsoluteLayoutRectsGeneratorContext(Vector<LayoutRect>& rects, |
| 1452 const LayoutPoint& accumulated_offset) | 1452 const LayoutPoint& accumulated_offset) |
| 1453 : rects_(rects), accumulated_offset_(accumulated_offset) {} | 1453 : rects_(rects), accumulated_offset_(accumulated_offset) {} |
| 1454 | 1454 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1551 paint_invalidator.InvalidateDisplayItemClient(*box, invalidation_reason); | 1551 paint_invalidator.InvalidateDisplayItemClient(*box, invalidation_reason); |
| 1552 } | 1552 } |
| 1553 | 1553 |
| 1554 // TODO(lunalu): Not to just dump 0, 0 as the x and y here | 1554 // TODO(lunalu): Not to just dump 0, 0 as the x and y here |
| 1555 LayoutRect LayoutInline::DebugRect() const { | 1555 LayoutRect LayoutInline::DebugRect() const { |
| 1556 IntRect lines_box = EnclosingIntRect(LinesBoundingBox()); | 1556 IntRect lines_box = EnclosingIntRect(LinesBoundingBox()); |
| 1557 return LayoutRect(IntRect(0, 0, lines_box.Width(), lines_box.Height())); | 1557 return LayoutRect(IntRect(0, 0, lines_box.Width(), lines_box.Height())); |
| 1558 } | 1558 } |
| 1559 | 1559 |
| 1560 } // namespace blink | 1560 } // namespace blink |
| OLD | NEW |