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

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

Issue 2149893003: Rename Node::inShadowIncludingDocument() to Node::isConnected() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 5 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/HTMLSelectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
index edfa1c61e7b2bbb641948c0cfd806718ebb33027..e819f54cba84ee3bcd9f6d84e214ff08b4e1cff4 100644
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
@@ -749,7 +749,7 @@ void HTMLSelectElement::setRecalcListItems()
m_shouldRecalcListItems = true;
setOptionsChangedOnLayoutObject();
- if (!inShadowIncludingDocument()) {
+ if (!isConnected()) {
if (HTMLOptionsCollection* collection = cachedCollection<HTMLOptionsCollection>(SelectOptions))
collection->invalidateCache();
invalidateSelectedItems();
@@ -905,7 +905,7 @@ void HTMLSelectElement::scrollToOption(HTMLOptionElement* option)
void HTMLSelectElement::scrollToOptionTask()
{
HTMLOptionElement* option = m_optionToScrollTo.release();
- if (!option || !inShadowIncludingDocument())
+ if (!option || !isConnected())
return;
// optionRemoved() makes sure m_optionToScrollTo doesn't have an option with
// another owner.
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLScriptElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLShadowElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698