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

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

Issue 2246293003: Unprefix CSS user-select property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 4 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 if (equalIgnoringCase(value, "true")) { 267 if (equalIgnoringCase(value, "true")) {
268 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Drag, CSSValueElement); 268 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Drag, CSSValueElement);
269 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Select, CSSValueNone); 269 addPropertyToPresentationAttributeStyle(style, CSSPropertyUserSelect , CSSValueNone);
270 } else if (equalIgnoringCase(value, "false")) { 270 } else if (equalIgnoringCase(value, "false")) {
271 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Drag, CSSValueNone); 271 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Drag, CSSValueNone);
272 } 272 }
273 } else if (name == dirAttr) { 273 } else if (name == dirAttr) {
274 if (equalIgnoringCase(value, "auto")) { 274 if (equalIgnoringCase(value, "auto")) {
275 addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicodeBid i, unicodeBidiAttributeForDirAuto(this)); 275 addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicodeBid i, unicodeBidiAttributeForDirAuto(this));
276 } else { 276 } else {
277 if (isValidDirAttribute(value)) 277 if (isValidDirAttribute(value))
278 addPropertyToPresentationAttributeStyle(style, CSSPropertyDirect ion, value); 278 addPropertyToPresentationAttributeStyle(style, CSSPropertyDirect ion, value);
279 else if (isHTMLBodyElement(*this)) 279 else if (isHTMLBodyElement(*this))
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 #ifndef NDEBUG 1147 #ifndef NDEBUG
1148 1148
1149 // For use in the debugger 1149 // For use in the debugger
1150 void dumpInnerHTML(blink::HTMLElement*); 1150 void dumpInnerHTML(blink::HTMLElement*);
1151 1151
1152 void dumpInnerHTML(blink::HTMLElement* element) 1152 void dumpInnerHTML(blink::HTMLElement* element)
1153 { 1153 {
1154 printf("%s\n", element->innerHTML().ascii().data()); 1154 printf("%s\n", element->innerHTML().ascii().data());
1155 } 1155 }
1156 #endif 1156 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698