2005-08-20 07:13:18 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2002
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
2005-08-20 07:13:39 +00:00
|
|
|
* Brian Ryner <bryner@brianryner.com> (Original Author)
|
2005-08-20 07:13:18 +00:00
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
|
|
|
#include "nsNativeTheme.h"
|
2009-04-01 21:59:02 +00:00
|
|
|
#include "nsIWidget.h"
|
2005-08-20 07:13:18 +00:00
|
|
|
#include "nsIDocument.h"
|
|
|
|
#include "nsIContent.h"
|
|
|
|
#include "nsIFrame.h"
|
|
|
|
#include "nsIPresShell.h"
|
2005-08-20 07:14:04 +00:00
|
|
|
#include "nsPresContext.h"
|
2005-08-20 07:13:18 +00:00
|
|
|
#include "nsIEventStateManager.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsINameSpaceManager.h"
|
|
|
|
#include "nsIDOMHTMLInputElement.h"
|
|
|
|
#include "nsILookAndFeel.h"
|
|
|
|
#include "nsThemeConstants.h"
|
|
|
|
#include "nsIComponentManager.h"
|
2009-01-30 07:19:41 +00:00
|
|
|
#include "nsIDOMNSHTMLInputElement.h"
|
2005-08-20 07:13:18 +00:00
|
|
|
|
|
|
|
nsNativeTheme::nsNativeTheme()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2005-08-20 07:13:35 +00:00
|
|
|
nsIPresShell *
|
2005-08-20 07:14:11 +00:00
|
|
|
nsNativeTheme::GetPresShell(nsIFrame* aFrame)
|
2005-08-20 07:13:18 +00:00
|
|
|
{
|
|
|
|
if (!aFrame)
|
2005-08-20 07:13:35 +00:00
|
|
|
return nsnull;
|
2005-08-20 07:13:18 +00:00
|
|
|
|
2005-08-20 07:14:11 +00:00
|
|
|
// this is a workaround for the egcs 1.1.2 not inliningg
|
|
|
|
// aFrame->GetPresContext(), which causes an undefined symbol
|
|
|
|
nsPresContext *context = aFrame->GetStyleContext()->GetRuleNode()->GetPresContext();
|
|
|
|
return context ? context->GetPresShell() : nsnull;
|
2005-08-20 07:13:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
PRInt32
|
2005-08-20 07:13:20 +00:00
|
|
|
nsNativeTheme::GetContentState(nsIFrame* aFrame, PRUint8 aWidgetType)
|
2005-08-20 07:13:18 +00:00
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return 0;
|
|
|
|
|
2005-08-20 07:13:56 +00:00
|
|
|
PRBool isXULCheckboxRadio =
|
2007-05-09 19:17:17 +00:00
|
|
|
(aWidgetType == NS_THEME_CHECKBOX ||
|
2008-11-03 13:12:59 +00:00
|
|
|
aWidgetType == NS_THEME_RADIO) &&
|
2009-08-24 20:02:07 +00:00
|
|
|
aFrame->GetContent()->IsXUL();
|
2005-08-20 07:13:56 +00:00
|
|
|
if (isXULCheckboxRadio)
|
2005-08-20 07:13:33 +00:00
|
|
|
aFrame = aFrame->GetParent();
|
2005-08-20 07:13:20 +00:00
|
|
|
|
2009-04-14 17:22:04 +00:00
|
|
|
if (!aFrame->GetContent())
|
|
|
|
return 0;
|
|
|
|
|
2005-08-20 07:14:11 +00:00
|
|
|
nsIPresShell *shell = GetPresShell(aFrame);
|
2005-08-20 07:13:18 +00:00
|
|
|
if (!shell)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
PRInt32 flags = 0;
|
2005-08-20 07:14:06 +00:00
|
|
|
shell->GetPresContext()->EventStateManager()->GetContentState(aFrame->GetContent(), flags);
|
2005-08-20 07:13:20 +00:00
|
|
|
|
2008-11-03 13:12:59 +00:00
|
|
|
if (isXULCheckboxRadio && aWidgetType == NS_THEME_RADIO) {
|
2005-08-20 07:13:20 +00:00
|
|
|
if (IsFocused(aFrame))
|
|
|
|
flags |= NS_EVENT_STATE_FOCUS;
|
|
|
|
}
|
|
|
|
|
2005-08-20 07:13:18 +00:00
|
|
|
return flags;
|
|
|
|
}
|
|
|
|
|
|
|
|
PRBool
|
|
|
|
nsNativeTheme::CheckBooleanAttr(nsIFrame* aFrame, nsIAtom* aAtom)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
2005-08-20 07:13:33 +00:00
|
|
|
nsIContent* content = aFrame->GetContent();
|
2009-04-14 17:22:04 +00:00
|
|
|
if (!content)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
2009-08-24 20:02:07 +00:00
|
|
|
if (content->IsHTML())
|
2005-08-20 07:13:57 +00:00
|
|
|
return content->HasAttr(kNameSpaceID_None, aAtom);
|
2005-08-20 07:13:18 +00:00
|
|
|
|
|
|
|
// For XML/XUL elements, an attribute must be equal to the literal
|
|
|
|
// string "true" to be counted as true. An empty string should _not_
|
|
|
|
// be counted as true.
|
2005-10-28 11:25:24 +00:00
|
|
|
return content->AttrValueIs(kNameSpaceID_None, aAtom,
|
|
|
|
NS_LITERAL_STRING("true"), eCaseMatters);
|
2005-08-20 07:13:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
PRInt32
|
2008-03-27 05:36:20 +00:00
|
|
|
nsNativeTheme::CheckIntAttr(nsIFrame* aFrame, nsIAtom* aAtom, PRInt32 defaultValue)
|
2005-08-20 07:13:18 +00:00
|
|
|
{
|
|
|
|
if (!aFrame)
|
2008-03-27 05:36:20 +00:00
|
|
|
return defaultValue;
|
2005-08-20 07:13:18 +00:00
|
|
|
|
|
|
|
nsAutoString attr;
|
2005-08-20 07:13:33 +00:00
|
|
|
aFrame->GetContent()->GetAttr(kNameSpaceID_None, aAtom, attr);
|
2005-08-20 07:13:22 +00:00
|
|
|
PRInt32 err, value = attr.ToInteger(&err);
|
2008-03-27 05:36:20 +00:00
|
|
|
if (attr.IsEmpty() || NS_FAILED(err))
|
|
|
|
return defaultValue;
|
2005-08-20 07:13:18 +00:00
|
|
|
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
PRBool
|
|
|
|
nsNativeTheme::GetCheckedOrSelected(nsIFrame* aFrame, PRBool aCheckSelected)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
2005-08-20 07:13:33 +00:00
|
|
|
nsIContent* content = aFrame->GetContent();
|
2005-08-20 07:13:18 +00:00
|
|
|
|
2009-08-24 20:02:07 +00:00
|
|
|
if (content->IsXUL()) {
|
2005-08-20 07:13:18 +00:00
|
|
|
// For a XUL checkbox or radio button, the state of the parent determines
|
|
|
|
// the checked state
|
2005-08-20 07:13:33 +00:00
|
|
|
aFrame = aFrame->GetParent();
|
2005-08-20 07:13:18 +00:00
|
|
|
} else {
|
|
|
|
// Check for an HTML input element
|
|
|
|
nsCOMPtr<nsIDOMHTMLInputElement> inputElt = do_QueryInterface(content);
|
|
|
|
if (inputElt) {
|
|
|
|
PRBool checked;
|
|
|
|
inputElt->GetChecked(&checked);
|
|
|
|
return checked;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-06-09 06:02:30 +00:00
|
|
|
return CheckBooleanAttr(aFrame, aCheckSelected ? nsWidgetAtoms::selected
|
|
|
|
: nsWidgetAtoms::checked);
|
2005-08-20 07:13:18 +00:00
|
|
|
}
|
|
|
|
|
2009-08-10 21:23:50 +00:00
|
|
|
PRBool
|
|
|
|
nsNativeTheme::IsButtonTypeMenu(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
nsIContent* content = aFrame->GetContent();
|
|
|
|
return content->AttrValueIs(kNameSpaceID_None, nsWidgetAtoms::type,
|
|
|
|
NS_LITERAL_STRING("menu"), eCaseMatters);
|
|
|
|
}
|
|
|
|
|
2009-01-30 07:19:41 +00:00
|
|
|
PRBool
|
|
|
|
nsNativeTheme::GetIndeterminate(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
nsIContent* content = aFrame->GetContent();
|
|
|
|
|
2009-08-24 20:02:07 +00:00
|
|
|
if (content->IsXUL()) {
|
2009-01-30 07:19:41 +00:00
|
|
|
// For a XUL checkbox or radio button, the state of the parent determines
|
|
|
|
// the state
|
|
|
|
return CheckBooleanAttr(aFrame->GetParent(), nsWidgetAtoms::indeterminate);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Check for an HTML input element
|
|
|
|
nsCOMPtr<nsIDOMNSHTMLInputElement> inputElt = do_QueryInterface(content);
|
|
|
|
if (inputElt) {
|
|
|
|
PRBool indeterminate;
|
|
|
|
inputElt->GetIndeterminate(&indeterminate);
|
|
|
|
return indeterminate;
|
|
|
|
}
|
|
|
|
|
|
|
|
return PR_FALSE;
|
|
|
|
}
|
|
|
|
|
2005-08-20 07:13:18 +00:00
|
|
|
PRBool
|
2005-08-20 07:14:04 +00:00
|
|
|
nsNativeTheme::IsWidgetStyled(nsPresContext* aPresContext, nsIFrame* aFrame,
|
2005-08-20 07:13:18 +00:00
|
|
|
PRUint8 aWidgetType)
|
|
|
|
{
|
|
|
|
// Check for specific widgets to see if HTML has overridden the style.
|
2007-10-08 23:11:01 +00:00
|
|
|
return aFrame &&
|
|
|
|
(aWidgetType == NS_THEME_BUTTON ||
|
|
|
|
aWidgetType == NS_THEME_TEXTFIELD ||
|
|
|
|
aWidgetType == NS_THEME_TEXTFIELD_MULTILINE ||
|
|
|
|
aWidgetType == NS_THEME_LISTBOX ||
|
|
|
|
aWidgetType == NS_THEME_DROPDOWN) &&
|
2009-08-24 20:02:07 +00:00
|
|
|
aFrame->GetContent()->IsHTML() &&
|
2008-04-25 23:12:45 +00:00
|
|
|
aPresContext->HasAuthorSpecifiedRules(aFrame,
|
|
|
|
NS_AUTHOR_SPECIFIED_BORDER |
|
2009-04-01 01:07:18 +00:00
|
|
|
NS_AUTHOR_SPECIFIED_BACKGROUND);
|
2005-08-20 07:13:18 +00:00
|
|
|
}
|
2006-06-09 06:02:30 +00:00
|
|
|
|
2008-11-27 22:14:54 +00:00
|
|
|
PRBool
|
|
|
|
nsNativeTheme::IsFrameRTL(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
return aFrame && aFrame->GetStyleVisibility()->mDirection == NS_STYLE_DIRECTION_RTL;
|
|
|
|
}
|
|
|
|
|
2008-01-13 04:13:50 +00:00
|
|
|
// scrollbar button:
|
|
|
|
PRInt32
|
|
|
|
nsNativeTheme::GetScrollbarButtonType(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
static nsIContent::AttrValuesArray strings[] =
|
|
|
|
{&nsWidgetAtoms::scrollbarDownBottom, &nsWidgetAtoms::scrollbarDownTop,
|
|
|
|
&nsWidgetAtoms::scrollbarUpBottom, &nsWidgetAtoms::scrollbarUpTop,
|
|
|
|
nsnull};
|
|
|
|
|
|
|
|
switch (aFrame->GetContent()->FindAttrValueIn(kNameSpaceID_None,
|
|
|
|
nsWidgetAtoms::sbattr,
|
|
|
|
strings, eCaseMatters)) {
|
|
|
|
case 0: return eScrollbarButton_Down | eScrollbarButton_Bottom;
|
|
|
|
case 1: return eScrollbarButton_Down;
|
|
|
|
case 2: return eScrollbarButton_Bottom;
|
|
|
|
case 3: return eScrollbarButton_UpTop;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-06-09 06:02:30 +00:00
|
|
|
// treeheadercell:
|
|
|
|
nsNativeTheme::TreeSortDirection
|
|
|
|
nsNativeTheme::GetTreeSortDirection(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return eTreeSortDirection_Natural;
|
|
|
|
|
|
|
|
static nsIContent::AttrValuesArray strings[] =
|
|
|
|
{&nsWidgetAtoms::descending, &nsWidgetAtoms::ascending, nsnull};
|
|
|
|
switch (aFrame->GetContent()->FindAttrValueIn(kNameSpaceID_None,
|
|
|
|
nsWidgetAtoms::sortdirection,
|
|
|
|
strings, eCaseMatters)) {
|
|
|
|
case 0: return eTreeSortDirection_Descending;
|
|
|
|
case 1: return eTreeSortDirection_Ascending;
|
|
|
|
}
|
|
|
|
|
|
|
|
return eTreeSortDirection_Natural;
|
|
|
|
}
|
|
|
|
|
2008-11-27 22:14:54 +00:00
|
|
|
PRBool
|
|
|
|
nsNativeTheme::IsLastTreeHeaderCell(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
// A tree column picker is always the last header cell.
|
|
|
|
if (aFrame->GetContent()->Tag() == nsWidgetAtoms::treecolpicker)
|
|
|
|
return PR_TRUE;
|
|
|
|
|
|
|
|
// Find the parent tree.
|
|
|
|
nsIContent* parent = aFrame->GetContent()->GetParent();
|
|
|
|
while (parent && parent->Tag() != nsWidgetAtoms::tree) {
|
|
|
|
parent = parent->GetParent();
|
|
|
|
}
|
|
|
|
|
|
|
|
// If the column picker is visible, this can't be the last column.
|
|
|
|
if (parent && !parent->AttrValueIs(kNameSpaceID_None, nsWidgetAtoms::hidecolumnpicker,
|
|
|
|
NS_LITERAL_STRING("true"), eCaseMatters))
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
while ((aFrame = aFrame->GetNextSibling())) {
|
|
|
|
if (aFrame->GetRect().width > 0)
|
|
|
|
return PR_FALSE;
|
|
|
|
}
|
|
|
|
return PR_TRUE;
|
|
|
|
}
|
|
|
|
|
2006-06-09 06:02:30 +00:00
|
|
|
// tab:
|
|
|
|
PRBool
|
|
|
|
nsNativeTheme::IsBottomTab(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
nsAutoString classStr;
|
|
|
|
aFrame->GetContent()->GetAttr(kNameSpaceID_None, nsWidgetAtoms::_class, classStr);
|
|
|
|
return !classStr.IsEmpty() && classStr.Find("tab-bottom") != kNotFound;
|
|
|
|
}
|
|
|
|
|
2006-08-30 21:47:16 +00:00
|
|
|
PRBool
|
|
|
|
nsNativeTheme::IsFirstTab(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
2009-01-02 21:02:50 +00:00
|
|
|
nsIFrame* first = aFrame->GetParent()->GetFirstChild(nsnull);
|
|
|
|
while (first) {
|
|
|
|
if (first->GetRect().width > 0 && first->GetContent()->Tag() == nsWidgetAtoms::tab)
|
|
|
|
return (first == aFrame);
|
|
|
|
first = first->GetNextSibling();
|
|
|
|
}
|
|
|
|
return PR_FALSE;
|
2006-08-30 21:47:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
PRBool
|
|
|
|
nsNativeTheme::IsLastTab(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
2009-01-02 21:02:50 +00:00
|
|
|
while ((aFrame = aFrame->GetNextSibling())) {
|
|
|
|
if (aFrame->GetRect().width > 0 && aFrame->GetContent()->Tag() == nsWidgetAtoms::tab)
|
|
|
|
return PR_FALSE;
|
|
|
|
}
|
|
|
|
return PR_TRUE;
|
2006-08-30 21:47:16 +00:00
|
|
|
}
|
|
|
|
|
2007-12-21 11:17:01 +00:00
|
|
|
PRBool
|
|
|
|
nsNativeTheme::IsHorizontal(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
return !aFrame->GetContent()->AttrValueIs(kNameSpaceID_None, nsWidgetAtoms::orient,
|
|
|
|
nsWidgetAtoms::vertical,
|
|
|
|
eCaseMatters);
|
|
|
|
}
|
|
|
|
|
2008-11-27 22:16:13 +00:00
|
|
|
PRBool
|
|
|
|
nsNativeTheme::IsNextToSelectedTab(nsIFrame* aFrame, PRInt32 aOffset)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
if (aOffset == 0)
|
|
|
|
return IsSelectedTab(aFrame);
|
|
|
|
|
|
|
|
PRInt32 thisTabIndex = -1, selectedTabIndex = -1;
|
|
|
|
|
|
|
|
nsIFrame* currentTab = aFrame->GetParent()->GetFirstChild(NULL);
|
|
|
|
for (PRInt32 i = 0; currentTab; currentTab = currentTab->GetNextSibling()) {
|
|
|
|
if (currentTab->GetRect().width == 0)
|
|
|
|
continue;
|
|
|
|
if (aFrame == currentTab)
|
|
|
|
thisTabIndex = i;
|
|
|
|
if (IsSelectedTab(currentTab))
|
|
|
|
selectedTabIndex = i;
|
|
|
|
++i;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (thisTabIndex == -1 || selectedTabIndex == -1)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
return (thisTabIndex - selectedTabIndex == aOffset);
|
|
|
|
}
|
|
|
|
|
2006-06-09 06:02:30 +00:00
|
|
|
// progressbar:
|
|
|
|
PRBool
|
|
|
|
nsNativeTheme::IsIndeterminateProgress(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
return aFrame->GetContent()->AttrValueIs(kNameSpaceID_None, nsWidgetAtoms::mode,
|
|
|
|
NS_LITERAL_STRING("undetermined"),
|
|
|
|
eCaseMatters);
|
|
|
|
}
|
2009-01-12 19:23:51 +00:00
|
|
|
|
|
|
|
// menupopup:
|
|
|
|
PRBool
|
|
|
|
nsNativeTheme::IsSubmenu(nsIFrame* aFrame, PRBool* aLeftOfParent)
|
|
|
|
{
|
|
|
|
if (!aFrame)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
nsIContent* parentContent = aFrame->GetContent()->GetParent();
|
|
|
|
if (!parentContent || parentContent->Tag() != nsWidgetAtoms::menu)
|
|
|
|
return PR_FALSE;
|
|
|
|
|
|
|
|
nsIFrame* parent = aFrame;
|
|
|
|
while ((parent = parent->GetParent())) {
|
|
|
|
if (parent->GetContent() == parentContent) {
|
|
|
|
if (aLeftOfParent) {
|
2009-01-15 03:27:09 +00:00
|
|
|
nsIntRect selfBounds, parentBounds;
|
2009-01-12 19:23:51 +00:00
|
|
|
aFrame->GetWindow()->GetScreenBounds(selfBounds);
|
|
|
|
parent->GetWindow()->GetScreenBounds(parentBounds);
|
|
|
|
*aLeftOfParent = selfBounds.x < parentBounds.x;
|
|
|
|
}
|
|
|
|
return PR_TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return PR_FALSE;
|
|
|
|
}
|