https://bugs.webkit.org/show_bug.cgi?id=131949
Address the review comment.
* dom/EventDispatcher.cpp:
(WebCore::EventRelatedNodeResolver::findHostOfTreeScopeInTargetTreeScope):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167744
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-04-23 Ryosuke Niwa <rniwa@webkit.org>
+
+ REGRESSION (r157328): popover to check into flight ba.com dismisses instantly when focusing form
+ https://bugs.webkit.org/show_bug.cgi?id=131949
+
+ Address the review comment.
+
+ * dom/EventDispatcher.cpp:
+ (WebCore::EventRelatedNodeResolver::findHostOfTreeScopeInTargetTreeScope):
+
2014-04-23 Andreas Kling <akling@apple.com>
CachedResourceLoader hoards URLs indefinitely for no good reason.
static Node* findHostOfTreeScopeInTargetTreeScope(const TreeScope& startingTreeScope, const TreeScope& targetScope)
{
ASSERT(&targetScope != &startingTreeScope);
- Node* previousHost = 0;
+ Node* previousHost = nullptr;
for (const TreeScope* scope = &startingTreeScope; scope; scope = scope->parentTreeScope()) {
if (scope == &targetScope) {
ASSERT(previousHost);
else
ASSERT_WITH_SECURITY_IMPLICATION(!scope->parentTreeScope());
}
- return 0;
+ return nullptr;
}
private: