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

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

Issue 258143002: Oilpan: move DOM string collection objects to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased to meet NodeRareData CL Created 6 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, 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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 // even in spatial navigation mode instead of handling it as a "click" actio n. 943 // even in spatial navigation mode instead of handling it as a "click" actio n.
944 if (isTextFormControl() || isContentEditable()) 944 if (isTextFormControl() || isContentEditable())
945 return; 945 return;
946 int charCode = event->charCode(); 946 int charCode = event->charCode();
947 if (charCode == '\r' || charCode == ' ') { 947 if (charCode == '\r' || charCode == ' ') {
948 dispatchSimulatedClick(event); 948 dispatchSimulatedClick(event);
949 event->setDefaultHandled(); 949 event->setDefaultHandled();
950 } 950 }
951 } 951 }
952 952
953 void HTMLElement::trace(Visitor* visitor)
954 {
955 Element::trace(visitor);
956 }
957
953 } // namespace WebCore 958 } // namespace WebCore
954 959
955 #ifndef NDEBUG 960 #ifndef NDEBUG
956 961
957 // For use in the debugger 962 // For use in the debugger
958 void dumpInnerHTML(WebCore::HTMLElement*); 963 void dumpInnerHTML(WebCore::HTMLElement*);
959 964
960 void dumpInnerHTML(WebCore::HTMLElement* element) 965 void dumpInnerHTML(WebCore::HTMLElement* element)
961 { 966 {
962 printf("%s\n", element->innerHTML().ascii().data()); 967 printf("%s\n", element->innerHTML().ascii().data());
963 } 968 }
964 #endif 969 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698