mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
backout bug 1134280 for fixing yandex search "Read more" link
This commit is contained in:
@@ -136,7 +136,7 @@ nsITextControlElement::GetWrapPropertyEnum(nsIContent* aContent,
|
||||
aWrapProp = eHTMLTextWrap_Soft; // the default
|
||||
|
||||
nsAutoString wrap;
|
||||
if (aContent->IsHTMLElement()) {
|
||||
if (aContent->IsHTML()) {
|
||||
static nsIContent::AttrValuesArray strings[] =
|
||||
{&nsGkAtoms::HARD, &nsGkAtoms::OFF, nullptr};
|
||||
|
||||
@@ -570,7 +570,7 @@ nsTextInputSelectionImpl::CompleteMove(bool aForward, bool aExtend)
|
||||
{
|
||||
nsIContent *child = parentDIV->GetLastChild();
|
||||
|
||||
if (child->IsHTMLElement(nsGkAtoms::br))
|
||||
if (child->Tag() == nsGkAtoms::br)
|
||||
{
|
||||
--offset;
|
||||
hint = CARET_ASSOCIATE_AFTER; // for Bug 106855
|
||||
|
||||
Reference in New Issue
Block a user