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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 #endif 1970 #endif
1971 1971
1972 void LayoutText::momentarilyRevealLastTypedCharacter( 1972 void LayoutText::momentarilyRevealLastTypedCharacter(
1973 unsigned lastTypedCharacterOffset) { 1973 unsigned lastTypedCharacterOffset) {
1974 if (!gSecureTextTimers) 1974 if (!gSecureTextTimers)
1975 gSecureTextTimers = new SecureTextTimerMap; 1975 gSecureTextTimers = new SecureTextTimerMap;
1976 1976
1977 SecureTextTimer* secureTextTimer = gSecureTextTimers->get(this); 1977 SecureTextTimer* secureTextTimer = gSecureTextTimers->get(this);
1978 if (!secureTextTimer) { 1978 if (!secureTextTimer) {
1979 secureTextTimer = new SecureTextTimer(this); 1979 secureTextTimer = new SecureTextTimer(this);
1980 gSecureTextTimers->add(this, secureTextTimer); 1980 gSecureTextTimers->insert(this, secureTextTimer);
1981 } 1981 }
1982 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); 1982 secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
1983 } 1983 }
1984 1984
1985 PassRefPtr<AbstractInlineTextBox> LayoutText::firstAbstractInlineTextBox() { 1985 PassRefPtr<AbstractInlineTextBox> LayoutText::firstAbstractInlineTextBox() {
1986 return AbstractInlineTextBox::getOrCreate(LineLayoutText(this), 1986 return AbstractInlineTextBox::getOrCreate(LineLayoutText(this),
1987 m_firstTextBox); 1987 m_firstTextBox);
1988 } 1988 }
1989 1989
1990 void LayoutText::invalidateDisplayItemClients( 1990 void LayoutText::invalidateDisplayItemClients(
(...skipping 18 matching lines...) Expand all
2009 LayoutRect rect = LayoutRect( 2009 LayoutRect rect = LayoutRect(
2010 IntRect(firstRunX(), firstRunY(), linesBox.width(), linesBox.height())); 2010 IntRect(firstRunX(), firstRunY(), linesBox.width(), linesBox.height()));
2011 LayoutBlock* block = containingBlock(); 2011 LayoutBlock* block = containingBlock();
2012 if (block && hasTextBoxes()) 2012 if (block && hasTextBoxes())
2013 block->adjustChildDebugRect(rect); 2013 block->adjustChildDebugRect(rect);
2014 2014
2015 return rect; 2015 return rect;
2016 } 2016 }
2017 2017
2018 } // namespace blink 2018 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698