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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: 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 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 #endif 1967 #endif
1968 1968
1969 void LayoutText::momentarilyRevealLastTypedCharacter( 1969 void LayoutText::momentarilyRevealLastTypedCharacter(
1970 unsigned lastTypedCharacterOffset) { 1970 unsigned lastTypedCharacterOffset) {
1971 if (!gSecureTextTimers) 1971 if (!gSecureTextTimers)
1972 gSecureTextTimers = new SecureTextTimerMap; 1972 gSecureTextTimers = new SecureTextTimerMap;
1973 1973
1974 SecureTextTimer* secureTextTimer = gSecureTextTimers->get(this); 1974 SecureTextTimer* secureTextTimer = gSecureTextTimers->get(this);
1975 if (!secureTextTimer) { 1975 if (!secureTextTimer) {
1976 secureTextTimer = new SecureTextTimer(this); 1976 secureTextTimer = new SecureTextTimer(this);
1977 gSecureTextTimers->add(this, secureTextTimer); 1977 gSecureTextTimers->insert(this, secureTextTimer);
1978 } 1978 }
1979 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); 1979 secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
1980 } 1980 }
1981 1981
1982 PassRefPtr<AbstractInlineTextBox> LayoutText::firstAbstractInlineTextBox() { 1982 PassRefPtr<AbstractInlineTextBox> LayoutText::firstAbstractInlineTextBox() {
1983 return AbstractInlineTextBox::getOrCreate(LineLayoutText(this), 1983 return AbstractInlineTextBox::getOrCreate(LineLayoutText(this),
1984 m_firstTextBox); 1984 m_firstTextBox);
1985 } 1985 }
1986 1986
1987 void LayoutText::invalidateDisplayItemClients( 1987 void LayoutText::invalidateDisplayItemClients(
(...skipping 18 matching lines...) Expand all
2006 LayoutRect rect = LayoutRect( 2006 LayoutRect rect = LayoutRect(
2007 IntRect(firstRunX(), firstRunY(), linesBox.width(), linesBox.height())); 2007 IntRect(firstRunX(), firstRunY(), linesBox.width(), linesBox.height()));
2008 LayoutBlock* block = containingBlock(); 2008 LayoutBlock* block = containingBlock();
2009 if (block && hasTextBoxes()) 2009 if (block && hasTextBoxes())
2010 block->adjustChildDebugRect(rect); 2010 block->adjustChildDebugRect(rect);
2011 2011
2012 return rect; 2012 return rect;
2013 } 2013 }
2014 2014
2015 } // namespace blink 2015 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698