| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 || hasLocalName(imageTag) | 107 || hasLocalName(imageTag) |
| 108 || hasLocalName(imgTag) | 108 || hasLocalName(imgTag) |
| 109 || hasLocalName(inputTag) | 109 || hasLocalName(inputTag) |
| 110 || hasLocalName(isindexTag) | 110 || hasLocalName(isindexTag) |
| 111 || hasLocalName(linkTag) | 111 || hasLocalName(linkTag) |
| 112 || hasLocalName(metaTag) | 112 || hasLocalName(metaTag) |
| 113 || hasLocalName(paramTag) | 113 || hasLocalName(paramTag) |
| 114 || hasLocalName(sourceTag) | 114 || hasLocalName(sourceTag) |
| 115 || hasLocalName(wbrTag)) | 115 || hasLocalName(wbrTag)) |
| 116 return true; | 116 return true; |
| 117 // FIXME: I'm not sure why dashboard mode would want to change the | |
| 118 // serialization of <canvas>, that seems like a bad idea. | |
| 119 #if ENABLE(DASHBOARD_SUPPORT) | |
| 120 if (hasLocalName(canvasTag)) { | |
| 121 Settings* settings = document()->settings(); | |
| 122 if (settings && settings->usesDashboardBackwardCompatibilityMode()) | |
| 123 return true; | |
| 124 } | |
| 125 #endif | |
| 126 return false; | 117 return false; |
| 127 } | 118 } |
| 128 | 119 |
| 129 static inline int unicodeBidiAttributeForDirAuto(HTMLElement* element) | 120 static inline int unicodeBidiAttributeForDirAuto(HTMLElement* element) |
| 130 { | 121 { |
| 131 if (element->hasLocalName(preTag) || element->hasLocalName(textareaTag)) | 122 if (element->hasLocalName(preTag) || element->hasLocalName(textareaTag)) |
| 132 return CSSValueWebkitPlaintext; | 123 return CSSValueWebkitPlaintext; |
| 133 // FIXME: For bdo element, dir="auto" should result in "bidi-override isolat
e" but we don't support having multiple values in unicode-bidi yet. | 124 // FIXME: For bdo element, dir="auto" should result in "bidi-override isolat
e" but we don't support having multiple values in unicode-bidi yet. |
| 134 // See https://bugs.webkit.org/show_bug.cgi?id=73164. | 125 // See https://bugs.webkit.org/show_bug.cgi?id=73164. |
| 135 return CSSValueWebkitIsolate; | 126 return CSSValueWebkitIsolate; |
| (...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1160 #ifndef NDEBUG | 1151 #ifndef NDEBUG |
| 1161 | 1152 |
| 1162 // For use in the debugger | 1153 // For use in the debugger |
| 1163 void dumpInnerHTML(WebCore::HTMLElement*); | 1154 void dumpInnerHTML(WebCore::HTMLElement*); |
| 1164 | 1155 |
| 1165 void dumpInnerHTML(WebCore::HTMLElement* element) | 1156 void dumpInnerHTML(WebCore::HTMLElement* element) |
| 1166 { | 1157 { |
| 1167 printf("%s\n", element->innerHTML().ascii().data()); | 1158 printf("%s\n", element->innerHTML().ascii().data()); |
| 1168 } | 1159 } |
| 1169 #endif | 1160 #endif |
| OLD | NEW |