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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 2234733002: Add UseCounter for draggable attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved.
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Modify, CSSValueReadWritePlaintextOnly); 257 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Modify, CSSValueReadWritePlaintextOnly);
258 addPropertyToPresentationAttributeStyle(style, CSSPropertyWordWrap, CSSValueBreakWord); 258 addPropertyToPresentationAttributeStyle(style, CSSPropertyWordWrap, CSSValueBreakWord);
259 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitLine Break, CSSValueAfterWhiteSpace); 259 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitLine Break, CSSValueAfterWhiteSpace);
260 UseCounter::count(document(), UseCounter::ContentEditablePlainTextOn ly); 260 UseCounter::count(document(), UseCounter::ContentEditablePlainTextOn ly);
261 } else if (equalIgnoringCase(value, "false")) { 261 } else if (equalIgnoringCase(value, "false")) {
262 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Modify, CSSValueReadOnly); 262 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Modify, CSSValueReadOnly);
263 } 263 }
264 } else if (name == hiddenAttr) { 264 } else if (name == hiddenAttr) {
265 addPropertyToPresentationAttributeStyle(style, CSSPropertyDisplay, CSSVa lueNone); 265 addPropertyToPresentationAttributeStyle(style, CSSPropertyDisplay, CSSVa lueNone);
266 } else if (name == draggableAttr) { 266 } else if (name == draggableAttr) {
267 UseCounter::count(document(), UseCounter::DraggableAttribute);
267 if (equalIgnoringCase(value, "true")) { 268 if (equalIgnoringCase(value, "true")) {
268 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Drag, CSSValueElement); 269 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Drag, CSSValueElement);
269 addPropertyToPresentationAttributeStyle(style, CSSPropertyUserSelect , CSSValueNone); 270 addPropertyToPresentationAttributeStyle(style, CSSPropertyUserSelect , CSSValueNone);
270 } else if (equalIgnoringCase(value, "false")) { 271 } else if (equalIgnoringCase(value, "false")) {
271 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Drag, CSSValueNone); 272 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Drag, CSSValueNone);
272 } 273 }
273 } else if (name == dirAttr) { 274 } else if (name == dirAttr) {
274 if (equalIgnoringCase(value, "auto")) { 275 if (equalIgnoringCase(value, "auto")) {
275 addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicodeBid i, unicodeBidiAttributeForDirAuto(this)); 276 addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicodeBid i, unicodeBidiAttributeForDirAuto(this));
276 } else { 277 } else {
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 #ifndef NDEBUG 1148 #ifndef NDEBUG
1148 1149
1149 // For use in the debugger 1150 // For use in the debugger
1150 void dumpInnerHTML(blink::HTMLElement*); 1151 void dumpInnerHTML(blink::HTMLElement*);
1151 1152
1152 void dumpInnerHTML(blink::HTMLElement* element) 1153 void dumpInnerHTML(blink::HTMLElement* element)
1153 { 1154 {
1154 printf("%s\n", element->innerHTML().ascii().data()); 1155 printf("%s\n", element->innerHTML().ascii().data());
1155 } 1156 }
1156 #endif 1157 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698