| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
#ifndef Node_h |
|---|
| 25 |
#define Node_h |
|---|
| 26 |
|
|---|
| 27 |
#include "DocPtr.h" |
|---|
| 28 |
#include "PlatformString.h" |
|---|
| 29 |
#include "TreeShared.h" |
|---|
| 30 |
#include <wtf/Assertions.h> |
|---|
| 31 |
#include <wtf/HashSet.h> |
|---|
| 32 |
#include <wtf/OwnPtr.h> |
|---|
| 33 |
#include <wtf/PassRefPtr.h> |
|---|
| 34 |
|
|---|
| 35 |
namespace WebCore { |
|---|
| 36 |
|
|---|
| 37 |
class AtomicString; |
|---|
| 38 |
class ContainerNode; |
|---|
| 39 |
class Document; |
|---|
| 40 |
class DynamicNodeList; |
|---|
| 41 |
class Element; |
|---|
| 42 |
class Event; |
|---|
| 43 |
class EventListener; |
|---|
| 44 |
class IntRect; |
|---|
| 45 |
class KURL; |
|---|
| 46 |
class KeyboardEvent; |
|---|
| 47 |
class NSResolver; |
|---|
| 48 |
class NamedAttrMap; |
|---|
| 49 |
class NodeList; |
|---|
| 50 |
class PlatformKeyboardEvent; |
|---|
| 51 |
class PlatformMouseEvent; |
|---|
| 52 |
class PlatformWheelEvent; |
|---|
| 53 |
class QualifiedName; |
|---|
| 54 |
class RegisteredEventListener; |
|---|
| 55 |
class RenderArena; |
|---|
| 56 |
class RenderObject; |
|---|
| 57 |
class RenderStyle; |
|---|
| 58 |
class StringBuilder; |
|---|
| 59 |
|
|---|
| 60 |
struct NodeListsNodeData; |
|---|
| 61 |
|
|---|
| 62 |
typedef int ExceptionCode; |
|---|
| 63 |
|
|---|
| 64 |
enum StyleChangeType { NoStyleChange, InlineStyleChange, FullStyleChange, AnimationStyleChange }; |
|---|
| 65 |
|
|---|
| 66 |
const unsigned short DOCUMENT_POSITION_EQUIVALENT = 0x00; |
|---|
| 67 |
const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; |
|---|
| 68 |
const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; |
|---|
| 69 |
const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; |
|---|
| 70 |
const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; |
|---|
| 71 |
const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; |
|---|
| 72 |
const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; |
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 |
class Node : public TreeShared<Node> { |
|---|
| 76 |
friend class Document; |
|---|
| 77 |
public: |
|---|
| 78 |
enum NodeType { |
|---|
| 79 |
ELEMENT_NODE = 1, |
|---|
| 80 |
ATTRIBUTE_NODE = 2, |
|---|
| 81 |
TEXT_NODE = 3, |
|---|
| 82 |
CDATA_SECTION_NODE = 4, |
|---|
| 83 |
ENTITY_REFERENCE_NODE = 5, |
|---|
| 84 |
ENTITY_NODE = 6, |
|---|
| 85 |
PROCESSING_INSTRUCTION_NODE = 7, |
|---|
| 86 |
COMMENT_NODE = 8, |
|---|
| 87 |
DOCUMENT_NODE = 9, |
|---|
| 88 |
DOCUMENT_TYPE_NODE = 10, |
|---|
| 89 |
DOCUMENT_FRAGMENT_NODE = 11, |
|---|
| 90 |
NOTATION_NODE = 12, |
|---|
| 91 |
XPATH_NAMESPACE_NODE = 13 |
|---|
| 92 |
}; |
|---|
| 93 |
|
|---|
| 94 |
static bool isSupported(const String& feature, const String& version); |
|---|
| 95 |
|
|---|
| 96 |
static void startIgnoringLeaks(); |
|---|
| 97 |
static void stopIgnoringLeaks(); |
|---|
| 98 |
|
|---|
| 99 |
enum StyleChange { NoChange, NoInherit, Inherit, Detach, Force }; |
|---|
| 100 |
static StyleChange diff(RenderStyle*, RenderStyle*); |
|---|
| 101 |
|
|---|
| 102 |
Node(Document*, bool isElement = false); |
|---|
| 103 |
virtual ~Node(); |
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 |
|
|---|
| 107 |
bool hasTagName(const QualifiedName& name) const { return virtualHasTagName(name); } |
|---|
| 108 |
virtual String nodeName() const = 0; |
|---|
| 109 |
virtual String nodeValue() const; |
|---|
| 110 |
virtual void setNodeValue(const String&, ExceptionCode&); |
|---|
| 111 |
virtual NodeType nodeType() const = 0; |
|---|
| 112 |
Node* parentNode() const { return parent(); } |
|---|
| 113 |
Node* parentElement() const { return parent(); } |
|---|
| 114 |
Node* previousSibling() const { return m_previous; } |
|---|
| 115 |
Node* nextSibling() const { return m_next; } |
|---|
| 116 |
virtual PassRefPtr<NodeList> childNodes(); |
|---|
| 117 |
Node* firstChild() const { return virtualFirstChild(); } |
|---|
| 118 |
Node* lastChild() const { return virtualLastChild(); } |
|---|
| 119 |
virtual bool hasAttributes() const; |
|---|
| 120 |
virtual NamedAttrMap* attributes() const; |
|---|
| 121 |
|
|---|
| 122 |
virtual KURL baseURI() const; |
|---|
| 123 |
|
|---|
| 124 |
void getSubresourceURLs(Vector<KURL>&) const; |
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 |
|
|---|
| 129 |
virtual bool insertBefore(PassRefPtr<Node> newChild, Node* refChild, ExceptionCode&, bool shouldLazyAttach = false); |
|---|
| 130 |
virtual bool replaceChild(PassRefPtr<Node> newChild, Node* oldChild, ExceptionCode&, bool shouldLazyAttach = false); |
|---|
| 131 |
virtual bool removeChild(Node* child, ExceptionCode&); |
|---|
| 132 |
virtual bool appendChild(PassRefPtr<Node> newChild, ExceptionCode&, bool shouldLazyAttach = false); |
|---|
| 133 |
|
|---|
| 134 |
virtual void remove(ExceptionCode&); |
|---|
| 135 |
bool hasChildNodes() const { return firstChild(); } |
|---|
| 136 |
virtual PassRefPtr<Node> cloneNode(bool deep) = 0; |
|---|
| 137 |
virtual const AtomicString& localName() const; |
|---|
| 138 |
virtual const AtomicString& namespaceURI() const; |
|---|
| 139 |
virtual const AtomicString& prefix() const; |
|---|
| 140 |
virtual void setPrefix(const AtomicString&, ExceptionCode&); |
|---|
| 141 |
void normalize(); |
|---|
| 142 |
|
|---|
| 143 |
bool isSameNode(Node* other) const { return this == other; } |
|---|
| 144 |
bool isEqualNode(Node*) const; |
|---|
| 145 |
bool isDefaultNamespace(const String& namespaceURI) const; |
|---|
| 146 |
String lookupPrefix(const String& namespaceURI) const; |
|---|
| 147 |
String lookupNamespaceURI(const String& prefix) const; |
|---|
| 148 |
String lookupNamespacePrefix(const String& namespaceURI, const Element* originalElement) const; |
|---|
| 149 |
|
|---|
| 150 |
String textContent(bool convertBRsToNewlines = false) const; |
|---|
| 151 |
void setTextContent(const String&, ExceptionCode&); |
|---|
| 152 |
|
|---|
| 153 |
Node* lastDescendant() const; |
|---|
| 154 |
Node* firstDescendant() const; |
|---|
| 155 |
|
|---|
| 156 |
|
|---|
| 157 |
|
|---|
| 158 |
bool isElementNode() const { return m_isElement; } |
|---|
| 159 |
virtual bool isHTMLElement() const { return false; } |
|---|
| 160 |
|
|---|
| 161 |
#if ENABLE(SVG) |
|---|
| 162 |
virtual |
|---|
| 163 |
#endif |
|---|
| 164 |
bool isSVGElement() const { return false; } |
|---|
| 165 |
|
|---|
| 166 |
virtual bool isStyledElement() const { return false; } |
|---|
| 167 |
virtual bool isFrameOwnerElement() const { return false; } |
|---|
| 168 |
virtual bool isAttributeNode() const { return false; } |
|---|
| 169 |
virtual bool isTextNode() const { return false; } |
|---|
| 170 |
virtual bool isCommentNode() const { return false; } |
|---|
| 171 |
virtual bool isCharacterDataNode() const { return false; } |
|---|
| 172 |
virtual bool isDocumentNode() const { return false; } |
|---|
| 173 |
virtual bool isEventTargetNode() const { return false; } |
|---|
| 174 |
virtual bool isShadowNode() const { return false; } |
|---|
| 175 |
virtual Node* shadowParentNode() { return 0; } |
|---|
| 176 |
Node* shadowAncestorNode(); |
|---|
| 177 |
Node* shadowTreeRootNode(); |
|---|
| 178 |
|
|---|
| 179 |
|
|---|
| 180 |
virtual Node* eventParentNode() { return parentNode(); } |
|---|
| 181 |
|
|---|
| 182 |
bool isBlockFlow() const; |
|---|
| 183 |
bool isBlockFlowOrBlockTable() const; |
|---|
| 184 |
|
|---|
| 185 |
|
|---|
| 186 |
|
|---|
| 187 |
virtual bool isMalformed() { return false; } |
|---|
| 188 |
virtual void setMalformed(bool malformed) { } |
|---|
| 189 |
|
|---|
| 190 |
|
|---|
| 191 |
void setPreviousSibling(Node* previous) { m_previous = previous; } |
|---|
| 192 |
void setNextSibling(Node* next) { m_next = next; } |
|---|
| 193 |
|
|---|
| 194 |
|
|---|
| 195 |
Node* previousNodeConsideringAtomicNodes() const; |
|---|
| 196 |
Node* nextNodeConsideringAtomicNodes() const; |
|---|
| 197 |
|
|---|
| 198 |
|
|---|
| 199 |
|
|---|
| 200 |
|
|---|
| 201 |
|
|---|
| 202 |
|
|---|
| 203 |
|
|---|
| 204 |
Node* nextLeafNode() const; |
|---|
| 205 |
|
|---|
| 206 |
|
|---|
| 207 |
|
|---|
| 208 |
|
|---|
| 209 |
|
|---|
| 210 |
|
|---|
| 211 |
|
|---|
| 212 |
Node* previousLeafNode() const; |
|---|
| 213 |
|
|---|
| 214 |
bool isEditableBlock() const; |
|---|
| 215 |
|
|---|
| 216 |
|
|---|
| 217 |
Element* enclosingBlockFlowElement() const; |
|---|
| 218 |
|
|---|
| 219 |
Element* enclosingInlineElement() const; |
|---|
| 220 |
Element* rootEditableElement() const; |
|---|
| 221 |
|
|---|
| 222 |
bool inSameContainingBlockFlowElement(Node*); |
|---|
| 223 |
|
|---|
| 224 |
|
|---|
| 225 |
|
|---|
| 226 |
|
|---|
| 227 |
virtual ContainerNode* addChild(PassRefPtr<Node>); |
|---|
| 228 |
|
|---|
| 229 |
|
|---|
| 230 |
|
|---|
| 231 |
|
|---|
| 232 |
|
|---|
| 233 |
|
|---|
| 234 |
|
|---|
| 235 |
virtual void finishParsingChildren() { } |
|---|
| 236 |
virtual void beginParsingChildren() { } |
|---|
| 237 |
|
|---|
| 238 |
|
|---|
| 239 |
|
|---|
| 240 |
|
|---|
| 241 |
virtual void aboutToUnload() { } |
|---|
| 242 |
|
|---|
| 243 |
|
|---|
| 244 |
virtual bool sheetLoaded() { return true; } |
|---|
| 245 |
|
|---|
| 246 |
bool hasID() const { return m_hasId; } |
|---|
| 247 |
bool hasClass() const { return m_hasClass; } |
|---|
| 248 |
bool active() const { return m_active; } |
|---|
| 249 |
bool inActiveChain() const { return m_inActiveChain; } |
|---|
| 250 |
bool inDetach() const { return m_inDetach; } |
|---|
| 251 |
bool hovered() const { return m_hovered; } |
|---|
| 252 |
bool focused() const { return m_focused; } |
|---|
| 253 |
bool attached() const { return m_attached; } |
|---|
| 254 |
void setAttached(bool b = true) { m_attached = b; } |
|---|
| 255 |
bool changed() const { return m_styleChange != NoStyleChange; } |
|---|
| 256 |
StyleChangeType styleChangeType() const { return static_cast<StyleChangeType>(m_styleChange); } |
|---|
| 257 |
bool hasChangedChild() const { return m_hasChangedChild; } |
|---|
| 258 |
bool isLink() const { return m_isLink; } |
|---|
| 259 |
void setHasID(bool b = true) { m_hasId = b; } |
|---|
| 260 |
void setHasClass(bool b = true) { m_hasClass = b; } |
|---|
| 261 |
void setHasChangedChild( bool b = true ) { m_hasChangedChild = b; } |
|---|
| 262 |
void setInDocument(bool b = true) { m_inDocument = b; } |
|---|
| 263 |
void setInActiveChain(bool b = true) { m_inActiveChain = b; } |
|---|
| 264 |
void setChanged(StyleChangeType changeType = FullStyleChange); |
|---|
| 265 |
void setIsLink(bool b = true) { m_isLink = b; } |
|---|
| 266 |
|
|---|
| 267 |
bool inSubtreeMark() const { return m_inSubtreeMark; } |
|---|
| 268 |
void setInSubtreeMark(bool b = true) { m_inSubtreeMark = b; } |
|---|
| 269 |
|
|---|
| 270 |
void lazyAttach(); |
|---|
| 271 |
virtual bool canLazyAttach(); |
|---|
| 272 |
|
|---|
| 273 |
virtual void setFocus(bool b = true) { m_focused = b; } |
|---|
| 274 |
virtual void setActive(bool b = true, bool pause=false) { m_active = b; } |
|---|
| 275 |
virtual void setHovered(bool b = true) { m_hovered = b; } |
|---|
| 276 |
|
|---|
| 277 |
virtual short tabIndex() const { return m_tabIndex; } |
|---|
| 278 |
|
|---|
| 279 |
|
|---|
| 280 |
|
|---|
| 281 |
|
|---|
| 282 |
virtual bool supportsFocus() const { return isFocusable(); } |
|---|
| 283 |
virtual bool isFocusable() const; |
|---|
| 284 |
virtual bool isKeyboardFocusable(KeyboardEvent*) const; |
|---|
| 285 |
virtual bool isMouseFocusable() const; |
|---|
| 286 |
|
|---|
| 287 |
virtual bool isControl() const { return false; } |
|---|
| 288 |
virtual bool isEnabled() const { return true; } |
|---|
| 289 |
virtual bool isChecked() const { return false; } |
|---|
| 290 |
virtual bool isIndeterminate() const { return false; } |
|---|
| 291 |
virtual bool isReadOnlyControl() const { return false; } |
|---|
| 292 |
virtual bool isTextControl() const { return false; } |
|---|
| 293 |
|
|---|
| 294 |
virtual bool isContentEditable() const; |
|---|
| 295 |
virtual bool isContentRichlyEditable() const; |
|---|
| 296 |
virtual bool shouldUseInputMethod() const; |
|---|
| 297 |
virtual IntRect getRect() const; |
|---|
| 298 |
|
|---|
| 299 |
virtual void recalcStyle(StyleChange = NoChange) { } |
|---|
| 300 |
|
|---|
| 301 |
unsigned nodeIndex() const; |
|---|
| 302 |
|
|---|
| 303 |
|
|---|
| 304 |
|
|---|
| 305 |
virtual Document* ownerDocument() const; |
|---|
| 306 |
|
|---|
| 307 |
|
|---|
| 308 |
|
|---|
| 309 |
Document* document() const |
|---|
| 310 |
{ |
|---|
| 311 |
ASSERT(this); |
|---|
| 312 |
ASSERT(m_document || nodeType() == DOCUMENT_TYPE_NODE && !inDocument()); |
|---|
| 313 |
return m_document.get(); |
|---|
| 314 |
} |
|---|
| 315 |
void setDocument(Document*); |
|---|
| 316 |
|
|---|
| 317 |
|
|---|
| 318 |
|
|---|
| 319 |
bool inDocument() const |
|---|
| 320 |
{ |
|---|
| 321 |
ASSERT(m_document || !m_inDocument); |
|---|
| 322 |
return m_inDocument; |
|---|
| 323 |
} |
|---|
| 324 |
|
|---|
| 325 |
bool isReadOnlyNode() const { return nodeType() == ENTITY_REFERENCE_NODE; } |
|---|
| 326 |
virtual bool childTypeAllowed(NodeType) { return false; } |
|---|
| 327 |
virtual unsigned childNodeCount() const; |
|---|
| 328 |
virtual Node* childNode(unsigned index) const; |
|---|
| 329 |
|
|---|
| 330 |
|
|---|
| 331 |
|
|---|
| 332 |
|
|---|
| 333 |
|
|---|
| 334 |
|
|---|
| 335 |
|
|---|
| 336 |
|
|---|
| 337 |
|
|---|
| 338 |
|
|---|
| 339 |
|
|---|
| 340 |
|
|---|
| 341 |
Node* traverseNextNode(const Node* stayWithin = 0) const; |
|---|
| 342 |
|
|---|
| 343 |
|
|---|
| 344 |
Node* traverseNextSibling(const Node* stayWithin = 0) const; |
|---|
| 345 |
|
|---|
| 346 |
|
|---|
| 347 |
|
|---|
| 348 |
|
|---|
| 349 |
|
|---|
| 350 |
|
|---|
| 351 |
Node* traversePreviousNode(const Node * stayWithin = 0) const; |
|---|
| 352 |
|
|---|
| 353 |
|
|---|
| 354 |
Node* traverseNextNodePostOrder() const; |
|---|
| 355 |
|
|---|
| 356 |
|
|---|
| 357 |
Node* traversePreviousNodePostOrder(const Node *stayWithin = 0) const; |
|---|
| 358 |
Node* traversePreviousSiblingPostOrder(const Node *stayWithin = 0) const; |
|---|
| 359 |
|
|---|
| 360 |
|
|---|
| 361 |
|
|---|
| 362 |
|
|---|
| 363 |
Node* previousEditable() const; |
|---|
| 364 |
Node* nextEditable() const; |
|---|
| 365 |
|
|---|
| 366 |
RenderObject* renderer() const { return m_renderer; } |
|---|
| 367 |
RenderObject* nextRenderer(); |
|---|
| 368 |
RenderObject* previousRenderer(); |
|---|
| 369 |
void setRenderer(RenderObject* renderer) { m_renderer = renderer; } |
|---|
| 370 |
|
|---|
| 371 |
void checkSetPrefix(const AtomicString& prefix, ExceptionCode&); |
|---|
| 372 |
bool isDescendantOf(const Node*) const; |
|---|
| 373 |
|
|---|
| 374 |
|
|---|
| 375 |
|
|---|
| 376 |
|
|---|
| 377 |
void checkAddChild(Node* newChild, ExceptionCode&); |
|---|
| 378 |
virtual bool childAllowed(Node* newChild); |
|---|
| 379 |
|
|---|
| 380 |
void checkReplaceChild(Node* newChild, Node* oldChild, ExceptionCode&); |
|---|
| 381 |
virtual bool canReplaceChild(Node* newChild, Node* oldChild); |
|---|
| 382 |
|
|---|
| 383 |
|
|---|
| 384 |
virtual bool offsetInCharacters() const; |
|---|
| 385 |
|
|---|
| 386 |
|
|---|
| 387 |
virtual int maxCharacterOffset() const; |
|---|
| 388 |
|
|---|
| 389 |
|
|---|
| 390 |
virtual bool canSelectAll() const { return false; } |
|---|
| 391 |
virtual void selectAll() { } |
|---|
| 392 |
|
|---|
| 393 |
|
|---|
| 394 |
virtual bool canStartSelection() const; |
|---|
| 395 |
|
|---|
| 396 |
|
|---|
| 397 |
|
|---|
| 398 |
|
|---|
| 399 |
|
|---|
| 400 |
|
|---|
| 401 |
|
|---|
| 402 |
|
|---|
| 403 |
|
|---|
| 404 |
virtual void attach(); |
|---|
| 405 |
|
|---|
| 406 |
|
|---|
| 407 |
|
|---|
| 408 |
|
|---|
| 409 |
|
|---|
| 410 |
virtual void detach(); |
|---|
| 411 |
|
|---|
| 412 |
virtual void willRemove(); |
|---|
| 413 |
void createRendererIfNeeded(); |
|---|
| 414 |
virtual RenderStyle* styleForRenderer(RenderObject* parent); |
|---|
| 415 |
virtual bool rendererIsNeeded(RenderStyle*); |
|---|
| 416 |
#if ENABLE(SVG) |
|---|
| 417 |
virtual bool childShouldCreateRenderer(Node*) const { return true; } |
|---|
| 418 |
#endif |
|---|
| 419 |
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); |
|---|
| 420 |
|
|---|
| 421 |
|
|---|
| 422 |
virtual RenderStyle* renderStyle() const; |
|---|
| 423 |
virtual void setRenderStyle(RenderStyle*); |
|---|
| 424 |
|
|---|
| 425 |
virtual RenderStyle* computedStyle(); |
|---|
| 426 |
|
|---|
| 427 |
|
|---|
| 428 |
|
|---|
| 429 |
|
|---|
| 430 |
|
|---|
| 431 |
|
|---|
| 432 |
|
|---|
| 433 |
|
|---|
| 434 |
|
|---|
| 435 |
|
|---|
| 436 |
|
|---|
| 437 |
|
|---|
| 438 |
|
|---|
| 439 |
virtual void insertedIntoDocument(); |
|---|
| 440 |
|
|---|
| 441 |
|
|---|
| 442 |
|
|---|
| 443 |
|
|---|
| 444 |
|
|---|
| 445 |
|
|---|
| 446 |
|
|---|
| 447 |
|
|---|
| 448 |
virtual void removedFromDocument(); |
|---|
| 449 |
|
|---|
| 450 |
|
|---|
| 451 |
|
|---|
| 452 |
|
|---|
| 453 |
virtual void insertedIntoTree(bool deep) { } |
|---|
| 454 |
virtual void removedFromTree(bool deep) { } |
|---|
| 455 |
|
|---|
| 456 |
|
|---|
| 457 |
|
|---|
| 458 |
|
|---|
| 459 |
|
|---|
| 460 |
virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0) {}; |
|---|
| 461 |
|
|---|
| 462 |
#ifndef NDEBUG |
|---|
| 463 |
virtual void formatForDebugger(char* buffer, unsigned length) const; |
|---|
| 464 |
|
|---|
| 465 |
void showNode(const char* prefix = "") const; |
|---|
| 466 |
void showTreeForThis() const; |
|---|
| 467 |
void showTreeAndMark(const Node* markedNode1, const char* markedLabel1, const Node* markedNode2 = 0, const char* markedLabel2 = 0) const; |
|---|
| 468 |
#endif |
|---|
| 469 |
|
|---|
| 470 |
void registerDynamicNodeList(DynamicNodeList*); |
|---|
| 471 |
void unregisterDynamicNodeList(DynamicNodeList*); |
|---|
| 472 |
void notifyNodeListsChildrenChanged(); |
|---|
| 473 |
void notifyLocalNodeListsChildrenChanged(); |
|---|
| 474 |
void notifyNodeListsAttributeChanged(); |
|---|
| 475 |
void notifyLocalNodeListsAttributeChanged(); |
|---|
| 476 |
|
|---|
| 477 |
PassRefPtr<NodeList> getElementsByTagName(const String&); |
|---|
| 478 |
PassRefPtr<NodeList> getElementsByTagNameNS(const String& namespaceURI, const String& localName); |
|---|
| 479 |
PassRefPtr<NodeList> getElementsByName(const String& elementName); |
|---|
| 480 |
PassRefPtr<NodeList> getElementsByClassName(const String& classNames); |
|---|
| 481 |
|
|---|
| 482 |
PassRefPtr<Element> querySelector(const String& selectors, NSResolver*, ExceptionCode&, KJS::ExecState*); |
|---|
| 483 |
PassRefPtr<NodeList> querySelectorAll(const String& selectors, NSResolver*, |
|---|