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

Unified Diff: Source/web/ValidationMessageClientImpl.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/web/FullscreenController.cpp ('k') | Source/web/WebElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ValidationMessageClientImpl.cpp
diff --git a/Source/web/ValidationMessageClientImpl.cpp b/Source/web/ValidationMessageClientImpl.cpp
index 6c7c1557363e3492aacda7c426a95a469443090f..6a09e9d2783d6102d3858839f9eab8d77e2df9d5 100644
--- a/Source/web/ValidationMessageClientImpl.cpp
+++ b/Source/web/ValidationMessageClientImpl.cpp
@@ -64,7 +64,7 @@ ValidationMessageClientImpl::~ValidationMessageClientImpl()
FrameView* ValidationMessageClientImpl::currentView()
{
- return m_currentAnchor->document()->view();
+ return m_currentAnchor->document().view();
}
void ValidationMessageClientImpl::showValidationMessage(const Element& anchor, const String& message)
@@ -114,7 +114,7 @@ bool ValidationMessageClientImpl::isValidationMessageVisible(const Element& anch
void ValidationMessageClientImpl::documentDetached(const Document& document)
{
- if (m_currentAnchor && m_currentAnchor->document() == &document)
+ if (m_currentAnchor && &m_currentAnchor->document() == &document)
hideValidationMessage(*m_currentAnchor);
}
« no previous file with comments | « Source/web/FullscreenController.cpp ('k') | Source/web/WebElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698