| 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 2209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2220 clearTabIndexExplicitlyIfNeeded(); | 2220 clearTabIndexExplicitlyIfNeeded(); |
| 2221 if (treeScope().adjustedFocusedElement() == this) { | 2221 if (treeScope().adjustedFocusedElement() == this) { |
| 2222 // We might want to call blur(), but it's dangerous to dispatch | 2222 // We might want to call blur(), but it's dangerous to dispatch |
| 2223 // events here. | 2223 // events here. |
| 2224 document().setNeedsFocusedElementCheck(); | 2224 document().setNeedsFocusedElementCheck(); |
| 2225 } | 2225 } |
| 2226 } else if (parseHTMLInteger(value, tabindex)) { | 2226 } else if (parseHTMLInteger(value, tabindex)) { |
| 2227 // Clamp tabindex to the range of 'short' to match Firefox's behavio
r. | 2227 // Clamp tabindex to the range of 'short' to match Firefox's behavio
r. |
| 2228 setTabIndexExplicitly(max(static_cast<int>(std::numeric_limits<short
>::min()), std::min(tabindex, static_cast<int>(std::numeric_limits<short>::max()
)))); | 2228 setTabIndexExplicitly(max(static_cast<int>(std::numeric_limits<short
>::min()), std::min(tabindex, static_cast<int>(std::numeric_limits<short>::max()
)))); |
| 2229 } | 2229 } |
| 2230 } else if (name == XMLNames::langAttr) { |
| 2231 pseudoStateChanged(CSSSelector::PseudoLang); |
| 2230 } | 2232 } |
| 2231 } | 2233 } |
| 2232 | 2234 |
| 2233 bool Element::parseAttributeName(QualifiedName& out, const AtomicString& namespa
ceURI, const AtomicString& qualifiedName, ExceptionState& exceptionState) | 2235 bool Element::parseAttributeName(QualifiedName& out, const AtomicString& namespa
ceURI, const AtomicString& qualifiedName, ExceptionState& exceptionState) |
| 2234 { | 2236 { |
| 2235 AtomicString prefix, localName; | 2237 AtomicString prefix, localName; |
| 2236 if (!Document::parseQualifiedName(qualifiedName, prefix, localName, exceptio
nState)) | 2238 if (!Document::parseQualifiedName(qualifiedName, prefix, localName, exceptio
nState)) |
| 2237 return false; | 2239 return false; |
| 2238 ASSERT(!exceptionState.hadException()); | 2240 ASSERT(!exceptionState.hadException()); |
| 2239 | 2241 |
| (...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3565 { | 3567 { |
| 3566 #if ENABLE(OILPAN) | 3568 #if ENABLE(OILPAN) |
| 3567 if (hasRareData()) | 3569 if (hasRareData()) |
| 3568 visitor->trace(elementRareData()); | 3570 visitor->trace(elementRareData()); |
| 3569 visitor->trace(m_elementData); | 3571 visitor->trace(m_elementData); |
| 3570 #endif | 3572 #endif |
| 3571 ContainerNode::trace(visitor); | 3573 ContainerNode::trace(visitor); |
| 3572 } | 3574 } |
| 3573 | 3575 |
| 3574 } // namespace blink | 3576 } // namespace blink |
| OLD | NEW |