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

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

Issue 1294233004: Subtree caching implementation in blink-core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: s/setSelfNeedsRepaint/setNeedsRepaint/ Created 5 years, 4 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 | Annotate | Revision Log
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 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 gSecureTextTimers->add(this, secureTextTimer); 1863 gSecureTextTimers->add(this, secureTextTimer);
1864 } 1864 }
1865 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); 1865 secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
1866 } 1866 }
1867 1867
1868 PassRefPtr<AbstractInlineTextBox> LayoutText::firstAbstractInlineTextBox() 1868 PassRefPtr<AbstractInlineTextBox> LayoutText::firstAbstractInlineTextBox()
1869 { 1869 {
1870 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox); 1870 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox);
1871 } 1871 }
1872 1872
1873 void LayoutText::invalidateDisplayItemClients(const LayoutBoxModelObject& paintI nvalidationContainer) const 1873 void LayoutText::invalidateDisplayItemClients(const LayoutBoxModelObject& paintI nvalidationContainer)
1874 { 1874 {
1875 LayoutObject::invalidateDisplayItemClients(paintInvalidationContainer); 1875 LayoutObject::invalidateDisplayItemClients(paintInvalidationContainer);
1876 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { 1876 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) {
1877 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box); 1877 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box);
1878 if (box->truncation() != cNoTruncation) { 1878 if (box->truncation() != cNoTruncation) {
1879 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) 1879 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox())
1880 paintInvalidationContainer.invalidateDisplayItemClientOnBacking( *ellipsisBox); 1880 paintInvalidationContainer.invalidateDisplayItemClientOnBacking( *ellipsisBox);
1881 } 1881 }
1882 } 1882 }
1883 } 1883 }
1884 1884
1885 } // namespace blink 1885 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698