| 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 26 matching lines...) Expand all Loading... |
| 37 #include "sky/engine/core/css/CSSImageValue.h" | 37 #include "sky/engine/core/css/CSSImageValue.h" |
| 38 #include "sky/engine/core/css/CSSStyleSheet.h" | 38 #include "sky/engine/core/css/CSSStyleSheet.h" |
| 39 #include "sky/engine/core/css/CSSValuePool.h" | 39 #include "sky/engine/core/css/CSSValuePool.h" |
| 40 #include "sky/engine/core/css/PropertySetCSSStyleDeclaration.h" | 40 #include "sky/engine/core/css/PropertySetCSSStyleDeclaration.h" |
| 41 #include "sky/engine/core/css/StylePropertySet.h" | 41 #include "sky/engine/core/css/StylePropertySet.h" |
| 42 #include "sky/engine/core/css/parser/BisonCSSParser.h" | 42 #include "sky/engine/core/css/parser/BisonCSSParser.h" |
| 43 #include "sky/engine/core/css/resolver/StyleResolver.h" | 43 #include "sky/engine/core/css/resolver/StyleResolver.h" |
| 44 #include "sky/engine/core/dom/Attr.h" | 44 #include "sky/engine/core/dom/Attr.h" |
| 45 #include "sky/engine/core/dom/ClientRect.h" | 45 #include "sky/engine/core/dom/ClientRect.h" |
| 46 #include "sky/engine/core/dom/ClientRectList.h" | 46 #include "sky/engine/core/dom/ClientRectList.h" |
| 47 #include "sky/engine/core/dom/DOMTokenList.h" |
| 47 #include "sky/engine/core/dom/Document.h" | 48 #include "sky/engine/core/dom/Document.h" |
| 48 #include "sky/engine/core/dom/ElementDataCache.h" | 49 #include "sky/engine/core/dom/ElementDataCache.h" |
| 49 #include "sky/engine/core/dom/ElementRareData.h" | 50 #include "sky/engine/core/dom/ElementRareData.h" |
| 50 #include "sky/engine/core/dom/ElementTraversal.h" | 51 #include "sky/engine/core/dom/ElementTraversal.h" |
| 51 #include "sky/engine/core/dom/ExceptionCode.h" | 52 #include "sky/engine/core/dom/ExceptionCode.h" |
| 52 #include "sky/engine/core/dom/MutationObserverInterestGroup.h" | 53 #include "sky/engine/core/dom/MutationObserverInterestGroup.h" |
| 53 #include "sky/engine/core/dom/MutationRecord.h" | 54 #include "sky/engine/core/dom/MutationRecord.h" |
| 54 #include "sky/engine/core/dom/NodeRenderStyle.h" | 55 #include "sky/engine/core/dom/NodeRenderStyle.h" |
| 55 #include "sky/engine/core/dom/RenderTreeBuilder.h" | 56 #include "sky/engine/core/dom/RenderTreeBuilder.h" |
| 56 #include "sky/engine/core/dom/SelectorQuery.h" | 57 #include "sky/engine/core/dom/SelectorQuery.h" |
| 57 #include "sky/engine/core/dom/StyleEngine.h" | 58 #include "sky/engine/core/dom/StyleEngine.h" |
| 58 #include "sky/engine/core/dom/Text.h" | 59 #include "sky/engine/core/dom/Text.h" |
| 59 #include "sky/engine/core/dom/custom/CustomElement.h" | 60 #include "sky/engine/core/dom/custom/CustomElement.h" |
| 60 #include "sky/engine/core/dom/custom/CustomElementRegistrationContext.h" | 61 #include "sky/engine/core/dom/custom/CustomElementRegistrationContext.h" |
| 61 #include "sky/engine/core/dom/shadow/InsertionPoint.h" | 62 #include "sky/engine/core/dom/shadow/InsertionPoint.h" |
| 62 #include "sky/engine/core/dom/shadow/ShadowRoot.h" | 63 #include "sky/engine/core/dom/shadow/ShadowRoot.h" |
| 63 #include "sky/engine/core/editing/FrameSelection.h" | 64 #include "sky/engine/core/editing/FrameSelection.h" |
| 64 #include "sky/engine/core/editing/TextIterator.h" | 65 #include "sky/engine/core/editing/TextIterator.h" |
| 65 #include "sky/engine/core/editing/htmlediting.h" | 66 #include "sky/engine/core/editing/htmlediting.h" |
| 66 #include "sky/engine/core/events/EventDispatcher.h" | 67 #include "sky/engine/core/events/EventDispatcher.h" |
| 67 #include "sky/engine/core/events/FocusEvent.h" | 68 #include "sky/engine/core/events/FocusEvent.h" |
| 68 #include "sky/engine/core/frame/FrameView.h" | 69 #include "sky/engine/core/frame/FrameView.h" |
| 69 #include "sky/engine/core/frame/LocalFrame.h" | 70 #include "sky/engine/core/frame/LocalFrame.h" |
| 70 #include "sky/engine/core/frame/Settings.h" | 71 #include "sky/engine/core/frame/Settings.h" |
| 71 #include "sky/engine/core/frame/UseCounter.h" | 72 #include "sky/engine/core/frame/UseCounter.h" |
| 72 #include "sky/engine/core/html/ClassList.h" | |
| 73 #include "sky/engine/core/html/HTMLCanvasElement.h" | 73 #include "sky/engine/core/html/HTMLCanvasElement.h" |
| 74 #include "sky/engine/core/html/HTMLDocument.h" | 74 #include "sky/engine/core/html/HTMLDocument.h" |
| 75 #include "sky/engine/core/html/HTMLElement.h" | 75 #include "sky/engine/core/html/HTMLElement.h" |
| 76 #include "sky/engine/core/html/HTMLTemplateElement.h" | 76 #include "sky/engine/core/html/HTMLTemplateElement.h" |
| 77 #include "sky/engine/core/html/parser/HTMLDocumentParser.h" | 77 #include "sky/engine/core/html/parser/HTMLDocumentParser.h" |
| 78 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" | 78 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" |
| 79 #include "sky/engine/core/page/Chrome.h" | 79 #include "sky/engine/core/page/Chrome.h" |
| 80 #include "sky/engine/core/page/ChromeClient.h" | 80 #include "sky/engine/core/page/ChromeClient.h" |
| 81 #include "sky/engine/core/page/FocusController.h" | 81 #include "sky/engine/core/page/FocusController.h" |
| 82 #include "sky/engine/core/page/Page.h" | 82 #include "sky/engine/core/page/Page.h" |
| (...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1432 SelectorQuery* selectorQuery = document().selectorQueryCache().add(AtomicStr
ing(selectors), document(), exceptionState); | 1432 SelectorQuery* selectorQuery = document().selectorQueryCache().add(AtomicStr
ing(selectors), document(), exceptionState); |
| 1433 if (!selectorQuery) | 1433 if (!selectorQuery) |
| 1434 return false; | 1434 return false; |
| 1435 return selectorQuery->matches(*this); | 1435 return selectorQuery->matches(*this); |
| 1436 } | 1436 } |
| 1437 | 1437 |
| 1438 DOMTokenList& Element::classList() | 1438 DOMTokenList& Element::classList() |
| 1439 { | 1439 { |
| 1440 ElementRareData& rareData = ensureElementRareData(); | 1440 ElementRareData& rareData = ensureElementRareData(); |
| 1441 if (!rareData.classList()) | 1441 if (!rareData.classList()) |
| 1442 rareData.setClassList(ClassList::create(this)); | 1442 rareData.setClassList(DOMTokenList::create(*this)); |
| 1443 return *rareData.classList(); | 1443 return *rareData.classList(); |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 KURL Element::hrefURL() const | 1446 KURL Element::hrefURL() const |
| 1447 { | 1447 { |
| 1448 // FIXME: These all have href() or url(), but no common super class. Why doe
sn't | 1448 // FIXME: These all have href() or url(), but no common super class. Why doe
sn't |
| 1449 // <link> implement URLUtils? | 1449 // <link> implement URLUtils? |
| 1450 if (isHTMLAnchorElement(*this)) | 1450 if (isHTMLAnchorElement(*this)) |
| 1451 return getURLAttribute(HTMLNames::hrefAttr); | 1451 return getURLAttribute(HTMLNames::hrefAttr); |
| 1452 return KURL(); | 1452 return KURL(); |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1830 return false; | 1830 return false; |
| 1831 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. | 1831 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. |
| 1832 // See comments in RenderObject::setStyle(). | 1832 // See comments in RenderObject::setStyle(). |
| 1833 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? | 1833 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? |
| 1834 if (isHTMLCanvasElement(*this)) | 1834 if (isHTMLCanvasElement(*this)) |
| 1835 return false; | 1835 return false; |
| 1836 return true; | 1836 return true; |
| 1837 } | 1837 } |
| 1838 | 1838 |
| 1839 } // namespace blink | 1839 } // namespace blink |
| OLD | NEW |