Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1090)

Unified Diff: Source/core/html/shadow/TextControlInnerElements.h

Issue 20670002: REGRESSION: Click on focused link should not remove focus on it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typo Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/shadow/TextControlInnerElements.h
diff --git a/Source/core/html/shadow/TextControlInnerElements.h b/Source/core/html/shadow/TextControlInnerElements.h
index 76d91236c6e4f97585369cf2c11c4ced53f691c6..f3f6a8c75f39b58183dba858c1492d73aab83798 100644
--- a/Source/core/html/shadow/TextControlInnerElements.h
+++ b/Source/core/html/shadow/TextControlInnerElements.h
@@ -52,7 +52,7 @@ protected:
virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
private:
- virtual bool isMouseFocusable() const { return false; }
+ virtual bool supportsFocus() const OVERRIDE { return false; }
};
class TextControlInnerTextElement FINAL : public HTMLDivElement {
@@ -65,7 +65,7 @@ private:
TextControlInnerTextElement(Document*);
virtual RenderObject* createRenderer(RenderStyle*);
virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
- virtual bool isMouseFocusable() const { return false; }
+ virtual bool supportsFocus() const OVERRIDE { return false; }
};
class SearchFieldDecorationElement FINAL : public HTMLDivElement {
@@ -78,7 +78,7 @@ public:
private:
SearchFieldDecorationElement(Document*);
virtual const AtomicString& shadowPseudoId() const;
- virtual bool isMouseFocusable() const { return false; }
+ virtual bool supportsFocus() const OVERRIDE { return false; }
};
class SearchFieldCancelButtonElement FINAL : public HTMLDivElement {
@@ -91,7 +91,7 @@ public:
private:
SearchFieldCancelButtonElement(Document*);
virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
- virtual bool isMouseFocusable() const { return false; }
+ virtual bool supportsFocus() const OVERRIDE { return false; }
bool m_capturing;
};
« no previous file with comments | « LayoutTests/fast/events/focus-click-on-non-mouse-focusable-element-expected.txt ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698