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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 SecureTextTimer(LayoutText* layoutText) | 75 SecureTextTimer(LayoutText* layoutText) |
76 : m_layoutText(layoutText) | 76 : m_layoutText(layoutText) |
77 , m_lastTypedCharacterOffset(-1) | 77 , m_lastTypedCharacterOffset(-1) |
78 { | 78 { |
79 } | 79 } |
80 | 80 |
81 void restartWithNewText(unsigned lastTypedCharacterOffset) | 81 void restartWithNewText(unsigned lastTypedCharacterOffset) |
82 { | 82 { |
83 m_lastTypedCharacterOffset = lastTypedCharacterOffset; | 83 m_lastTypedCharacterOffset = lastTypedCharacterOffset; |
84 if (Settings* settings = m_layoutText->document().settings()) | 84 if (Settings* settings = m_layoutText->document().settings()) |
85 startOneShot(settings->passwordEchoDurationInSeconds(), FROM_HERE); | 85 startOneShot(settings->passwordEchoDurationInSeconds(), BLINK_FROM_H
ERE); |
86 } | 86 } |
87 void invalidate() { m_lastTypedCharacterOffset = -1; } | 87 void invalidate() { m_lastTypedCharacterOffset = -1; } |
88 unsigned lastTypedCharacterOffset() { return m_lastTypedCharacterOffset; } | 88 unsigned lastTypedCharacterOffset() { return m_lastTypedCharacterOffset; } |
89 | 89 |
90 private: | 90 private: |
91 void fired() override | 91 void fired() override |
92 { | 92 { |
93 ASSERT(gSecureTextTimers->contains(m_layoutText)); | 93 ASSERT(gSecureTextTimers->contains(m_layoutText)); |
94 m_layoutText->setText(m_layoutText->text().impl(), true /* forcing setti
ng text as it may be masked later */); | 94 m_layoutText->setText(m_layoutText->text().impl(), true /* forcing setti
ng text as it may be masked later */); |
95 } | 95 } |
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1885 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { | 1885 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { |
1886 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box, in
validationReason, emptyInvalidationRect, emptyInvalidationRect); | 1886 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box, in
validationReason, emptyInvalidationRect, emptyInvalidationRect); |
1887 if (box->truncation() != cNoTruncation) { | 1887 if (box->truncation() != cNoTruncation) { |
1888 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) | 1888 if (EllipsisBox* ellipsisBox = box->root().ellipsisBox()) |
1889 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(
*ellipsisBox, invalidationReason, emptyInvalidationRect, emptyInvalidationRect); | 1889 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(
*ellipsisBox, invalidationReason, emptyInvalidationRect, emptyInvalidationRect); |
1890 } | 1890 } |
1891 } | 1891 } |
1892 } | 1892 } |
1893 | 1893 |
1894 } // namespace blink | 1894 } // namespace blink |
OLD | NEW |