| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "sky/engine/config.h" | 31 #include "sky/engine/config.h" |
| 32 #include "sky/engine/public/web/WebNode.h" | 32 #include "sky/engine/public/web/WebNode.h" |
| 33 | 33 |
| 34 #include "sky/engine/bindings/core/v8/ExceptionState.h" | 34 #include "sky/engine/bindings/core/v8/ExceptionState.h" |
| 35 #include "sky/engine/core/dom/Document.h" | 35 #include "sky/engine/core/dom/Document.h" |
| 36 #include "sky/engine/core/dom/Element.h" | 36 #include "sky/engine/core/dom/Element.h" |
| 37 #include "sky/engine/core/dom/Node.h" | 37 #include "sky/engine/core/dom/Node.h" |
| 38 #include "sky/engine/core/dom/NodeList.h" | 38 #include "sky/engine/core/dom/NodeList.h" |
| 39 #include "sky/engine/core/editing/markup.h" | |
| 40 #include "sky/engine/core/events/Event.h" | 39 #include "sky/engine/core/events/Event.h" |
| 41 #include "sky/engine/core/html/HTMLElement.h" | 40 #include "sky/engine/core/html/HTMLElement.h" |
| 42 #include "sky/engine/core/rendering/RenderObject.h" | 41 #include "sky/engine/core/rendering/RenderObject.h" |
| 43 #include "sky/engine/platform/Widget.h" | 42 #include "sky/engine/platform/Widget.h" |
| 44 #include "sky/engine/public/platform/WebString.h" | 43 #include "sky/engine/public/platform/WebString.h" |
| 45 #include "sky/engine/public/platform/WebVector.h" | 44 #include "sky/engine/public/platform/WebVector.h" |
| 46 #include "sky/engine/public/web/WebDocument.h" | 45 #include "sky/engine/public/web/WebDocument.h" |
| 47 #include "sky/engine/public/web/WebElement.h" | 46 #include "sky/engine/public/web/WebElement.h" |
| 48 #include "sky/engine/web/FrameLoaderClientImpl.h" | 47 #include "sky/engine/web/FrameLoaderClientImpl.h" |
| 49 #include "sky/engine/web/WebLocalFrameImpl.h" | 48 #include "sky/engine/web/WebLocalFrameImpl.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 WebNode WebNode::nextSibling() const | 107 WebNode WebNode::nextSibling() const |
| 109 { | 108 { |
| 110 return WebNode(m_private->nextSibling()); | 109 return WebNode(m_private->nextSibling()); |
| 111 } | 110 } |
| 112 | 111 |
| 113 bool WebNode::hasChildNodes() const | 112 bool WebNode::hasChildNodes() const |
| 114 { | 113 { |
| 115 return m_private->hasChildren(); | 114 return m_private->hasChildren(); |
| 116 } | 115 } |
| 117 | 116 |
| 118 WebString WebNode::createMarkup() const | |
| 119 { | |
| 120 return blink::createMarkup(m_private.get()); | |
| 121 } | |
| 122 | |
| 123 bool WebNode::isLink() const | 117 bool WebNode::isLink() const |
| 124 { | 118 { |
| 125 return m_private->isLink(); | 119 return m_private->isLink(); |
| 126 } | 120 } |
| 127 | 121 |
| 128 bool WebNode::isTextNode() const | 122 bool WebNode::isTextNode() const |
| 129 { | 123 { |
| 130 return m_private->isTextNode(); | 124 return m_private->isTextNode(); |
| 131 } | 125 } |
| 132 | 126 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 m_private = node; | 203 m_private = node; |
| 210 return *this; | 204 return *this; |
| 211 } | 205 } |
| 212 | 206 |
| 213 WebNode::operator PassRefPtr<Node>() const | 207 WebNode::operator PassRefPtr<Node>() const |
| 214 { | 208 { |
| 215 return m_private.get(); | 209 return m_private.get(); |
| 216 } | 210 } |
| 217 | 211 |
| 218 } // namespace blink | 212 } // namespace blink |
| OLD | NEW |