Fix for 33447, r=serge
git-svn-id: svn://10.0.0.236/trunk@64290 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2071,10 +2071,10 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetWidth(PRUint32 *result)
|
||||
{
|
||||
*result = 0;
|
||||
|
||||
PRUint32 attr = (PRUint32)atol(width);
|
||||
PRInt32 attr = atol(width);
|
||||
|
||||
if(nsnull == strchr(width, '%'))
|
||||
*result = attr;
|
||||
*result = (PRUint32)attr;
|
||||
else
|
||||
{
|
||||
if(mContext == nsnull)
|
||||
@@ -2130,10 +2130,10 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetHeight(PRUint32 *result)
|
||||
{
|
||||
*result = 0;
|
||||
|
||||
PRUint32 attr = (PRUint32)atol(height);
|
||||
PRInt32 attr = atol(height);
|
||||
|
||||
if(nsnull == strchr(height, '%'))
|
||||
*result = attr;
|
||||
*result = (PRUint32)attr;
|
||||
else
|
||||
{
|
||||
if(mContext == nsnull)
|
||||
|
||||
@@ -2071,10 +2071,10 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetWidth(PRUint32 *result)
|
||||
{
|
||||
*result = 0;
|
||||
|
||||
PRUint32 attr = (PRUint32)atol(width);
|
||||
PRInt32 attr = atol(width);
|
||||
|
||||
if(nsnull == strchr(width, '%'))
|
||||
*result = attr;
|
||||
*result = (PRUint32)attr;
|
||||
else
|
||||
{
|
||||
if(mContext == nsnull)
|
||||
@@ -2130,10 +2130,10 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetHeight(PRUint32 *result)
|
||||
{
|
||||
*result = 0;
|
||||
|
||||
PRUint32 attr = (PRUint32)atol(height);
|
||||
PRInt32 attr = atol(height);
|
||||
|
||||
if(nsnull == strchr(height, '%'))
|
||||
*result = attr;
|
||||
*result = (PRUint32)attr;
|
||||
else
|
||||
{
|
||||
if(mContext == nsnull)
|
||||
|
||||
Reference in New Issue
Block a user