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

Unified Diff: third_party/WebKit/Source/core/frame/Location.cpp

Issue 2704303002: Simplify conditionals for blink::Location::isActive(). (Closed)
Patch Set: Delete redundant check Created 3 years, 10 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 | « third_party/WebKit/Source/core/frame/Location.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/Location.cpp
diff --git a/third_party/WebKit/Source/core/frame/Location.cpp b/third_party/WebKit/Source/core/frame/Location.cpp
index d030155cb7043e5f3ab4b6180a5122315cf081e1..23ffea3f928abc94a847abfa7895fcc0773158e1 100644
--- a/third_party/WebKit/Source/core/frame/Location.cpp
+++ b/third_party/WebKit/Source/core/frame/Location.cpp
@@ -286,7 +286,7 @@ Document* Location::document() const {
}
bool Location::isAttached() const {
- return m_domWindow->frame() && m_domWindow->frame()->host();
+ return m_domWindow->frame();
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/frame/Location.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698