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

Side by Side Diff: Source/core/rendering/RenderText.cpp

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 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
« no previous file with comments | « Source/core/rendering/RenderProgress.cpp ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 SecureTextTimer(RenderText* renderText) 72 SecureTextTimer(RenderText* renderText)
73 : m_renderText(renderText) 73 : m_renderText(renderText)
74 , m_lastTypedCharacterOffset(-1) 74 , m_lastTypedCharacterOffset(-1)
75 { 75 {
76 } 76 }
77 77
78 void restartWithNewText(unsigned lastTypedCharacterOffset) 78 void restartWithNewText(unsigned lastTypedCharacterOffset)
79 { 79 {
80 m_lastTypedCharacterOffset = lastTypedCharacterOffset; 80 m_lastTypedCharacterOffset = lastTypedCharacterOffset;
81 if (Settings* settings = m_renderText->document().settings()) 81 if (Settings* settings = m_renderText->document().settings())
82 startOneShot(settings->passwordEchoDurationInSeconds()); 82 startOneShot(settings->passwordEchoDurationInSeconds(), FROM_HERE);
83 } 83 }
84 void invalidate() { m_lastTypedCharacterOffset = -1; } 84 void invalidate() { m_lastTypedCharacterOffset = -1; }
85 unsigned lastTypedCharacterOffset() { return m_lastTypedCharacterOffset; } 85 unsigned lastTypedCharacterOffset() { return m_lastTypedCharacterOffset; }
86 86
87 private: 87 private:
88 virtual void fired() OVERRIDE 88 virtual void fired() OVERRIDE
89 { 89 {
90 ASSERT(gSecureTextTimers->contains(m_renderText)); 90 ASSERT(gSecureTextTimers->contains(m_renderText));
91 m_renderText->setText(m_renderText->text().impl(), true /* forcing setti ng text as it may be masked later */); 91 m_renderText->setText(m_renderText->text().impl(), true /* forcing setti ng text as it may be masked later */);
92 } 92 }
(...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after
1878 } 1878 }
1879 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); 1879 secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
1880 } 1880 }
1881 1881
1882 PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox() 1882 PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox()
1883 { 1883 {
1884 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox); 1884 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox);
1885 } 1885 }
1886 1886
1887 } // namespace WebCore 1887 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderProgress.cpp ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698