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

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

Issue 1046853002: Implement 'tabstop' as an HTML attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Guard tabstop attribute to be enabled via about:flags Created 5 years, 8 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 | Annotate | Revision Log
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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 for (size_t i = 0; i < WTF_ARRAY_LENGTH(attrToEventNames); i++) 338 for (size_t i = 0; i < WTF_ARRAY_LENGTH(attrToEventNames); i++)
339 attributeNameToEventNameMap.set(attrToEventNames[i].attr.localName() , attrToEventNames[i].event); 339 attributeNameToEventNameMap.set(attrToEventNames[i].attr.localName() , attrToEventNames[i].event);
340 } 340 }
341 341
342 return attributeNameToEventNameMap.get(attrName.localName()); 342 return attributeNameToEventNameMap.get(attrName.localName());
343 } 343 }
344 344
345 void HTMLElement::parseAttribute(const QualifiedName& name, const AtomicString& value) 345 void HTMLElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
346 { 346 {
347 if (name == tabindexAttr) 347 if (name == tabindexAttr || name == tabstopAttr)
348 return Element::parseAttribute(name, value); 348 return Element::parseAttribute(name, value);
349 349
350 if (name == dirAttr) { 350 if (name == dirAttr) {
351 dirAttributeChanged(value); 351 dirAttributeChanged(value);
352 } else { 352 } else {
353 const AtomicString& eventName = eventNameForAttributeName(name); 353 const AtomicString& eventName = eventNameForAttributeName(name);
354 if (!eventName.isNull()) 354 if (!eventName.isNull())
355 setAttributeEventListener(eventName, createAttributeEventListener(th is, name, value, eventParameterName())); 355 setAttributeEventListener(eventName, createAttributeEventListener(th is, name, value, eventParameterName()));
356 } 356 }
357 } 357 }
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 #ifndef NDEBUG 1013 #ifndef NDEBUG
1014 1014
1015 // For use in the debugger 1015 // For use in the debugger
1016 void dumpInnerHTML(blink::HTMLElement*); 1016 void dumpInnerHTML(blink::HTMLElement*);
1017 1017
1018 void dumpInnerHTML(blink::HTMLElement* element) 1018 void dumpInnerHTML(blink::HTMLElement* element)
1019 { 1019 {
1020 printf("%s\n", element->innerHTML().ascii().data()); 1020 printf("%s\n", element->innerHTML().ascii().data());
1021 } 1021 }
1022 #endif 1022 #endif
OLDNEW
« Source/core/dom/Element.cpp ('K') | « Source/core/html/HTMLAttributeNames.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698