Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug
This commit is contained in:
@@ -450,7 +450,7 @@ nsRangeFrame::AccessibleType()
|
||||
double
|
||||
nsRangeFrame::GetValueAsFractionOfRange()
|
||||
{
|
||||
MOZ_ASSERT(mContent->IsHTML(nsGkAtoms::input), "bad cast");
|
||||
MOZ_ASSERT(mContent->IsHTMLElement(nsGkAtoms::input), "bad cast");
|
||||
dom::HTMLInputElement* input = static_cast<dom::HTMLInputElement*>(mContent);
|
||||
|
||||
MOZ_ASSERT(input->GetType() == NS_FORM_INPUT_RANGE);
|
||||
@@ -479,7 +479,7 @@ nsRangeFrame::GetValueAtEventPoint(WidgetGUIEvent* aEvent)
|
||||
aEvent->mClass == eTouchEventClass,
|
||||
"Unexpected event type - aEvent->refPoint may be meaningless");
|
||||
|
||||
MOZ_ASSERT(mContent->IsHTML(nsGkAtoms::input), "bad cast");
|
||||
MOZ_ASSERT(mContent->IsHTMLElement(nsGkAtoms::input), "bad cast");
|
||||
dom::HTMLInputElement* input = static_cast<dom::HTMLInputElement*>(mContent);
|
||||
|
||||
MOZ_ASSERT(input->GetType() == NS_FORM_INPUT_RANGE);
|
||||
@@ -710,7 +710,7 @@ nsRangeFrame::AttributeChanged(int32_t aNameSpaceID,
|
||||
// HTMLInputElement. Given that we're changing away from being a range
|
||||
// and this frame will shortly be destroyed, there's no point in calling
|
||||
// UpdateForValueChange() anyway.
|
||||
MOZ_ASSERT(mContent->IsHTML(nsGkAtoms::input), "bad cast");
|
||||
MOZ_ASSERT(mContent->IsHTMLElement(nsGkAtoms::input), "bad cast");
|
||||
bool typeIsRange = static_cast<dom::HTMLInputElement*>(mContent)->GetType() ==
|
||||
NS_FORM_INPUT_RANGE;
|
||||
// If script changed the <input>'s type before setting these attributes
|
||||
|
||||
Reference in New Issue
Block a user