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

Unified Diff: sky/engine/core/dom/TreeScope.cpp

Issue 855803002: Remove attrs sky doesn't support. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/dom/TreeScope.h ('k') | sky/engine/core/html/HTMLAttributeNames.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/TreeScope.cpp
diff --git a/sky/engine/core/dom/TreeScope.cpp b/sky/engine/core/dom/TreeScope.cpp
index b9d07ed4d26e957c66349dc00506435ac88d3ef1..0593fa03d7e41b0174deba2a230962c3ab4c748c 100644
--- a/sky/engine/core/dom/TreeScope.cpp
+++ b/sky/engine/core/dom/TreeScope.cpp
@@ -368,23 +368,6 @@ bool TreeScope::isInclusiveAncestorOf(const TreeScope& scope) const
return false;
}
-Element* TreeScope::getElementByAccessKey(const String& key) const
-{
- if (key.isEmpty())
- return 0;
- Element* result = 0;
- Node& root = rootNode();
- for (Element* element = ElementTraversal::firstWithin(root); element; element = ElementTraversal::next(*element, &root)) {
- if (equalIgnoringCase(element->getAttribute(HTMLNames::accesskeyAttr), key))
- result = element;
- if (ShadowRoot* shadowRoot = element->shadowRoot()) {
- if (Element* shadowResult = shadowRoot->getElementByAccessKey(key))
- result = shadowResult;
- }
- }
- return result;
-}
-
void TreeScope::setNeedsStyleRecalcForViewportUnits()
{
for (Element* element = ElementTraversal::firstWithin(rootNode()); element; element = ElementTraversal::next(*element)) {
« no previous file with comments | « sky/engine/core/dom/TreeScope.h ('k') | sky/engine/core/html/HTMLAttributeNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698