Bug 773534 - Show briefly the typed character for <input type=password>. r=mwu
authorVivien Nicolas <21@vingtetun.org>
Sun, 15 Jul 2012 01:05:54 +0200
changeset 104129 4a87bb77ff983c57a9d04eeb230772c2147a33cc
parent 104128 4826b702f9125228417c985a03d678827a179532
child 104130 70a4f4292ef4f7253b2fda776832aa87dc77f087
push id1316
push userakeybl@mozilla.com
push dateMon, 27 Aug 2012 22:37:00 +0000
treeherdermozilla-beta@db4b09302ee2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmwu
bugs773534
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 773534 - Show briefly the typed character for <input type=password>. r=mwu
widget/gonk/nsLookAndFeel.cpp
widget/gonk/nsLookAndFeel.h
--- a/widget/gonk/nsLookAndFeel.cpp
+++ b/widget/gonk/nsLookAndFeel.cpp
@@ -369,8 +369,14 @@ nsLookAndFeel::GetFontImpl(FontID aID, n
     aFontName.AssignLiteral("\"Droid Sans\"");
     aFontStyle.style = NS_FONT_STYLE_NORMAL;
     aFontStyle.weight = NS_FONT_WEIGHT_NORMAL;
     aFontStyle.stretch = NS_FONT_STRETCH_NORMAL;
     aFontStyle.size = 9.0 * 96.0f / 72.0f;
     aFontStyle.systemFont = true;
     return true;
 }
+
+/*virtual*/
+bool
+nsLookAndFeel::GetEchoPasswordImpl() {
+    return true;
+}
--- a/widget/gonk/nsLookAndFeel.h
+++ b/widget/gonk/nsLookAndFeel.h
@@ -10,14 +10,15 @@
 class nsLookAndFeel : public nsXPLookAndFeel
 {
 public:
     nsLookAndFeel();
     virtual ~nsLookAndFeel();
 
     virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle);
     virtual nsresult GetIntImpl(IntID aID, PRInt32 &aResult);
+    virtual bool GetEchoPasswordImpl();
 
 protected:
     virtual nsresult NativeGetColor(ColorID aID, nscolor &aColor);
 };
 
 #endif