| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "ValidationMessageClientImpl.h" | 27 #include "ValidationMessageClientImpl.h" |
| 28 | 28 |
| 29 #include "WebTextDirection.h" | 29 #include "WebTextDirection.h" |
| 30 #include "WebValidationMessageClient.h" | 30 #include "WebValidationMessageClient.h" |
| 31 #include "WebViewImpl.h" | 31 #include "WebViewImpl.h" |
| 32 #include "core/dom/Element.h" | 32 #include "core/dom/Element.h" |
| 33 #include "core/page/FrameView.h" | 33 #include "core/page/FrameView.h" |
| 34 #include "core/platform/HostWindow.h" | |
| 35 #include "core/rendering/RenderObject.h" | 34 #include "core/rendering/RenderObject.h" |
| 36 #include "wtf/CurrentTime.h" | 35 #include "platform/HostWindow.h" |
| 37 #include "public/platform/WebRect.h" | 36 #include "public/platform/WebRect.h" |
| 38 #include "public/platform/WebString.h" | 37 #include "public/platform/WebString.h" |
| 39 #include "public/web/WebViewClient.h" | 38 #include "public/web/WebViewClient.h" |
| 39 #include "wtf/CurrentTime.h" |
| 40 | 40 |
| 41 using namespace WebCore; | 41 using namespace WebCore; |
| 42 | 42 |
| 43 namespace WebKit { | 43 namespace WebKit { |
| 44 | 44 |
| 45 ValidationMessageClientImpl::ValidationMessageClientImpl(WebViewImpl& webView, W
ebValidationMessageClient* client) | 45 ValidationMessageClientImpl::ValidationMessageClientImpl(WebViewImpl& webView, W
ebValidationMessageClient* client) |
| 46 : m_webView(webView) | 46 : m_webView(webView) |
| 47 , m_client(client) | 47 , m_client(client) |
| 48 , m_currentAnchor(0) | 48 , m_currentAnchor(0) |
| 49 , m_lastPageScaleFactor(1) | 49 , m_lastPageScaleFactor(1) |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 if (newAnchorRectInScreen == m_lastAnchorRectInScreen && m_webView.pageScale
Factor() == m_lastPageScaleFactor) | 144 if (newAnchorRectInScreen == m_lastAnchorRectInScreen && m_webView.pageScale
Factor() == m_lastPageScaleFactor) |
| 145 return; | 145 return; |
| 146 m_lastAnchorRectInScreen = newAnchorRectInScreen; | 146 m_lastAnchorRectInScreen = newAnchorRectInScreen; |
| 147 m_lastPageScaleFactor = m_webView.pageScaleFactor(); | 147 m_lastPageScaleFactor = m_webView.pageScaleFactor(); |
| 148 if (m_client) | 148 if (m_client) |
| 149 m_client->moveValidationMessage(newAnchorRect); | 149 m_client->moveValidationMessage(newAnchorRect); |
| 150 m_webView.client()->moveValidationMessage(newAnchorRect); | 150 m_webView.client()->moveValidationMessage(newAnchorRect); |
| 151 } | 151 } |
| 152 | 152 |
| 153 } | 153 } |
| OLD | NEW |