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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 const AtomicString& Element::getAttribute(const QualifiedName& name) const | 460 const AtomicString& Element::getAttribute(const QualifiedName& name) const |
461 { | 461 { |
462 if (!elementData()) | 462 if (!elementData()) |
463 return nullAtom; | 463 return nullAtom; |
464 synchronizeAttribute(name); | 464 synchronizeAttribute(name); |
465 if (const Attribute* attribute = findAttributeByName(name)) | 465 if (const Attribute* attribute = findAttributeByName(name)) |
466 return attribute->value(); | 466 return attribute->value(); |
467 return nullAtom; | 467 return nullAtom; |
468 } | 468 } |
469 | 469 |
| 470 bool Element::shouldIgnoreAttributeCase() const |
| 471 { |
| 472 return isHTMLElement() && document().isHTMLDocument(); |
| 473 } |
| 474 |
470 void Element::scrollIntoView(bool alignToTop) | 475 void Element::scrollIntoView(bool alignToTop) |
471 { | 476 { |
472 document().updateLayoutIgnorePendingStylesheets(); | 477 document().updateLayoutIgnorePendingStylesheets(); |
473 | 478 |
474 if (!renderer()) | 479 if (!renderer()) |
475 return; | 480 return; |
476 | 481 |
477 LayoutRect bounds = boundingBox(); | 482 LayoutRect bounds = boundingBox(); |
478 // Align to the top / bottom and to the closest edge. | 483 // Align to the top / bottom and to the closest edge. |
479 if (alignToTop) | 484 if (alignToTop) |
(...skipping 2853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3333 | 3338 |
3334 void Element::trace(Visitor* visitor) | 3339 void Element::trace(Visitor* visitor) |
3335 { | 3340 { |
3336 if (hasRareData()) | 3341 if (hasRareData()) |
3337 visitor->trace(elementRareData()); | 3342 visitor->trace(elementRareData()); |
3338 | 3343 |
3339 ContainerNode::trace(visitor); | 3344 ContainerNode::trace(visitor); |
3340 } | 3345 } |
3341 | 3346 |
3342 } // namespace WebCore | 3347 } // namespace WebCore |
OLD | NEW |