зеркало из https://github.com/mozilla/gecko-dev.git
added change hint to parse declaration
This commit is contained in:
Родитель
d221719350
Коммит
191c84a963
|
@ -43,11 +43,12 @@ static NS_DEFINE_IID(kIStyleSheetIID, NS_ISTYLE_SHEET_IID);
|
||||||
// XXX cell-padding, spacing, etc.???
|
// XXX cell-padding, spacing, etc.???
|
||||||
|
|
||||||
struct Selector {
|
struct Selector {
|
||||||
nsString mTag; // weight 1
|
nsAutoString mTag; // weight 1
|
||||||
nsString mID; // weight 100
|
nsAutoString mID; // weight 100
|
||||||
nsString mClass; // weight 10
|
nsAutoString mClass; // weight 10
|
||||||
nsString mPseudoClass; // weight 10 (== class)
|
nsAutoString mPseudoClass; // weight 10 (== class)
|
||||||
nsString mPseudoElement; // weight 10 (== class) ??
|
nsAutoString mPseudoElement; // weight 10 (== class) ??
|
||||||
|
|
||||||
PRUint32 mMask; // which fields have values
|
PRUint32 mMask; // which fields have values
|
||||||
|
|
||||||
Selector();
|
Selector();
|
||||||
|
@ -205,7 +206,8 @@ public:
|
||||||
|
|
||||||
NS_IMETHOD ParseAndAppendDeclaration(const nsString& aBuffer,
|
NS_IMETHOD ParseAndAppendDeclaration(const nsString& aBuffer,
|
||||||
nsIURL* aBaseURL,
|
nsIURL* aBaseURL,
|
||||||
nsICSSDeclaration& aDeclaration);
|
nsICSSDeclaration* aDeclaration,
|
||||||
|
PRInt32* aHint);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PRBool GetToken(PRInt32* aErrorCode, PRBool aSkipWS);
|
PRBool GetToken(PRInt32* aErrorCode, PRBool aSkipWS);
|
||||||
|
@ -228,9 +230,10 @@ protected:
|
||||||
PRBool aCheckForBraces);
|
PRBool aCheckForBraces);
|
||||||
PRBool ParseDeclaration(PRInt32* aErrorCode,
|
PRBool ParseDeclaration(PRInt32* aErrorCode,
|
||||||
nsICSSDeclaration* aDeclaration,
|
nsICSSDeclaration* aDeclaration,
|
||||||
PRBool aCheckForBraces);
|
PRBool aCheckForBraces,
|
||||||
|
PRInt32* aChangeHint);
|
||||||
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
||||||
nsICSSDeclaration* aDeclaration);
|
nsICSSDeclaration* aDeclaration, PRInt32* aChangeHint);
|
||||||
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
||||||
nsICSSDeclaration* aDeclaration, PRInt32 aID);
|
nsICSSDeclaration* aDeclaration, PRInt32 aID);
|
||||||
|
|
||||||
|
@ -455,7 +458,8 @@ CSSParserImpl::ParseDeclarations(const nsString& aDeclaration,
|
||||||
NS_METHOD
|
NS_METHOD
|
||||||
CSSParserImpl::ParseAndAppendDeclaration(const nsString& aBuffer,
|
CSSParserImpl::ParseAndAppendDeclaration(const nsString& aBuffer,
|
||||||
nsIURL* aBaseURL,
|
nsIURL* aBaseURL,
|
||||||
nsICSSDeclaration& aDeclaration)
|
nsICSSDeclaration* aDeclaration,
|
||||||
|
PRInt32* aHint)
|
||||||
{
|
{
|
||||||
nsString* str = new nsString(aBuffer);
|
nsString* str = new nsString(aBuffer);
|
||||||
if (nsnull == str) {
|
if (nsnull == str) {
|
||||||
|
@ -477,7 +481,9 @@ CSSParserImpl::ParseAndAppendDeclaration(const nsString& aBuffer,
|
||||||
mInHead = PR_FALSE;
|
mInHead = PR_FALSE;
|
||||||
PRInt32 errorCode = NS_OK;
|
PRInt32 errorCode = NS_OK;
|
||||||
|
|
||||||
ParseDeclaration(&errorCode, &aDeclaration, PR_FALSE);
|
ParseDeclaration(&errorCode, aDeclaration, PR_FALSE, aHint);
|
||||||
|
// XXX
|
||||||
|
aHint = NS_STYLE_HINT_UNKNOWN;
|
||||||
|
|
||||||
delete mScanner;
|
delete mScanner;
|
||||||
mScanner = nsnull;
|
mScanner = nsnull;
|
||||||
|
@ -1026,7 +1032,8 @@ CSSParserImpl::ParseDeclarationBlock(PRInt32* aErrorCode,
|
||||||
if (NS_OK == NS_NewCSSDeclaration(&declaration)) {
|
if (NS_OK == NS_NewCSSDeclaration(&declaration)) {
|
||||||
PRInt32 count = 0;
|
PRInt32 count = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (ParseDeclaration(aErrorCode, declaration, aCheckForBraces)) {
|
PRInt32 hint;
|
||||||
|
if (ParseDeclaration(aErrorCode, declaration, aCheckForBraces, &hint)) {
|
||||||
count++; // count declarations
|
count++; // count declarations
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1130,8 +1137,11 @@ PRBool CSSParserImpl::ParseColorComponent(PRInt32* aErrorCode,
|
||||||
PRBool
|
PRBool
|
||||||
CSSParserImpl::ParseDeclaration(PRInt32* aErrorCode,
|
CSSParserImpl::ParseDeclaration(PRInt32* aErrorCode,
|
||||||
nsICSSDeclaration* aDeclaration,
|
nsICSSDeclaration* aDeclaration,
|
||||||
PRBool aCheckForBraces)
|
PRBool aCheckForBraces,
|
||||||
|
PRInt32* aChangeHint)
|
||||||
{
|
{
|
||||||
|
*aChangeHint = NS_STYLE_HINT_UNKNOWN;
|
||||||
|
|
||||||
// Get property name
|
// Get property name
|
||||||
nsCSSToken* tk = &mToken;
|
nsCSSToken* tk = &mToken;
|
||||||
char propertyName[100];
|
char propertyName[100];
|
||||||
|
@ -1158,7 +1168,7 @@ CSSParserImpl::ParseDeclaration(PRInt32* aErrorCode,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Map property name to it's ID and then parse the property
|
// Map property name to it's ID and then parse the property
|
||||||
if (!ParseProperty(aErrorCode, propertyName, aDeclaration)) {
|
if (!ParseProperty(aErrorCode, propertyName, aDeclaration, aChangeHint)) {
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1711,7 +1721,8 @@ PRBool CSSParserImpl::ParseBoxProperties(PRInt32* aErrorCode,
|
||||||
|
|
||||||
PRBool CSSParserImpl::ParseProperty(PRInt32* aErrorCode,
|
PRBool CSSParserImpl::ParseProperty(PRInt32* aErrorCode,
|
||||||
const char* aName,
|
const char* aName,
|
||||||
nsICSSDeclaration* aDeclaration)
|
nsICSSDeclaration* aDeclaration,
|
||||||
|
PRInt32* aChangeHint)
|
||||||
{
|
{
|
||||||
PRInt32 id = nsCSSProps::LookupName(aName);
|
PRInt32 id = nsCSSProps::LookupName(aName);
|
||||||
if (id < 0) {
|
if (id < 0) {
|
||||||
|
@ -1739,6 +1750,8 @@ PRBool CSSParserImpl::ParseProperty(PRInt32* aErrorCode,
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*aChangeHint = nsCSSProps::kHintTable[id];
|
||||||
|
|
||||||
return ParseProperty(aErrorCode, aName, aDeclaration, id);
|
return ParseProperty(aErrorCode, aName, aDeclaration, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,11 +43,12 @@ static NS_DEFINE_IID(kIStyleSheetIID, NS_ISTYLE_SHEET_IID);
|
||||||
// XXX cell-padding, spacing, etc.???
|
// XXX cell-padding, spacing, etc.???
|
||||||
|
|
||||||
struct Selector {
|
struct Selector {
|
||||||
nsString mTag; // weight 1
|
nsAutoString mTag; // weight 1
|
||||||
nsString mID; // weight 100
|
nsAutoString mID; // weight 100
|
||||||
nsString mClass; // weight 10
|
nsAutoString mClass; // weight 10
|
||||||
nsString mPseudoClass; // weight 10 (== class)
|
nsAutoString mPseudoClass; // weight 10 (== class)
|
||||||
nsString mPseudoElement; // weight 10 (== class) ??
|
nsAutoString mPseudoElement; // weight 10 (== class) ??
|
||||||
|
|
||||||
PRUint32 mMask; // which fields have values
|
PRUint32 mMask; // which fields have values
|
||||||
|
|
||||||
Selector();
|
Selector();
|
||||||
|
@ -205,7 +206,8 @@ public:
|
||||||
|
|
||||||
NS_IMETHOD ParseAndAppendDeclaration(const nsString& aBuffer,
|
NS_IMETHOD ParseAndAppendDeclaration(const nsString& aBuffer,
|
||||||
nsIURL* aBaseURL,
|
nsIURL* aBaseURL,
|
||||||
nsICSSDeclaration& aDeclaration);
|
nsICSSDeclaration* aDeclaration,
|
||||||
|
PRInt32* aHint);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PRBool GetToken(PRInt32* aErrorCode, PRBool aSkipWS);
|
PRBool GetToken(PRInt32* aErrorCode, PRBool aSkipWS);
|
||||||
|
@ -228,9 +230,10 @@ protected:
|
||||||
PRBool aCheckForBraces);
|
PRBool aCheckForBraces);
|
||||||
PRBool ParseDeclaration(PRInt32* aErrorCode,
|
PRBool ParseDeclaration(PRInt32* aErrorCode,
|
||||||
nsICSSDeclaration* aDeclaration,
|
nsICSSDeclaration* aDeclaration,
|
||||||
PRBool aCheckForBraces);
|
PRBool aCheckForBraces,
|
||||||
|
PRInt32* aChangeHint);
|
||||||
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
||||||
nsICSSDeclaration* aDeclaration);
|
nsICSSDeclaration* aDeclaration, PRInt32* aChangeHint);
|
||||||
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
||||||
nsICSSDeclaration* aDeclaration, PRInt32 aID);
|
nsICSSDeclaration* aDeclaration, PRInt32 aID);
|
||||||
|
|
||||||
|
@ -455,7 +458,8 @@ CSSParserImpl::ParseDeclarations(const nsString& aDeclaration,
|
||||||
NS_METHOD
|
NS_METHOD
|
||||||
CSSParserImpl::ParseAndAppendDeclaration(const nsString& aBuffer,
|
CSSParserImpl::ParseAndAppendDeclaration(const nsString& aBuffer,
|
||||||
nsIURL* aBaseURL,
|
nsIURL* aBaseURL,
|
||||||
nsICSSDeclaration& aDeclaration)
|
nsICSSDeclaration* aDeclaration,
|
||||||
|
PRInt32* aHint)
|
||||||
{
|
{
|
||||||
nsString* str = new nsString(aBuffer);
|
nsString* str = new nsString(aBuffer);
|
||||||
if (nsnull == str) {
|
if (nsnull == str) {
|
||||||
|
@ -477,7 +481,9 @@ CSSParserImpl::ParseAndAppendDeclaration(const nsString& aBuffer,
|
||||||
mInHead = PR_FALSE;
|
mInHead = PR_FALSE;
|
||||||
PRInt32 errorCode = NS_OK;
|
PRInt32 errorCode = NS_OK;
|
||||||
|
|
||||||
ParseDeclaration(&errorCode, &aDeclaration, PR_FALSE);
|
ParseDeclaration(&errorCode, aDeclaration, PR_FALSE, aHint);
|
||||||
|
// XXX
|
||||||
|
aHint = NS_STYLE_HINT_UNKNOWN;
|
||||||
|
|
||||||
delete mScanner;
|
delete mScanner;
|
||||||
mScanner = nsnull;
|
mScanner = nsnull;
|
||||||
|
@ -1026,7 +1032,8 @@ CSSParserImpl::ParseDeclarationBlock(PRInt32* aErrorCode,
|
||||||
if (NS_OK == NS_NewCSSDeclaration(&declaration)) {
|
if (NS_OK == NS_NewCSSDeclaration(&declaration)) {
|
||||||
PRInt32 count = 0;
|
PRInt32 count = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (ParseDeclaration(aErrorCode, declaration, aCheckForBraces)) {
|
PRInt32 hint;
|
||||||
|
if (ParseDeclaration(aErrorCode, declaration, aCheckForBraces, &hint)) {
|
||||||
count++; // count declarations
|
count++; // count declarations
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1130,8 +1137,11 @@ PRBool CSSParserImpl::ParseColorComponent(PRInt32* aErrorCode,
|
||||||
PRBool
|
PRBool
|
||||||
CSSParserImpl::ParseDeclaration(PRInt32* aErrorCode,
|
CSSParserImpl::ParseDeclaration(PRInt32* aErrorCode,
|
||||||
nsICSSDeclaration* aDeclaration,
|
nsICSSDeclaration* aDeclaration,
|
||||||
PRBool aCheckForBraces)
|
PRBool aCheckForBraces,
|
||||||
|
PRInt32* aChangeHint)
|
||||||
{
|
{
|
||||||
|
*aChangeHint = NS_STYLE_HINT_UNKNOWN;
|
||||||
|
|
||||||
// Get property name
|
// Get property name
|
||||||
nsCSSToken* tk = &mToken;
|
nsCSSToken* tk = &mToken;
|
||||||
char propertyName[100];
|
char propertyName[100];
|
||||||
|
@ -1158,7 +1168,7 @@ CSSParserImpl::ParseDeclaration(PRInt32* aErrorCode,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Map property name to it's ID and then parse the property
|
// Map property name to it's ID and then parse the property
|
||||||
if (!ParseProperty(aErrorCode, propertyName, aDeclaration)) {
|
if (!ParseProperty(aErrorCode, propertyName, aDeclaration, aChangeHint)) {
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1711,7 +1721,8 @@ PRBool CSSParserImpl::ParseBoxProperties(PRInt32* aErrorCode,
|
||||||
|
|
||||||
PRBool CSSParserImpl::ParseProperty(PRInt32* aErrorCode,
|
PRBool CSSParserImpl::ParseProperty(PRInt32* aErrorCode,
|
||||||
const char* aName,
|
const char* aName,
|
||||||
nsICSSDeclaration* aDeclaration)
|
nsICSSDeclaration* aDeclaration,
|
||||||
|
PRInt32* aChangeHint)
|
||||||
{
|
{
|
||||||
PRInt32 id = nsCSSProps::LookupName(aName);
|
PRInt32 id = nsCSSProps::LookupName(aName);
|
||||||
if (id < 0) {
|
if (id < 0) {
|
||||||
|
@ -1739,6 +1750,8 @@ PRBool CSSParserImpl::ParseProperty(PRInt32* aErrorCode,
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*aChangeHint = nsCSSProps::kHintTable[id];
|
||||||
|
|
||||||
return ParseProperty(aErrorCode, aName, aDeclaration, id);
|
return ParseProperty(aErrorCode, aName, aDeclaration, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,11 +43,12 @@ static NS_DEFINE_IID(kIStyleSheetIID, NS_ISTYLE_SHEET_IID);
|
||||||
// XXX cell-padding, spacing, etc.???
|
// XXX cell-padding, spacing, etc.???
|
||||||
|
|
||||||
struct Selector {
|
struct Selector {
|
||||||
nsString mTag; // weight 1
|
nsAutoString mTag; // weight 1
|
||||||
nsString mID; // weight 100
|
nsAutoString mID; // weight 100
|
||||||
nsString mClass; // weight 10
|
nsAutoString mClass; // weight 10
|
||||||
nsString mPseudoClass; // weight 10 (== class)
|
nsAutoString mPseudoClass; // weight 10 (== class)
|
||||||
nsString mPseudoElement; // weight 10 (== class) ??
|
nsAutoString mPseudoElement; // weight 10 (== class) ??
|
||||||
|
|
||||||
PRUint32 mMask; // which fields have values
|
PRUint32 mMask; // which fields have values
|
||||||
|
|
||||||
Selector();
|
Selector();
|
||||||
|
@ -205,7 +206,8 @@ public:
|
||||||
|
|
||||||
NS_IMETHOD ParseAndAppendDeclaration(const nsString& aBuffer,
|
NS_IMETHOD ParseAndAppendDeclaration(const nsString& aBuffer,
|
||||||
nsIURL* aBaseURL,
|
nsIURL* aBaseURL,
|
||||||
nsICSSDeclaration& aDeclaration);
|
nsICSSDeclaration* aDeclaration,
|
||||||
|
PRInt32* aHint);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PRBool GetToken(PRInt32* aErrorCode, PRBool aSkipWS);
|
PRBool GetToken(PRInt32* aErrorCode, PRBool aSkipWS);
|
||||||
|
@ -228,9 +230,10 @@ protected:
|
||||||
PRBool aCheckForBraces);
|
PRBool aCheckForBraces);
|
||||||
PRBool ParseDeclaration(PRInt32* aErrorCode,
|
PRBool ParseDeclaration(PRInt32* aErrorCode,
|
||||||
nsICSSDeclaration* aDeclaration,
|
nsICSSDeclaration* aDeclaration,
|
||||||
PRBool aCheckForBraces);
|
PRBool aCheckForBraces,
|
||||||
|
PRInt32* aChangeHint);
|
||||||
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
||||||
nsICSSDeclaration* aDeclaration);
|
nsICSSDeclaration* aDeclaration, PRInt32* aChangeHint);
|
||||||
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
PRBool ParseProperty(PRInt32* aErrorCode, const char* aName,
|
||||||
nsICSSDeclaration* aDeclaration, PRInt32 aID);
|
nsICSSDeclaration* aDeclaration, PRInt32 aID);
|
||||||
|
|
||||||
|
@ -455,7 +458,8 @@ CSSParserImpl::ParseDeclarations(const nsString& aDeclaration,
|
||||||
NS_METHOD
|
NS_METHOD
|
||||||
CSSParserImpl::ParseAndAppendDeclaration(const nsString& aBuffer,
|
CSSParserImpl::ParseAndAppendDeclaration(const nsString& aBuffer,
|
||||||
nsIURL* aBaseURL,
|
nsIURL* aBaseURL,
|
||||||
nsICSSDeclaration& aDeclaration)
|
nsICSSDeclaration* aDeclaration,
|
||||||
|
PRInt32* aHint)
|
||||||
{
|
{
|
||||||
nsString* str = new nsString(aBuffer);
|
nsString* str = new nsString(aBuffer);
|
||||||
if (nsnull == str) {
|
if (nsnull == str) {
|
||||||
|
@ -477,7 +481,9 @@ CSSParserImpl::ParseAndAppendDeclaration(const nsString& aBuffer,
|
||||||
mInHead = PR_FALSE;
|
mInHead = PR_FALSE;
|
||||||
PRInt32 errorCode = NS_OK;
|
PRInt32 errorCode = NS_OK;
|
||||||
|
|
||||||
ParseDeclaration(&errorCode, &aDeclaration, PR_FALSE);
|
ParseDeclaration(&errorCode, aDeclaration, PR_FALSE, aHint);
|
||||||
|
// XXX
|
||||||
|
aHint = NS_STYLE_HINT_UNKNOWN;
|
||||||
|
|
||||||
delete mScanner;
|
delete mScanner;
|
||||||
mScanner = nsnull;
|
mScanner = nsnull;
|
||||||
|
@ -1026,7 +1032,8 @@ CSSParserImpl::ParseDeclarationBlock(PRInt32* aErrorCode,
|
||||||
if (NS_OK == NS_NewCSSDeclaration(&declaration)) {
|
if (NS_OK == NS_NewCSSDeclaration(&declaration)) {
|
||||||
PRInt32 count = 0;
|
PRInt32 count = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (ParseDeclaration(aErrorCode, declaration, aCheckForBraces)) {
|
PRInt32 hint;
|
||||||
|
if (ParseDeclaration(aErrorCode, declaration, aCheckForBraces, &hint)) {
|
||||||
count++; // count declarations
|
count++; // count declarations
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1130,8 +1137,11 @@ PRBool CSSParserImpl::ParseColorComponent(PRInt32* aErrorCode,
|
||||||
PRBool
|
PRBool
|
||||||
CSSParserImpl::ParseDeclaration(PRInt32* aErrorCode,
|
CSSParserImpl::ParseDeclaration(PRInt32* aErrorCode,
|
||||||
nsICSSDeclaration* aDeclaration,
|
nsICSSDeclaration* aDeclaration,
|
||||||
PRBool aCheckForBraces)
|
PRBool aCheckForBraces,
|
||||||
|
PRInt32* aChangeHint)
|
||||||
{
|
{
|
||||||
|
*aChangeHint = NS_STYLE_HINT_UNKNOWN;
|
||||||
|
|
||||||
// Get property name
|
// Get property name
|
||||||
nsCSSToken* tk = &mToken;
|
nsCSSToken* tk = &mToken;
|
||||||
char propertyName[100];
|
char propertyName[100];
|
||||||
|
@ -1158,7 +1168,7 @@ CSSParserImpl::ParseDeclaration(PRInt32* aErrorCode,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Map property name to it's ID and then parse the property
|
// Map property name to it's ID and then parse the property
|
||||||
if (!ParseProperty(aErrorCode, propertyName, aDeclaration)) {
|
if (!ParseProperty(aErrorCode, propertyName, aDeclaration, aChangeHint)) {
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1711,7 +1721,8 @@ PRBool CSSParserImpl::ParseBoxProperties(PRInt32* aErrorCode,
|
||||||
|
|
||||||
PRBool CSSParserImpl::ParseProperty(PRInt32* aErrorCode,
|
PRBool CSSParserImpl::ParseProperty(PRInt32* aErrorCode,
|
||||||
const char* aName,
|
const char* aName,
|
||||||
nsICSSDeclaration* aDeclaration)
|
nsICSSDeclaration* aDeclaration,
|
||||||
|
PRInt32* aChangeHint)
|
||||||
{
|
{
|
||||||
PRInt32 id = nsCSSProps::LookupName(aName);
|
PRInt32 id = nsCSSProps::LookupName(aName);
|
||||||
if (id < 0) {
|
if (id < 0) {
|
||||||
|
@ -1739,6 +1750,8 @@ PRBool CSSParserImpl::ParseProperty(PRInt32* aErrorCode,
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*aChangeHint = nsCSSProps::kHintTable[id];
|
||||||
|
|
||||||
return ParseProperty(aErrorCode, aName, aDeclaration, id);
|
return ParseProperty(aErrorCode, aName, aDeclaration, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче