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

Unified Diff: Source/core/html/HTMLInputElement.cpp

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLLIElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index a5bb12a33fa5b238ad5724bfec40c6f030dd9fa9..60b8a1717f22ee68ec1cc1d72cee55929e4829ca 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -821,14 +821,14 @@ RenderObject* HTMLInputElement::createRenderer(RenderArena* arena, RenderStyle*
return m_inputType->createRenderer(arena, style);
}
-void HTMLInputElement::attach()
+void HTMLInputElement::attach(const AttachContext& context)
{
PostAttachCallbackDisabler disabler(this);
if (!m_hasType)
updateType();
- HTMLTextFormControlElement::attach();
+ HTMLTextFormControlElement::attach(context);
m_inputType->attach();
@@ -836,9 +836,9 @@ void HTMLInputElement::attach()
document()->updateFocusAppearanceSoon(true /* restore selection */);
}
-void HTMLInputElement::detach()
+void HTMLInputElement::detach(const AttachContext& context)
{
- HTMLTextFormControlElement::detach();
+ HTMLTextFormControlElement::detach(context);
setFormControlValueMatchesRenderer(false);
m_inputType->detach();
}
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/HTMLLIElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698