| OLD | NEW | 
|     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  Loading... | 
|    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  Loading... | 
|  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 | 
| OLD | NEW |