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 2484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2495 return 0; | 2495 return 0; |
2496 } | 2496 } |
2497 | 2497 |
2498 bool Element::webkitMatchesSelector(const String& selector, ExceptionState& es) | 2498 bool Element::webkitMatchesSelector(const String& selector, ExceptionState& es) |
2499 { | 2499 { |
2500 if (selector.isEmpty()) { | 2500 if (selector.isEmpty()) { |
2501 es.throwDOMException(SyntaxError); | 2501 es.throwDOMException(SyntaxError); |
2502 return false; | 2502 return false; |
2503 } | 2503 } |
2504 | 2504 |
2505 SelectorQuery* selectorQuery = document().selectorQueryCache()->add(selector
, &document(), es); | 2505 SelectorQuery* selectorQuery = document().selectorQueryCache()->add(selector
, document(), es); |
2506 if (!selectorQuery) | 2506 if (!selectorQuery) |
2507 return false; | 2507 return false; |
2508 return selectorQuery->matches(this); | 2508 return selectorQuery->matches(this); |
2509 } | 2509 } |
2510 | 2510 |
2511 DOMTokenList* Element::classList() | 2511 DOMTokenList* Element::classList() |
2512 { | 2512 { |
2513 ElementRareData* data = ensureElementRareData(); | 2513 ElementRareData* data = ensureElementRareData(); |
2514 if (!data->classList()) | 2514 if (!data->classList()) |
2515 data->setClassList(ClassList::create(this)); | 2515 data->setClassList(ClassList::create(this)); |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3634 return 0; | 3634 return 0; |
3635 } | 3635 } |
3636 | 3636 |
3637 Attribute* UniqueElementData::attributeItem(unsigned index) | 3637 Attribute* UniqueElementData::attributeItem(unsigned index) |
3638 { | 3638 { |
3639 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3639 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
3640 return &m_attributeVector.at(index); | 3640 return &m_attributeVector.at(index); |
3641 } | 3641 } |
3642 | 3642 |
3643 } // namespace WebCore | 3643 } // namespace WebCore |
OLD | NEW |