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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/RangeInputType.cpp ('k') | Source/core/html/TextFieldInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/SearchInputType.cpp
diff --git a/Source/core/html/SearchInputType.cpp b/Source/core/html/SearchInputType.cpp
index 5aab99200035284e25d5591ee7e05f14549bdae1..4c684b4a3a8d6498ea1ffbb4e32211a43ddcb633 100644
--- a/Source/core/html/SearchInputType.cpp
+++ b/Source/core/html/SearchInputType.cpp
@@ -95,8 +95,8 @@ void SearchInputType::createShadowSubtree()
ASSERT(container);
ASSERT(textWrapper);
- container->insertBefore(SearchFieldDecorationElement::create(element()->document()), textWrapper);
- container->insertBefore(SearchFieldCancelButtonElement::create(element()->document()), textWrapper->nextSibling());
+ container->insertBefore(SearchFieldDecorationElement::create(&element()->document()), textWrapper);
+ container->insertBefore(SearchFieldCancelButtonElement::create(&element()->document()), textWrapper->nextSibling());
}
void SearchInputType::handleKeydownEvent(KeyboardEvent* event)
« no previous file with comments | « Source/core/html/RangeInputType.cpp ('k') | Source/core/html/TextFieldInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698