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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.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 unified diff | Download patch
OLDNEW
1 /** 1 /**
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void HTMLPlugInElement::SetPersistedPlugin(PluginView* plugin) { 148 void HTMLPlugInElement::SetPersistedPlugin(PluginView* plugin) {
149 if (persisted_plugin_ == plugin) 149 if (persisted_plugin_ == plugin)
150 return; 150 return;
151 if (persisted_plugin_) { 151 if (persisted_plugin_) {
152 persisted_plugin_->Hide(); 152 persisted_plugin_->Hide();
153 DisposeFrameOrPluginSoon(persisted_plugin_.Release()); 153 DisposeFrameOrPluginSoon(persisted_plugin_.Release());
154 } 154 }
155 persisted_plugin_ = plugin; 155 persisted_plugin_ = plugin;
156 } 156 }
157 157
158 void HTMLPlugInElement::SetFocused(bool focused, WebFocusType focus_type) { 158 void HTMLPlugInElement::SetFocused(bool focused,
159 WebFocusType focus_type,
160 Node* common_ancestor) {
159 if (plugin_) 161 if (plugin_)
160 plugin_->SetFocused(focused, focus_type); 162 plugin_->SetFocused(focused, focus_type);
161 HTMLFrameOwnerElement::SetFocused(focused, focus_type); 163 HTMLFrameOwnerElement::SetFocused(focused, focus_type, common_ancestor);
162 } 164 }
163 165
164 bool HTMLPlugInElement::RequestObjectInternal( 166 bool HTMLPlugInElement::RequestObjectInternal(
165 const String& url, 167 const String& url,
166 const String& mime_type, 168 const String& mime_type,
167 const Vector<String>& param_names, 169 const Vector<String>& param_names,
168 const Vector<String>& param_values) { 170 const Vector<String>& param_values) {
169 if (url.IsEmpty() && mime_type.IsEmpty()) 171 if (url.IsEmpty() && mime_type.IsEmpty())
170 return false; 172 return false;
171 173
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 709
708 void HTMLPlugInElement::LazyReattachIfNeeded() { 710 void HTMLPlugInElement::LazyReattachIfNeeded() {
709 if (!UseFallbackContent() && NeedsPluginUpdate() && GetLayoutObject() && 711 if (!UseFallbackContent() && NeedsPluginUpdate() && GetLayoutObject() &&
710 !IsImageType()) { 712 !IsImageType()) {
711 LazyReattachIfAttached(); 713 LazyReattachIfAttached();
712 SetPersistedPlugin(nullptr); 714 SetPersistedPlugin(nullptr);
713 } 715 }
714 } 716 }
715 717
716 } // namespace blink 718 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698