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

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

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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, 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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 if (frame && frame->script()->canExecuteScripts(NotAboutToExecuteScript) ) 728 if (frame && frame->script()->canExecuteScripts(NotAboutToExecuteScript) )
729 return false; 729 return false;
730 } else if (hasLocalName(noembedTag)) { 730 } else if (hasLocalName(noembedTag)) {
731 Frame* frame = document()->frame(); 731 Frame* frame = document()->frame();
732 if (frame && frame->loader()->subframeLoader()->allowPlugins(NotAboutToI nstantiatePlugin)) 732 if (frame && frame->loader()->subframeLoader()->allowPlugins(NotAboutToI nstantiatePlugin))
733 return false; 733 return false;
734 } 734 }
735 return StyledElement::rendererIsNeeded(context); 735 return StyledElement::rendererIsNeeded(context);
736 } 736 }
737 737
738 RenderObject* HTMLElement::createRenderer(RenderArena* arena, RenderStyle* style ) 738 RenderObject* HTMLElement::createRenderer(RenderStyle* style)
739 { 739 {
740 if (hasLocalName(wbrTag)) 740 if (hasLocalName(wbrTag))
741 return new (arena) RenderWordBreak(this); 741 return new RenderWordBreak(this);
742 return RenderObject::createObject(this, style); 742 return RenderObject::createObject(this, style);
743 } 743 }
744 744
745 HTMLFormElement* HTMLElement::findFormAncestor() const 745 HTMLFormElement* HTMLElement::findFormAncestor() const
746 { 746 {
747 for (ContainerNode* ancestor = parentNode(); ancestor; ancestor = ancestor-> parentNode()) { 747 for (ContainerNode* ancestor = parentNode(); ancestor; ancestor = ancestor-> parentNode()) {
748 if (ancestor->hasTagName(formTag)) 748 if (ancestor->hasTagName(formTag))
749 return static_cast<HTMLFormElement*>(ancestor); 749 return static_cast<HTMLFormElement*>(ancestor);
750 } 750 }
751 return 0; 751 return 0;
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 #ifndef NDEBUG 1034 #ifndef NDEBUG
1035 1035
1036 // For use in the debugger 1036 // For use in the debugger
1037 void dumpInnerHTML(WebCore::HTMLElement*); 1037 void dumpInnerHTML(WebCore::HTMLElement*);
1038 1038
1039 void dumpInnerHTML(WebCore::HTMLElement* element) 1039 void dumpInnerHTML(WebCore::HTMLElement* element)
1040 { 1040 {
1041 printf("%s\n", element->innerHTML().ascii().data()); 1041 printf("%s\n", element->innerHTML().ascii().data());
1042 } 1042 }
1043 #endif 1043 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698