From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/ValidationMessage.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'Source/WebCore/html/ValidationMessage.h') diff --git a/Source/WebCore/html/ValidationMessage.h b/Source/WebCore/html/ValidationMessage.h index 6aec40d23..b9c26a564 100644 --- a/Source/WebCore/html/ValidationMessage.h +++ b/Source/WebCore/html/ValidationMessage.h @@ -28,12 +28,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef ValidationMessage_h -#define ValidationMessage_h +#pragma once #include "Timer.h" +#include #include -#include #include #include @@ -49,29 +48,27 @@ class ValidationMessageClient; class ValidationMessage { WTF_MAKE_NONCOPYABLE(ValidationMessage); WTF_MAKE_FAST_ALLOCATED; public: - static OwnPtr create(HTMLFormControlElement*); + explicit ValidationMessage(HTMLFormControlElement*); ~ValidationMessage(); + void updateValidationMessage(const String&); void requestToHideMessage(); bool isVisible() const; bool shadowTreeContains(const Node&) const; private: - explicit ValidationMessage(HTMLFormControlElement*); ValidationMessageClient* validationMessageClient() const; void setMessage(const String&); - void setMessageDOMAndStartTimer(Timer* = 0); - void buildBubbleTree(Timer*); - void deleteBubbleTree(Timer* = 0); + void setMessageDOMAndStartTimer(); + void buildBubbleTree(); + void deleteBubbleTree(); HTMLFormControlElement* m_element; String m_message; - OwnPtr> m_timer; + std::unique_ptr m_timer; RefPtr m_bubble; RefPtr m_messageHeading; RefPtr m_messageBody; }; } // namespace WebCore - -#endif // ValidationMessage_h -- cgit v1.2.1