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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 | 719 |
720 // Default on the root element is translate=yes. | 720 // Default on the root element is translate=yes. |
721 return true; | 721 return true; |
722 } | 722 } |
723 | 723 |
724 void HTMLElement::setTranslate(bool enable) | 724 void HTMLElement::setTranslate(bool enable) |
725 { | 725 { |
726 setAttribute(translateAttr, enable ? "yes" : "no"); | 726 setAttribute(translateAttr, enable ? "yes" : "no"); |
727 } | 727 } |
728 | 728 |
729 | |
730 PassRefPtr<HTMLCollection> HTMLElement::children() | |
731 { | |
732 return ensureCachedHTMLCollection(NodeChildren); | |
733 } | |
734 | |
735 bool HTMLElement::rendererIsNeeded(const NodeRenderingContext& context) | 729 bool HTMLElement::rendererIsNeeded(const NodeRenderingContext& context) |
736 { | 730 { |
737 if (hasLocalName(noscriptTag)) { | 731 if (hasLocalName(noscriptTag)) { |
738 Frame* frame = document()->frame(); | 732 Frame* frame = document()->frame(); |
739 if (frame && frame->script()->canExecuteScripts(NotAboutToExecuteScript)
) | 733 if (frame && frame->script()->canExecuteScripts(NotAboutToExecuteScript)
) |
740 return false; | 734 return false; |
741 } else if (hasLocalName(noembedTag)) { | 735 } else if (hasLocalName(noembedTag)) { |
742 Frame* frame = document()->frame(); | 736 Frame* frame = document()->frame(); |
743 if (frame && frame->loader()->subframeLoader()->allowPlugins(NotAboutToI
nstantiatePlugin)) | 737 if (frame && frame->loader()->subframeLoader()->allowPlugins(NotAboutToI
nstantiatePlugin)) |
744 return false; | 738 return false; |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 #ifndef NDEBUG | 1039 #ifndef NDEBUG |
1046 | 1040 |
1047 // For use in the debugger | 1041 // For use in the debugger |
1048 void dumpInnerHTML(WebCore::HTMLElement*); | 1042 void dumpInnerHTML(WebCore::HTMLElement*); |
1049 | 1043 |
1050 void dumpInnerHTML(WebCore::HTMLElement* element) | 1044 void dumpInnerHTML(WebCore::HTMLElement* element) |
1051 { | 1045 { |
1052 printf("%s\n", element->innerHTML().ascii().data()); | 1046 printf("%s\n", element->innerHTML().ascii().data()); |
1053 } | 1047 } |
1054 #endif | 1048 #endif |
OLD | NEW |