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

Side by Side Diff: Source/core/html/shadow/TextFieldDecorationElement.h

Issue 16599003: :hover style not applied on hover if its display property is different from original style's (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch (fixed test that was expected to fail and is now passing) Created 7 years, 6 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 unified diff | Download patch
OLDNEW
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void decorate(HTMLInputElement*, bool visible); 73 void decorate(HTMLInputElement*, bool visible);
74 74
75 virtual bool willRespondToMouseMoveEvents() OVERRIDE; 75 virtual bool willRespondToMouseMoveEvents() OVERRIDE;
76 virtual bool willRespondToMouseClickEvents() OVERRIDE; 76 virtual bool willRespondToMouseClickEvents() OVERRIDE;
77 77
78 private: 78 private:
79 TextFieldDecorationElement(Document*, TextFieldDecorator*); 79 TextFieldDecorationElement(Document*, TextFieldDecorator*);
80 virtual bool isTextFieldDecoration() const OVERRIDE; 80 virtual bool isTextFieldDecoration() const OVERRIDE;
81 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; 81 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
82 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) OVERRIDE; 82 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) OVERRIDE;
83 virtual void attach() OVERRIDE; 83 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
84 virtual void detach() OVERRIDE; 84 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
85 virtual bool isMouseFocusable() const OVERRIDE; 85 virtual bool isMouseFocusable() const OVERRIDE;
86 virtual void defaultEventHandler(Event*) OVERRIDE; 86 virtual void defaultEventHandler(Event*) OVERRIDE;
87 87
88 HTMLInputElement* hostInput(); 88 HTMLInputElement* hostInput();
89 void updateImage(); 89 void updateImage();
90 90
91 TextFieldDecorator* m_textFieldDecorator; 91 TextFieldDecorator* m_textFieldDecorator;
92 bool m_isInHoverState; 92 bool m_isInHoverState;
93 }; 93 };
94 94
95 inline TextFieldDecorationElement* toTextFieldDecorationElement(Node* node) 95 inline TextFieldDecorationElement* toTextFieldDecorationElement(Node* node)
96 { 96 {
97 ASSERT(node); 97 ASSERT(node);
98 ASSERT_WITH_SECURITY_IMPLICATION(node->isElementNode()); 98 ASSERT_WITH_SECURITY_IMPLICATION(node->isElementNode());
99 ASSERT_WITH_SECURITY_IMPLICATION(toElement(node)->isTextFieldDecoration()); 99 ASSERT_WITH_SECURITY_IMPLICATION(toElement(node)->isTextFieldDecoration());
100 return static_cast<TextFieldDecorationElement*>(node); 100 return static_cast<TextFieldDecorationElement*>(node);
101 } 101 }
102 102
103 } 103 }
104 #endif 104 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/TextControlInnerElements.cpp ('k') | Source/core/html/shadow/TextFieldDecorationElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698