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

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

Issue 2080593002: Revert of Let FrameView track object paint invalidations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TrackInvalidation
Patch Set: Created 4 years, 6 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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 gSecureTextTimers->add(this, secureTextTimer); 1736 gSecureTextTimers->add(this, secureTextTimer);
1737 } 1737 }
1738 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); 1738 secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
1739 } 1739 }
1740 1740
1741 PassRefPtr<AbstractInlineTextBox> LayoutText::firstAbstractInlineTextBox() 1741 PassRefPtr<AbstractInlineTextBox> LayoutText::firstAbstractInlineTextBox()
1742 { 1742 {
1743 return AbstractInlineTextBox::getOrCreate(LineLayoutText(this), m_firstTextB ox); 1743 return AbstractInlineTextBox::getOrCreate(LineLayoutText(this), m_firstTextB ox);
1744 } 1744 }
1745 1745
1746 void LayoutText::invalidateDisplayItemClients(PaintInvalidationReason invalidati onReason) const 1746 void LayoutText::invalidateDisplayItemClients(const LayoutBoxModelObject& paintI nvalidationContainer, PaintInvalidationReason invalidationReason) const
1747 { 1747 {
1748 LayoutObject::invalidateDisplayItemClients(invalidationReason); 1748 LayoutObject::invalidateDisplayItemClients(paintInvalidationContainer, inval idationReason);
1749 1749
1750 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { 1750 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) {
1751 invalidateDisplayItemClient(*box, invalidationReason); 1751 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box, in validationReason);
1752 if (box->truncation() != cNoTruncation) { 1752 if (box->truncation() != cNoTruncation) {
1753 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) 1753 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox())
1754 invalidateDisplayItemClient(*ellipsisBox, invalidationReason); 1754 paintInvalidationContainer.invalidateDisplayItemClientOnBacking( *ellipsisBox, invalidationReason);
1755 } 1755 }
1756 } 1756 }
1757 } 1757 }
1758 1758
1759 } // namespace blink 1759 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutText.h ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698