mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 40412: image inputs should send x and y not .x and .y if no name; r=harishd
This commit is contained in:
parent
27099452d0
commit
40819e4ba8
@ -406,7 +406,7 @@ nsImageControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
|
||||
|
||||
nsAutoString name;
|
||||
nsresult result = GetName(&name);
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == result) {
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == result && (name.Length() > 0)) {
|
||||
aNames[0] = name;
|
||||
aNames[0].AppendWithConversion(".x");
|
||||
aNames[1] = name;
|
||||
|
@ -406,7 +406,7 @@ nsImageControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
|
||||
|
||||
nsAutoString name;
|
||||
nsresult result = GetName(&name);
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == result) {
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == result && (name.Length() > 0)) {
|
||||
aNames[0] = name;
|
||||
aNames[0].AppendWithConversion(".x");
|
||||
aNames[1] = name;
|
||||
|
Loading…
Reference in New Issue
Block a user