| 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 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2093 if (treeScope().adjustedFocusedElement() == this) { | 2093 if (treeScope().adjustedFocusedElement() == this) { |
| 2094 // We might want to call blur(), but it's dangerous to dispatch | 2094 // We might want to call blur(), but it's dangerous to dispatch |
| 2095 // events here. | 2095 // events here. |
| 2096 document().setNeedsFocusedElementCheck(); | 2096 document().setNeedsFocusedElementCheck(); |
| 2097 } | 2097 } |
| 2098 } else if (parseHTMLInteger(value, tabindex)) { | 2098 } else if (parseHTMLInteger(value, tabindex)) { |
| 2099 // Clamp tabindex to the range of 'short' to match Firefox's behavio
r. | 2099 // Clamp tabindex to the range of 'short' to match Firefox's behavio
r. |
| 2100 setTabIndexExplicitly(max(static_cast<int>(std::numeric_limits<short
>::min()), std::min(tabindex, static_cast<int>(std::numeric_limits<short>::max()
)))); | 2100 setTabIndexExplicitly(max(static_cast<int>(std::numeric_limits<short
>::min()), std::min(tabindex, static_cast<int>(std::numeric_limits<short>::max()
)))); |
| 2101 } | 2101 } |
| 2102 } else if (RuntimeEnabledFeatures::tabStopAttributeEnabled() && name == tabs
topAttr) { | 2102 } else if (RuntimeEnabledFeatures::tabStopAttributeEnabled() && name == tabs
topAttr) { |
| 2103 UseCounter::count(document(), UseCounter::TabStopAttribute); |
| 2103 if (!hasAttribute(tabstopAttr)) { | 2104 if (!hasAttribute(tabstopAttr)) { |
| 2104 // tabstop attribute removed. | 2105 // tabstop attribute removed. |
| 2105 clearElementFlag(TabStopWasSetExplicitly); | 2106 clearElementFlag(TabStopWasSetExplicitly); |
| 2106 setTabStopInternal(tabIndex() >= 0); | 2107 setTabStopInternal(tabIndex() >= 0); |
| 2107 } else { | 2108 } else { |
| 2108 // Treat empty attribute as true. | 2109 // Treat empty attribute as true. |
| 2109 if (equalIgnoringCase(value, "true") || equalIgnoringCase(value, "")
) { | 2110 if (equalIgnoringCase(value, "true") || equalIgnoringCase(value, "")
) { |
| 2110 setTabStopInternal(true); | 2111 setTabStopInternal(true); |
| 2111 setElementFlag(TabStopWasSetExplicitly, true); | 2112 setElementFlag(TabStopWasSetExplicitly, true); |
| 2112 } else if (equalIgnoringCase(value, "false")) { | 2113 } else if (equalIgnoringCase(value, "false")) { |
| (...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3495 { | 3496 { |
| 3496 #if ENABLE(OILPAN) | 3497 #if ENABLE(OILPAN) |
| 3497 if (hasRareData()) | 3498 if (hasRareData()) |
| 3498 visitor->trace(elementRareData()); | 3499 visitor->trace(elementRareData()); |
| 3499 visitor->trace(m_elementData); | 3500 visitor->trace(m_elementData); |
| 3500 #endif | 3501 #endif |
| 3501 ContainerNode::trace(visitor); | 3502 ContainerNode::trace(visitor); |
| 3502 } | 3503 } |
| 3503 | 3504 |
| 3504 } // namespace blink | 3505 } // namespace blink |
| OLD | NEW |