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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 } | 769 } |
770 | 770 |
771 bool HTMLElement::rendererIsNeeded(const RenderStyle& style) | 771 bool HTMLElement::rendererIsNeeded(const RenderStyle& style) |
772 { | 772 { |
773 if (hasLocalName(noscriptTag)) { | 773 if (hasLocalName(noscriptTag)) { |
774 Frame* frame = document().frame(); | 774 Frame* frame = document().frame(); |
775 if (frame && frame->script().canExecuteScripts(NotAboutToExecuteScript)) | 775 if (frame && frame->script().canExecuteScripts(NotAboutToExecuteScript)) |
776 return false; | 776 return false; |
777 } else if (hasLocalName(noembedTag)) { | 777 } else if (hasLocalName(noembedTag)) { |
778 Frame* frame = document().frame(); | 778 Frame* frame = document().frame(); |
779 if (frame && frame->loader()->allowPlugins(NotAboutToInstantiatePlugin)) | 779 if (frame && frame->loader().allowPlugins(NotAboutToInstantiatePlugin)) |
780 return false; | 780 return false; |
781 } | 781 } |
782 return Element::rendererIsNeeded(style); | 782 return Element::rendererIsNeeded(style); |
783 } | 783 } |
784 | 784 |
785 RenderObject* HTMLElement::createRenderer(RenderStyle* style) | 785 RenderObject* HTMLElement::createRenderer(RenderStyle* style) |
786 { | 786 { |
787 if (hasLocalName(wbrTag)) | 787 if (hasLocalName(wbrTag)) |
788 return new RenderWordBreak(this); | 788 return new RenderWordBreak(this); |
789 return RenderObject::createObject(this, style); | 789 return RenderObject::createObject(this, style); |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 #ifndef NDEBUG | 1122 #ifndef NDEBUG |
1123 | 1123 |
1124 // For use in the debugger | 1124 // For use in the debugger |
1125 void dumpInnerHTML(WebCore::HTMLElement*); | 1125 void dumpInnerHTML(WebCore::HTMLElement*); |
1126 | 1126 |
1127 void dumpInnerHTML(WebCore::HTMLElement* element) | 1127 void dumpInnerHTML(WebCore::HTMLElement* element) |
1128 { | 1128 { |
1129 printf("%s\n", element->innerHTML().ascii().data()); | 1129 printf("%s\n", element->innerHTML().ascii().data()); |
1130 } | 1130 } |
1131 #endif | 1131 #endif |
OLD | NEW |