Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutInline.cpp

Issue 2872423002: Tweak PaintInvalidationReasons (Closed)
Patch Set: Rebaseline-cl Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698