| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 Node::NodeType Element::nodeType() const | 269 Node::NodeType Element::nodeType() const |
| 270 { | 270 { |
| 271 return ELEMENT_NODE; | 271 return ELEMENT_NODE; |
| 272 } | 272 } |
| 273 | 273 |
| 274 void Element::synchronizeAllAttributes() const | 274 void Element::synchronizeAllAttributes() const |
| 275 { | 275 { |
| 276 synchronizeAttribute(HTMLNames::styleAttr.localName()); | 276 synchronizeAttribute(HTMLNames::styleAttr.localName()); |
| 277 } | 277 } |
| 278 | 278 |
| 279 String Element::title() const | |
| 280 { | |
| 281 return getAttribute(HTMLNames::titleAttr); | |
| 282 } | |
| 283 | |
| 284 String Element::contentEditable() const | 279 String Element::contentEditable() const |
| 285 { | 280 { |
| 286 const AtomicString& value = getAttribute(HTMLNames::contenteditableAttr); | 281 const AtomicString& value = getAttribute(HTMLNames::contenteditableAttr); |
| 287 | 282 |
| 288 if (value.isNull()) | 283 if (value.isNull()) |
| 289 return "inherit"; | 284 return "inherit"; |
| 290 if (value.isEmpty() || equalIgnoringCase(value, "true")) | 285 if (value.isEmpty() || equalIgnoringCase(value, "true")) |
| 291 return "true"; | 286 return "true"; |
| 292 if (equalIgnoringCase(value, "false")) | 287 if (equalIgnoringCase(value, "false")) |
| 293 return "false"; | 288 return "false"; |
| (...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1831 return false; | 1826 return false; |
| 1832 if (treeScope().scopedStyleResolver().features().hasSelectorForId(idValue)) | 1827 if (treeScope().scopedStyleResolver().features().hasSelectorForId(idValue)) |
| 1833 return true; | 1828 return true; |
| 1834 // Host rules could also have effects. | 1829 // Host rules could also have effects. |
| 1835 if (ShadowRoot* shadowRoot = this->shadowRoot()) | 1830 if (ShadowRoot* shadowRoot = this->shadowRoot()) |
| 1836 return shadowRoot->scopedStyleResolver().features().hasSelectorForId(idV
alue); | 1831 return shadowRoot->scopedStyleResolver().features().hasSelectorForId(idV
alue); |
| 1837 return false; | 1832 return false; |
| 1838 } | 1833 } |
| 1839 | 1834 |
| 1840 } // namespace blink | 1835 } // namespace blink |
| OLD | NEW |