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

Unified Diff: ui/accessibility/ax_tree_data.cc

Issue 1768753003: Implemented the reporting of text style and language information on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test expectations. Created 4 years, 9 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 | « ui/accessibility/ax_tree_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_tree_data.cc
diff --git a/ui/accessibility/ax_tree_data.cc b/ui/accessibility/ax_tree_data.cc
index 274da85f885c1c4df648ba1b393908977a65a1bd..4e434dba306c8140e1092ebc68cafef09ab271ea 100644
--- a/ui/accessibility/ax_tree_data.cc
+++ b/ui/accessibility/ax_tree_data.cc
@@ -46,19 +46,18 @@ std::string AXTreeData::ToString() const {
if (focused_tree_id != -1)
result += " focused_tree_id=" + IntToString(focused_tree_id);
- if (!url.empty())
- result += " url=" + url;
- if (!title.empty())
- result += " title=" + title;
- if (!mimetype.empty())
- result += " mimetype=" + mimetype;
if (!doctype.empty())
result += " doctype=" + doctype;
-
if (loaded)
result += " loaded=true";
if (loading_progress != 0.0)
result += " loading_progress=" + DoubleToString(loading_progress);
+ if (!mimetype.empty())
+ result += " mimetype=" + mimetype;
+ if (!url.empty())
+ result += " url=" + url;
+ if (!title.empty())
+ result += " title=" + title;
if (focus_id != -1)
result += " focus_id=" + IntToString(focus_id);
@@ -79,13 +78,10 @@ bool operator==(const AXTreeData& lhs, const AXTreeData& rhs) {
return (lhs.tree_id == rhs.tree_id &&
lhs.parent_tree_id == rhs.parent_tree_id &&
lhs.focused_tree_id == rhs.focused_tree_id &&
- lhs.url == rhs.url &&
- lhs.title == rhs.title &&
- lhs.mimetype == rhs.mimetype &&
- lhs.doctype == rhs.doctype &&
- lhs.loaded == rhs.loaded &&
+ lhs.doctype == rhs.doctype && lhs.loaded == rhs.loaded &&
lhs.loading_progress == rhs.loading_progress &&
- lhs.focus_id == rhs.focus_id &&
+ lhs.mimetype == rhs.mimetype && lhs.title == rhs.title &&
+ lhs.url == rhs.url && lhs.focus_id == rhs.focus_id &&
lhs.sel_anchor_object_id == rhs.sel_anchor_object_id &&
lhs.sel_anchor_offset == rhs.sel_anchor_offset &&
lhs.sel_focus_object_id == rhs.sel_focus_object_id &&
« no previous file with comments | « ui/accessibility/ax_tree_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698