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

Unified Diff: Source/core/editing/ReplaceSelectionCommand.cpp

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: 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
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/html/BaseButtonInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/ReplaceSelectionCommand.cpp
diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp
index 494a4653907afbeb3e77e7511e2ef5474e1332b3..0d9bfd2e58d900467d936fccf4f962b0cdc928ba 100644
--- a/Source/core/editing/ReplaceSelectionCommand.cpp
+++ b/Source/core/editing/ReplaceSelectionCommand.cpp
@@ -1250,7 +1250,7 @@ bool ReplaceSelectionCommand::shouldPerformSmartReplace() const
if (!m_smartReplace)
return false;
- Element* textControl = enclosingTextFormControl(positionAtStartOfInsertedContent().deepEquivalent());
+ Element* textControl = Handle<HTMLTextFormControlElement>(enclosingTextFormControl(positionAtStartOfInsertedContent().deepEquivalent())).raw();
if (textControl && textControl->hasTagName(inputTag) && static_cast<HTMLInputElement*>(textControl)->isPasswordField())
return false; // Disable smart replace for password fields.
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/html/BaseButtonInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698