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

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

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 SecureTextTimer(LayoutText* layoutText) 77 SecureTextTimer(LayoutText* layoutText)
78 : TimerBase(Platform::current() 78 : TimerBase(Platform::current()
79 ->currentThread() 79 ->currentThread()
80 ->scheduler() 80 ->scheduler()
81 ->timerTaskRunner()), 81 ->timerTaskRunner()),
82 m_layoutText(layoutText), 82 m_layoutText(layoutText),
83 m_lastTypedCharacterOffset(-1) {} 83 m_lastTypedCharacterOffset(-1) {}
84 84
85 void restartWithNewText(unsigned lastTypedCharacterOffset) { 85 void restartWithNewText(unsigned lastTypedCharacterOffset) {
86 m_lastTypedCharacterOffset = lastTypedCharacterOffset; 86 m_lastTypedCharacterOffset = lastTypedCharacterOffset;
87 if (Settings* settings = m_layoutText->document().settings()) 87 if (Settings* settings = m_layoutText->document().settings()) {
88 startOneShot(settings->passwordEchoDurationInSeconds(), BLINK_FROM_HERE); 88 startOneShot(settings->getPasswordEchoDurationInSeconds(),
89 BLINK_FROM_HERE);
90 }
89 } 91 }
90 void invalidate() { m_lastTypedCharacterOffset = -1; } 92 void invalidate() { m_lastTypedCharacterOffset = -1; }
91 unsigned lastTypedCharacterOffset() { return m_lastTypedCharacterOffset; } 93 unsigned lastTypedCharacterOffset() { return m_lastTypedCharacterOffset; }
92 94
93 private: 95 private:
94 void fired() override { 96 void fired() override {
95 ASSERT(gSecureTextTimers->contains(m_layoutText)); 97 ASSERT(gSecureTextTimers->contains(m_layoutText));
96 m_layoutText->setText( 98 m_layoutText->setText(
97 m_layoutText->text().impl(), 99 m_layoutText->text().impl(),
98 true /* forcing setting text as it may be masked later */); 100 true /* forcing setting text as it may be masked later */);
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 LayoutRect rect = LayoutRect( 1992 LayoutRect rect = LayoutRect(
1991 IntRect(firstRunX(), firstRunY(), linesBox.width(), linesBox.height())); 1993 IntRect(firstRunX(), firstRunY(), linesBox.width(), linesBox.height()));
1992 LayoutBlock* block = containingBlock(); 1994 LayoutBlock* block = containingBlock();
1993 if (block && hasTextBoxes()) 1995 if (block && hasTextBoxes())
1994 block->adjustChildDebugRect(rect); 1996 block->adjustChildDebugRect(rect);
1995 1997
1996 return rect; 1998 return rect;
1997 } 1999 }
1998 2000
1999 } // namespace blink 2001 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutVTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698