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

Unified Diff: Source/core/dom/shadow/InsertionPoint.cpp

Issue 16599003: :hover style not applied on hover if its display property is different from original style's (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch (fixed test that was expected to fail and is now passing) Created 7 years, 6 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
« no previous file with comments | « Source/core/dom/shadow/InsertionPoint.h ('k') | Source/core/dom/shadow/ShadowRoot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/shadow/InsertionPoint.cpp
diff --git a/Source/core/dom/shadow/InsertionPoint.cpp b/Source/core/dom/shadow/InsertionPoint.cpp
index 8e905c7cf43550d2233fe48cfdfa33b31a6e845c..4ee112b5cb8ef4627f4ba55aa29379f953da505d 100644
--- a/Source/core/dom/shadow/InsertionPoint.cpp
+++ b/Source/core/dom/shadow/InsertionPoint.cpp
@@ -51,27 +51,27 @@ InsertionPoint::~InsertionPoint()
{
}
-void InsertionPoint::attach()
+void InsertionPoint::attach(const AttachContext& context)
{
if (ShadowRoot* shadowRoot = containingShadowRoot())
ContentDistributor::ensureDistribution(shadowRoot);
for (size_t i = 0; i < m_distribution.size(); ++i) {
if (!m_distribution.at(i)->attached())
- m_distribution.at(i)->attach();
+ m_distribution.at(i)->attach(context);
}
- HTMLElement::attach();
+ HTMLElement::attach(context);
}
-void InsertionPoint::detach()
+void InsertionPoint::detach(const AttachContext& context)
{
if (ShadowRoot* shadowRoot = containingShadowRoot())
ContentDistributor::ensureDistribution(shadowRoot);
for (size_t i = 0; i < m_distribution.size(); ++i)
- m_distribution.at(i)->detach();
+ m_distribution.at(i)->detach(context);
- HTMLElement::detach();
+ HTMLElement::detach(context);
}
bool InsertionPoint::shouldUseFallbackElements() const
« no previous file with comments | « Source/core/dom/shadow/InsertionPoint.h ('k') | Source/core/dom/shadow/ShadowRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698