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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFrameElementBase.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/HTMLFrameElementBase.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp b/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
index 9ca4b77574b15103d87b460053cd0dc5f82fa09c..5b8ae4828c6f0010f1fcadf788721abf94122b86 100644
--- a/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
@@ -213,8 +213,10 @@ bool HTMLFrameElementBase::SupportsFocus() const {
return true;
}
-void HTMLFrameElementBase::SetFocused(bool received, WebFocusType focus_type) {
- HTMLFrameOwnerElement::SetFocused(received, focus_type);
+void HTMLFrameElementBase::SetFocused(bool received,
+ WebFocusType focus_type,
+ Node* common_ancestor) {
+ HTMLFrameOwnerElement::SetFocused(received, focus_type, common_ancestor);
if (Page* page = GetDocument().GetPage()) {
if (received) {
page->GetFocusController().SetFocusedFrame(ContentFrame());

Powered by Google App Engine
This is Rietveld 408576698