Bug 1244049 - Part 1: Define scoped enum for CSSPseudoElement type. r=dbaron
This commit is contained in:
@@ -86,7 +86,7 @@ nsRangeFrame::Init(nsIContent* aContent,
|
||||
|
||||
mOuterFocusStyle =
|
||||
styleSet->ProbePseudoElementStyle(aContent->AsElement(),
|
||||
nsCSSPseudoElements::ePseudo_mozFocusOuter,
|
||||
CSSPseudoElementType::mozFocusOuter,
|
||||
StyleContext());
|
||||
|
||||
return nsContainerFrame::Init(aContent, aParent, aPrevInFlow);
|
||||
@@ -138,19 +138,19 @@ nsRangeFrame::CreateAnonymousContent(nsTArray<ContentInfo>& aElements)
|
||||
|
||||
// Create the ::-moz-range-track pseuto-element (a div):
|
||||
rv = MakeAnonymousDiv(getter_AddRefs(mTrackDiv),
|
||||
nsCSSPseudoElements::ePseudo_mozRangeTrack,
|
||||
CSSPseudoElementType::mozRangeTrack,
|
||||
aElements);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Create the ::-moz-range-progress pseudo-element (a div):
|
||||
rv = MakeAnonymousDiv(getter_AddRefs(mProgressDiv),
|
||||
nsCSSPseudoElements::ePseudo_mozRangeProgress,
|
||||
CSSPseudoElementType::mozRangeProgress,
|
||||
aElements);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Create the ::-moz-range-thumb pseudo-element (a div):
|
||||
rv = MakeAnonymousDiv(getter_AddRefs(mThumbDiv),
|
||||
nsCSSPseudoElements::ePseudo_mozRangeThumb,
|
||||
CSSPseudoElementType::mozRangeThumb,
|
||||
aElements);
|
||||
return rv;
|
||||
}
|
||||
@@ -896,15 +896,15 @@ nsRangeFrame::ShouldUseNativeStyle() const
|
||||
Element*
|
||||
nsRangeFrame::GetPseudoElement(nsCSSPseudoElements::Type aType)
|
||||
{
|
||||
if (aType == nsCSSPseudoElements::ePseudo_mozRangeTrack) {
|
||||
if (aType == CSSPseudoElementType::mozRangeTrack) {
|
||||
return mTrackDiv;
|
||||
}
|
||||
|
||||
if (aType == nsCSSPseudoElements::ePseudo_mozRangeThumb) {
|
||||
if (aType == CSSPseudoElementType::mozRangeThumb) {
|
||||
return mThumbDiv;
|
||||
}
|
||||
|
||||
if (aType == nsCSSPseudoElements::ePseudo_mozRangeProgress) {
|
||||
if (aType == CSSPseudoElementType::mozRangeProgress) {
|
||||
return mProgressDiv;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user