зеркало из https://github.com/mozilla/pjs.git
Composer's table cell properties' dialog did not allow to reset width and hight and the switch between TD and TH did not work (regression): b=230165, r=timeless, sr=dbaron
This commit is contained in:
Родитель
e2859af89c
Коммит
9611f22db6
|
@ -2061,7 +2061,7 @@ nsHTMLEditor::SwitchTableCellHeaderType(nsIDOMElement *aSourceCell, nsIDOMElemen
|
|||
|
||||
// Set to the opposite of current type
|
||||
nsCOMPtr<nsIAtom> atom = nsEditor::GetTag(aSourceCell);
|
||||
nsString newCellType( (atom == nsEditProperty::th) ? NS_LITERAL_STRING("th") : NS_LITERAL_STRING("td"));
|
||||
nsString newCellType( (atom == nsEditProperty::td) ? NS_LITERAL_STRING("th") : NS_LITERAL_STRING("td"));
|
||||
|
||||
// This creates new node, moves children, copies attributes (PR_TRUE)
|
||||
// and manages the selection!
|
||||
|
|
|
@ -122,7 +122,7 @@ function ValidateNumber(inputWidget, listWidget, minVal, maxVal, element, attNam
|
|||
element.setAttribute(attName, numString);
|
||||
}
|
||||
} else if (element) {
|
||||
element.removeAttribute(attName);
|
||||
GetCurrentEditor().removeAttributeOrEquivalent(element, attName, true)
|
||||
}
|
||||
return numString;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче