зеркало из https://github.com/mozilla/gecko-dev.git
Use revised DivAlignValue methods
This commit is contained in:
Родитель
f24657d4ec
Коммит
e0750a5070
|
@ -133,7 +133,7 @@ nsHTMLDivElement::StringToAttribute(nsIAtom* aAttribute,
|
|||
nsHTMLValue& aResult)
|
||||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (nsGenericHTMLElement::ParseDivAlignValue(aValue, aResult)) {
|
||||
if (mInner.ParseDivAlignValue(aValue, aResult)) {
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ nsHTMLDivElement::AttributeToString(nsIAtom* aAttribute,
|
|||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (eHTMLUnit_Enumerated == aValue.GetUnit()) {
|
||||
nsGenericHTMLElement::DivAlignValueToString(aValue, aResult);
|
||||
mInner.DivAlignValueToString(aValue, aResult);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ nsHTMLHeadingElement::StringToAttribute(nsIAtom* aAttribute,
|
|||
nsHTMLValue& aResult)
|
||||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (nsGenericHTMLElement::ParseDivAlignValue(aValue, aResult)) {
|
||||
if (mInner.ParseDivAlignValue(aValue, aResult)) {
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ nsHTMLHeadingElement::AttributeToString(nsIAtom* aAttribute,
|
|||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (eHTMLUnit_Enumerated == aValue.GetUnit()) {
|
||||
nsGenericHTMLElement::DivAlignValueToString(aValue, aResult);
|
||||
mInner.DivAlignValueToString(aValue, aResult);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -138,7 +138,7 @@ nsHTMLParagraphElement::StringToAttribute(nsIAtom* aAttribute,
|
|||
nsHTMLValue& aResult)
|
||||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (nsGenericHTMLElement::ParseDivAlignValue(aValue, aResult)) {
|
||||
if (mInner.ParseDivAlignValue(aValue, aResult)) {
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ nsHTMLParagraphElement::AttributeToString(nsIAtom* aAttribute,
|
|||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (eHTMLUnit_Enumerated == aValue.GetUnit()) {
|
||||
nsGenericHTMLElement::DivAlignValueToString(aValue, aResult);
|
||||
mInner.DivAlignValueToString(aValue, aResult);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -133,7 +133,7 @@ nsHTMLDivElement::StringToAttribute(nsIAtom* aAttribute,
|
|||
nsHTMLValue& aResult)
|
||||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (nsGenericHTMLElement::ParseDivAlignValue(aValue, aResult)) {
|
||||
if (mInner.ParseDivAlignValue(aValue, aResult)) {
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ nsHTMLDivElement::AttributeToString(nsIAtom* aAttribute,
|
|||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (eHTMLUnit_Enumerated == aValue.GetUnit()) {
|
||||
nsGenericHTMLElement::DivAlignValueToString(aValue, aResult);
|
||||
mInner.DivAlignValueToString(aValue, aResult);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ nsHTMLHeadingElement::StringToAttribute(nsIAtom* aAttribute,
|
|||
nsHTMLValue& aResult)
|
||||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (nsGenericHTMLElement::ParseDivAlignValue(aValue, aResult)) {
|
||||
if (mInner.ParseDivAlignValue(aValue, aResult)) {
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ nsHTMLHeadingElement::AttributeToString(nsIAtom* aAttribute,
|
|||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (eHTMLUnit_Enumerated == aValue.GetUnit()) {
|
||||
nsGenericHTMLElement::DivAlignValueToString(aValue, aResult);
|
||||
mInner.DivAlignValueToString(aValue, aResult);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -138,7 +138,7 @@ nsHTMLParagraphElement::StringToAttribute(nsIAtom* aAttribute,
|
|||
nsHTMLValue& aResult)
|
||||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (nsGenericHTMLElement::ParseDivAlignValue(aValue, aResult)) {
|
||||
if (mInner.ParseDivAlignValue(aValue, aResult)) {
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ nsHTMLParagraphElement::AttributeToString(nsIAtom* aAttribute,
|
|||
{
|
||||
if (aAttribute == nsHTMLAtoms::align) {
|
||||
if (eHTMLUnit_Enumerated == aValue.GetUnit()) {
|
||||
nsGenericHTMLElement::DivAlignValueToString(aValue, aResult);
|
||||
mInner.DivAlignValueToString(aValue, aResult);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче