diff -r 352ba4e9d85c layout/base/nsPresShell.cpp --- a/layout/base/nsPresShell.cpp Sat Sep 20 23:01:34 2008 +0300 +++ b/layout/base/nsPresShell.cpp Mon Sep 22 21:22:48 2008 -0400 @@ -2111,7 +2111,12 @@ nsresult PresShell::SetPrefFocusRules(vo strRule.AppendLiteral("*|*:link:focus, *|*:visited"); // If we only want focus rings on the normal things like links strRule.AppendLiteral(":focus {outline: "); // For example 3px dotted WindowText (maximum 4) strRule.AppendInt(focusRingWidth); +#ifdef MOZ_PLATFORM_HILDON + strRule.AppendLiteral("px solid -moz-mac-focusring !important; -moz-outline-radius: .3em; -moz-outline-offset: .05em; } "); // For example 3px dotted WindowText +#else strRule.AppendLiteral("px dotted WindowText !important; } "); // For example 3px dotted WindowText +#endif + // insert the rules result = mPrefStyleSheet-> InsertRuleInternal(strRule, sInsertPrefSheetRulesAt, &index); @@ -2122,14 +2127,20 @@ nsresult PresShell::SetPrefFocusRules(vo strRule.AppendLiteral("input[type=\"button\"]::-moz-focus-inner, "); strRule.AppendLiteral("input[type=\"submit\"]::-moz-focus-inner { padding: 1px 2px 1px 2px; border: "); strRule.AppendInt(focusRingWidth); +#ifdef MOZ_PLATFORM_HILDON + strRule.AppendLiteral("px solid transparent !important; } "); +#else strRule.AppendLiteral("px dotted transparent !important; } "); +#endif result = mPrefStyleSheet-> InsertRuleInternal(strRule, sInsertPrefSheetRulesAt, &index); NS_ENSURE_SUCCESS(result, result); - + +#ifndef MOZ_PLATFORM_HILDON strRule.AssignLiteral("button:focus::-moz-focus-inner, input[type=\"reset\"]:focus::-moz-focus-inner,"); strRule.AppendLiteral("input[type=\"button\"]:focus::-moz-focus-inner, input[type=\"submit\"]:focus::-moz-focus-inner {"); strRule.AppendLiteral("border-color: ButtonText !important; }"); +#endif result = mPrefStyleSheet-> InsertRuleInternal(strRule, sInsertPrefSheetRulesAt, &index); }