OLD | NEW |
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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 Frame* frame = document()->frame(); | 763 Frame* frame = document()->frame(); |
764 if (frame && frame->loader()->allowPlugins(NotAboutToInstantiatePlugin)) | 764 if (frame && frame->loader()->allowPlugins(NotAboutToInstantiatePlugin)) |
765 return false; | 765 return false; |
766 } | 766 } |
767 return Element::rendererIsNeeded(context); | 767 return Element::rendererIsNeeded(context); |
768 } | 768 } |
769 | 769 |
770 RenderObject* HTMLElement::createRenderer(RenderStyle* style) | 770 RenderObject* HTMLElement::createRenderer(RenderStyle* style) |
771 { | 771 { |
772 if (hasLocalName(wbrTag)) | 772 if (hasLocalName(wbrTag)) |
773 return new (document()->renderArena()) RenderWordBreak(this); | 773 return new RenderWordBreak(this); |
774 return RenderObject::createObject(this, style); | 774 return RenderObject::createObject(this, style); |
775 } | 775 } |
776 | 776 |
777 HTMLFormElement* HTMLElement::findFormAncestor() const | 777 HTMLFormElement* HTMLElement::findFormAncestor() const |
778 { | 778 { |
779 for (ContainerNode* ancestor = parentNode(); ancestor; ancestor = ancestor->
parentNode()) { | 779 for (ContainerNode* ancestor = parentNode(); ancestor; ancestor = ancestor->
parentNode()) { |
780 if (ancestor->hasTagName(formTag)) | 780 if (ancestor->hasTagName(formTag)) |
781 return toHTMLFormElement(ancestor); | 781 return toHTMLFormElement(ancestor); |
782 } | 782 } |
783 return 0; | 783 return 0; |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1088 #ifndef NDEBUG | 1088 #ifndef NDEBUG |
1089 | 1089 |
1090 // For use in the debugger | 1090 // For use in the debugger |
1091 void dumpInnerHTML(WebCore::HTMLElement*); | 1091 void dumpInnerHTML(WebCore::HTMLElement*); |
1092 | 1092 |
1093 void dumpInnerHTML(WebCore::HTMLElement* element) | 1093 void dumpInnerHTML(WebCore::HTMLElement* element) |
1094 { | 1094 { |
1095 printf("%s\n", element->innerHTML().ascii().data()); | 1095 printf("%s\n", element->innerHTML().ascii().data()); |
1096 } | 1096 } |
1097 #endif | 1097 #endif |
OLD | NEW |