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

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

Issue 2197953002: Remove unnecessary uses of HTMLDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplify 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/HTMLDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLDocument.cpp b/third_party/WebKit/Source/core/html/HTMLDocument.cpp
index cc13db413d8da787167d8b547daf18a7799fd290..b75389b39473466668f6ae727b3288137cdf71c6 100644
--- a/third_party/WebKit/Source/core/html/HTMLDocument.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLDocument.cpp
@@ -54,14 +54,8 @@
#include "bindings/core/v8/ScriptController.h"
#include "core/HTMLNames.h"
-#include "core/frame/FrameView.h"
-#include "core/frame/LocalDOMWindow.h"
#include "core/frame/LocalFrame.h"
#include "core/html/HTMLBodyElement.h"
-#include "core/page/FocusController.h"
-#include "core/page/FrameTree.h"
-#include "core/page/Page.h"
-#include "wtf/text/StringBuilder.h"
namespace blink {
@@ -209,7 +203,7 @@ static HashSet<StringImpl*>* createHtmlCaseInsensitiveAttributesSet()
// Mozilla treats all other values as case-sensitive, thus so do we.
HashSet<StringImpl*>* attrSet = new HashSet<StringImpl*>;
- const QualifiedName* caseInsesitiveAttributes[] = {
+ const QualifiedName* caseInsensitiveAttributes[] = {
&accept_charsetAttr, &acceptAttr, &alignAttr, &alinkAttr, &axisAttr,
&bgcolorAttr,
&charsetAttr, &checkedAttr, &clearAttr, &codetypeAttr, &colorAttr, &compactAttr,
@@ -225,8 +219,8 @@ static HashSet<StringImpl*>* createHtmlCaseInsensitiveAttributesSet()
&targetAttr, &textAttr, &typeAttr,
&valignAttr, &valuetypeAttr, &vlinkAttr };
- attrSet->reserveCapacityForSize(WTF_ARRAY_LENGTH(caseInsesitiveAttributes));
- for (const QualifiedName* attr : caseInsesitiveAttributes)
+ attrSet->reserveCapacityForSize(WTF_ARRAY_LENGTH(caseInsensitiveAttributes));
+ for (const QualifiedName* attr : caseInsensitiveAttributes)
attrSet->add(attr->localName().impl());
return attrSet;

Powered by Google App Engine
This is Rietveld 408576698