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

Side by Side Diff: webkit/glue/dom_operations.cc

Issue 3226001: Detecting form locale (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Unit test for top websites Created 10 years, 3 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
« no previous file with comments | « chrome/renderer/form_manager_browsertest.cc ('k') | webkit/glue/form_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/glue/dom_operations.h" 5 #include "webkit/glue/dom_operations.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h"
10 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "base/string_util.h"
11 #include "base/string_split.h" 13 #include "base/string_split.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebAnimationController.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebAnimationController.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h" 16 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h"
15 #include "third_party/WebKit/WebKit/chromium/public/WebFormElement.h" 17 #include "third_party/WebKit/WebKit/chromium/public/WebFormElement.h"
16 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" 18 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
17 #include "third_party/WebKit/WebKit/chromium/public/WebInputElement.h" 19 #include "third_party/WebKit/WebKit/chromium/public/WebInputElement.h"
18 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h" 20 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h"
19 #include "third_party/WebKit/WebKit/chromium/public/WebNodeCollection.h" 21 #include "third_party/WebKit/WebKit/chromium/public/WebNodeCollection.h"
20 #include "third_party/WebKit/WebKit/chromium/public/WebNodeList.h" 22 #include "third_party/WebKit/WebKit/chromium/public/WebNodeList.h"
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 if (!element.hasTagName("meta")) 615 if (!element.hasTagName("meta"))
614 continue; 616 continue;
615 WebString value = element.getAttribute(attribute_name); 617 WebString value = element.getAttribute(attribute_name);
616 if (value.isNull() || value != attribute_value) 618 if (value.isNull() || value != attribute_value)
617 continue; 619 continue;
618 meta_elements->push_back(element); 620 meta_elements->push_back(element);
619 } 621 }
620 } 622 }
621 623
622 } // webkit_glue 624 } // webkit_glue
OLDNEW
« no previous file with comments | « chrome/renderer/form_manager_browsertest.cc ('k') | webkit/glue/form_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698