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

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

Issue 2088453002: Implement the inert attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert histograms.xml Created 3 years, 7 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. 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
6 * (http://www.torchmobile.com/) 6 * (http://www.torchmobile.com/)
7 * Copyright (C) 2011 Motorola Mobility. All rights reserved. 7 * Copyright (C) 2011 Motorola Mobility. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } 456 }
457 457
458 void HTMLElement::ParseAttribute(const AttributeModificationParams& params) { 458 void HTMLElement::ParseAttribute(const AttributeModificationParams& params) {
459 if (params.name == tabindexAttr || params.name == XMLNames::langAttr) 459 if (params.name == tabindexAttr || params.name == XMLNames::langAttr)
460 return Element::ParseAttribute(params); 460 return Element::ParseAttribute(params);
461 461
462 if (params.name == dirAttr) { 462 if (params.name == dirAttr) {
463 DirAttributeChanged(params.new_value); 463 DirAttributeChanged(params.new_value);
464 } else if (params.name == langAttr) { 464 } else if (params.name == langAttr) {
465 PseudoStateChanged(CSSSelector::kPseudoLang); 465 PseudoStateChanged(CSSSelector::kPseudoLang);
466 } else if (params.name == inertAttr) {
467 UseCounter::Count(GetDocument(), UseCounter::kInertAttribute);
466 } else { 468 } else {
467 const AtomicString& event_name = EventNameForAttributeName(params.name); 469 const AtomicString& event_name = EventNameForAttributeName(params.name);
468 if (!event_name.IsNull()) { 470 if (!event_name.IsNull()) {
469 SetAttributeEventListener( 471 SetAttributeEventListener(
470 event_name, 472 event_name,
471 CreateAttributeEventListener(this, params.name, params.new_value, 473 CreateAttributeEventListener(this, params.name, params.new_value,
472 EventParameterName())); 474 EventParameterName()));
473 } 475 }
474 } 476 }
475 } 477 }
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 1222
1221 #ifndef NDEBUG 1223 #ifndef NDEBUG
1222 1224
1223 // For use in the debugger 1225 // For use in the debugger
1224 void dumpInnerHTML(blink::HTMLElement*); 1226 void dumpInnerHTML(blink::HTMLElement*);
1225 1227
1226 void dumpInnerHTML(blink::HTMLElement* element) { 1228 void dumpInnerHTML(blink::HTMLElement* element) {
1227 printf("%s\n", element->innerHTML().Ascii().data()); 1229 printf("%s\n", element->innerHTML().Ascii().data());
1228 } 1230 }
1229 #endif 1231 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAttributeNames.json5 ('k') | third_party/WebKit/Source/core/html/HTMLElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698