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

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

Issue 150103007: Use fastGetAttribute in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use fastGEtAttribute more for titleAttr Created 6 years, 10 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
« no previous file with comments | « Source/core/dom/StyleSheetCandidate.cpp ('k') | Source/core/html/HTMLHtmlElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 dispatchSimulatedClick(0, SendNoEvents); 592 dispatchSimulatedClick(0, SendNoEvents);
593 } 593 }
594 594
595 void HTMLElement::accessKeyAction(bool sendMouseEvents) 595 void HTMLElement::accessKeyAction(bool sendMouseEvents)
596 { 596 {
597 dispatchSimulatedClick(0, sendMouseEvents ? SendMouseUpDownEvents : SendNoEv ents); 597 dispatchSimulatedClick(0, sendMouseEvents ? SendMouseUpDownEvents : SendNoEv ents);
598 } 598 }
599 599
600 String HTMLElement::title() const 600 String HTMLElement::title() const
601 { 601 {
602 return getAttribute(titleAttr); 602 return fastGetAttribute(titleAttr);
603 } 603 }
604 604
605 short HTMLElement::tabIndex() const 605 short HTMLElement::tabIndex() const
606 { 606 {
607 if (supportsFocus()) 607 if (supportsFocus())
608 return Element::tabIndex(); 608 return Element::tabIndex();
609 return -1; 609 return -1;
610 } 610 }
611 611
612 void HTMLElement::setTabIndex(int value) 612 void HTMLElement::setTabIndex(int value)
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 #ifndef NDEBUG 968 #ifndef NDEBUG
969 969
970 // For use in the debugger 970 // For use in the debugger
971 void dumpInnerHTML(WebCore::HTMLElement*); 971 void dumpInnerHTML(WebCore::HTMLElement*);
972 972
973 void dumpInnerHTML(WebCore::HTMLElement* element) 973 void dumpInnerHTML(WebCore::HTMLElement* element)
974 { 974 {
975 printf("%s\n", element->innerHTML().ascii().data()); 975 printf("%s\n", element->innerHTML().ascii().data());
976 } 976 }
977 #endif 977 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/StyleSheetCandidate.cpp ('k') | Source/core/html/HTMLHtmlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698