| 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 bool Element::spellcheck() const | 307 bool Element::spellcheck() const |
| 308 { | 308 { |
| 309 return isSpellCheckingEnabled(); | 309 return isSpellCheckingEnabled(); |
| 310 } | 310 } |
| 311 | 311 |
| 312 void Element::setSpellcheck(bool enable) | 312 void Element::setSpellcheck(bool enable) |
| 313 { | 313 { |
| 314 setAttribute(HTMLNames::spellcheckAttr, enable ? "true" : "false"); | 314 setAttribute(HTMLNames::spellcheckAttr, enable ? "true" : "false"); |
| 315 } | 315 } |
| 316 | 316 |
| 317 | |
| 318 void Element::click() | |
| 319 { | |
| 320 dispatchSimulatedClick(0, SendNoEvents); | |
| 321 } | |
| 322 | |
| 323 // Returns the conforming 'dir' value associated with the state the attribute is
in (in its canonical case), if any, | 317 // Returns the conforming 'dir' value associated with the state the attribute is
in (in its canonical case), if any, |
| 324 // or the empty string if the attribute is in a state that has no associated key
word value or if the attribute is | 318 // or the empty string if the attribute is in a state that has no associated key
word value or if the attribute is |
| 325 // not in a defined state (e.g. the attribute is missing and there is no missing
value default). | 319 // not in a defined state (e.g. the attribute is missing and there is no missing
value default). |
| 326 // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interf
aces.html#limited-to-only-known-values | 320 // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interf
aces.html#limited-to-only-known-values |
| 327 static inline const AtomicString& toValidDirValue(const AtomicString& value) | 321 static inline const AtomicString& toValidDirValue(const AtomicString& value) |
| 328 { | 322 { |
| 329 DEFINE_STATIC_LOCAL(const AtomicString, ltrValue, ("ltr", AtomicString::Cons
tructFromLiteral)); | 323 DEFINE_STATIC_LOCAL(const AtomicString, ltrValue, ("ltr", AtomicString::Cons
tructFromLiteral)); |
| 330 DEFINE_STATIC_LOCAL(const AtomicString, rtlValue, ("rtl", AtomicString::Cons
tructFromLiteral)); | 324 DEFINE_STATIC_LOCAL(const AtomicString, rtlValue, ("rtl", AtomicString::Cons
tructFromLiteral)); |
| 331 DEFINE_STATIC_LOCAL(const AtomicString, autoValue, ("auto", AtomicString::Co
nstructFromLiteral)); | 325 DEFINE_STATIC_LOCAL(const AtomicString, autoValue, ("auto", AtomicString::Co
nstructFromLiteral)); |
| 332 | 326 |
| (...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 return false; | 1772 return false; |
| 1779 if (treeScope().scopedStyleResolver().hasSelectorForId(idValue)) | 1773 if (treeScope().scopedStyleResolver().hasSelectorForId(idValue)) |
| 1780 return true; | 1774 return true; |
| 1781 // Host rules could also have effects. | 1775 // Host rules could also have effects. |
| 1782 if (ShadowRoot* shadowRoot = this->shadowRoot()) | 1776 if (ShadowRoot* shadowRoot = this->shadowRoot()) |
| 1783 return shadowRoot->scopedStyleResolver().hasSelectorForId(idValue); | 1777 return shadowRoot->scopedStyleResolver().hasSelectorForId(idValue); |
| 1784 return false; | 1778 return false; |
| 1785 } | 1779 } |
| 1786 | 1780 |
| 1787 } // namespace blink | 1781 } // namespace blink |
| OLD | NEW |