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

Unified Diff: third_party/WebKit/Source/core/html/HTMLAreaElement.cpp

Issue 2821303005: [selectors4] Use common ancestor strategy for :focus-within (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/WebKit/Source/core/html/HTMLAreaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp b/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp
index 0cb3951a418cd73bfb1a2445e9246c7068e416f5..6366a093ba983114ffde4291e87a453ba6a44ee9 100644
--- a/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp
@@ -204,11 +204,12 @@ bool HTMLAreaElement::LayoutObjectIsFocusable() const {
}
void HTMLAreaElement::SetFocused(bool should_be_focused,
- WebFocusType focus_type) {
+ WebFocusType focus_type,
+ Node* common_ancestor) {
if (IsFocused() == should_be_focused)
return;
- HTMLAnchorElement::SetFocused(should_be_focused, focus_type);
+ HTMLAnchorElement::SetFocused(should_be_focused, focus_type, common_ancestor);
HTMLImageElement* image_element = this->ImageElement();
if (!image_element)

Powered by Google App Engine
This is Rietveld 408576698