From dfd3e797cc001166bd52bcc23d79c49c5a6f7bcf Mon Sep 17 00:00:00 2001 From: "troy@netscape.com" Date: Sat, 7 Nov 1998 05:27:39 +0000 Subject: [PATCH] Added code to StringToAttribute() to handle "border" attribute --- content/html/content/src/nsHTMLInputElement.cpp | 4 ++++ layout/html/content/src/nsHTMLInputElement.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/content/html/content/src/nsHTMLInputElement.cpp b/content/html/content/src/nsHTMLInputElement.cpp index 07b6faef2fd9..d4f25bb6af04 100644 --- a/content/html/content/src/nsHTMLInputElement.cpp +++ b/content/html/content/src/nsHTMLInputElement.cpp @@ -498,6 +498,10 @@ nsHTMLInputElement::StringToAttribute(nsIAtom* aAttribute, return NS_CONTENT_ATTR_HAS_VALUE; } } + else if (aAttribute == nsHTMLAtoms::border) { + nsGenericHTMLElement::ParseValue(aValue, 0, aResult, eHTMLUnit_Pixel); + return NS_CONTENT_ATTR_HAS_VALUE; + } return NS_CONTENT_ATTR_NOT_THERE; } diff --git a/layout/html/content/src/nsHTMLInputElement.cpp b/layout/html/content/src/nsHTMLInputElement.cpp index 07b6faef2fd9..d4f25bb6af04 100644 --- a/layout/html/content/src/nsHTMLInputElement.cpp +++ b/layout/html/content/src/nsHTMLInputElement.cpp @@ -498,6 +498,10 @@ nsHTMLInputElement::StringToAttribute(nsIAtom* aAttribute, return NS_CONTENT_ATTR_HAS_VALUE; } } + else if (aAttribute == nsHTMLAtoms::border) { + nsGenericHTMLElement::ParseValue(aValue, 0, aResult, eHTMLUnit_Pixel); + return NS_CONTENT_ATTR_HAS_VALUE; + } return NS_CONTENT_ATTR_NOT_THERE; }