Fix GetValidationmessage warnings in content/html/content/src/

RESOLVED FIXED in mozilla2.0b7

Status

()

Core
DOM: Core & HTML
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: mounir, Assigned: Ms2ger)

Tracking

Trunk
mozilla2.0b7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [good first bug])

Attachments

(1 attachment, 1 obsolete attachment)

(Reporter)

Description

7 years ago
There are some warnings because there is nsIConstraintValidation::GetValidationMessage and nsHTML<Foo>Element::GetValidationMessage. The later hide the former. That's what we want but 'use' should be used to get ride of compiler warnings.

I will do that after beta5 if no one jump on it in the mean time.
(Assignee)

Comment 1

7 years ago
Created attachment 468393 [details] [diff] [review]
Patch v1
Assignee: nobody → Ms2ger
Status: NEW → ASSIGNED
Attachment #468393 - Flags: review?(Olli.Pettay)
(Reporter)

Comment 2

7 years ago
Comment on attachment 468393 [details] [diff] [review]
Patch v1

>From: Ms2ger <ms2ger@gmail.com>
>
>diff --git a/content/html/content/src/nsHTMLButtonElement.cpp b/content/html/content/src/nsHTMLButtonElement.cpp
>--- a/content/html/content/src/nsHTMLButtonElement.cpp
>+++ b/content/html/content/src/nsHTMLButtonElement.cpp
>@@ -77,16 +77,18 @@ static const nsAttrValue::EnumTable kBut
> // Default type is 'submit'.
> static const nsAttrValue::EnumTable* kButtonDefaultType = &kButtonTypeTable[2];
> 
> class nsHTMLButtonElement : public nsGenericHTMLFormElement,
>                             public nsIDOMHTMLButtonElement,
>                             public nsIConstraintValidation
> {
> public:
>+  using nsIConstraintValidation::GetValidationMessage;

Why using nsIConstraintValidation?

Comment 3

7 years ago
Ms2ger, could you answer to Mounir's question?

Comment 4

7 years ago
er, nm

Updated

7 years ago
Attachment #468393 - Flags: review?(Olli.Pettay) → review+
(Assignee)

Comment 5

7 years ago
Comment on attachment 468393 [details] [diff] [review]
Patch v1

Thanks. (FTR, I talked about this bug with Mounir on IRC a while ago; I understood he was fine with it too after that.)
Attachment #468393 - Flags: approval2.0?

Updated

7 years ago
Attachment #468393 - Flags: approval2.0? → approval2.0+
(Assignee)

Comment 6

7 years ago
Created attachment 471167 [details] [diff] [review]
Patch for checkin

Thanks.
Attachment #468393 - Attachment is obsolete: true
(Assignee)

Updated

7 years ago
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/753feecdbd7c
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b6
You need to log in before you can comment on or make changes to this bug.