Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: sky/engine/core/dom/Node.h

Issue 883443003: Remove PseudoId. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/engine/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 void reattach(const AttachContext& = AttachContext()); 415 void reattach(const AttachContext& = AttachContext());
416 void lazyReattachIfAttached(); 416 void lazyReattachIfAttached();
417 417
418 // Returns true if recalcStyle should be called on the object, if there is s uch a method (on Document and Element). 418 // Returns true if recalcStyle should be called on the object, if there is s uch a method (on Document and Element).
419 bool shouldCallRecalcStyle(StyleRecalcChange); 419 bool shouldCallRecalcStyle(StyleRecalcChange);
420 420
421 // Wrapper for nodes that don't have a renderer, but still cache the style ( like HTMLOptionElement). 421 // Wrapper for nodes that don't have a renderer, but still cache the style ( like HTMLOptionElement).
422 RenderStyle* renderStyle() const; 422 RenderStyle* renderStyle() const;
423 RenderStyle* parentRenderStyle() const; 423 RenderStyle* parentRenderStyle() const;
424 424
425 RenderStyle* computedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { ret urn virtualComputedStyle(pseudoElementSpecifier); } 425 RenderStyle* computedStyle() { return virtualComputedStyle(); }
426 426
427 virtual void insertedInto(ContainerNode* insertionPoint); 427 virtual void insertedInto(ContainerNode* insertionPoint);
428 virtual void removedFrom(ContainerNode* insertionPoint); 428 virtual void removedFrom(ContainerNode* insertionPoint);
429 429
430 String debugName() const; 430 String debugName() const;
431 431
432 #ifndef NDEBUG 432 #ifndef NDEBUG
433 virtual void formatForDebugger(char* buffer, unsigned length) const; 433 virtual void formatForDebugger(char* buffer, unsigned length) const;
434 434
435 void showNode(const char* prefix = "") const; 435 void showNode(const char* prefix = "") const;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 596
597 bool isUserActionElementActive() const; 597 bool isUserActionElementActive() const;
598 bool isUserActionElementInActiveChain() const; 598 bool isUserActionElementInActiveChain() const;
599 bool isUserActionElementHovered() const; 599 bool isUserActionElementHovered() const;
600 bool isUserActionElementFocused() const; 600 bool isUserActionElementFocused() const;
601 601
602 void traceStyleChange(StyleChangeType); 602 void traceStyleChange(StyleChangeType);
603 void traceStyleChangeIfNeeded(StyleChangeType); 603 void traceStyleChangeIfNeeded(StyleChangeType);
604 void setStyleChange(StyleChangeType); 604 void setStyleChange(StyleChangeType);
605 605
606 virtual RenderStyle* virtualComputedStyle(PseudoId = NOPSEUDO); 606 virtual RenderStyle* virtualComputedStyle();
607 607
608 void trackForDebugging(); 608 void trackForDebugging();
609 609
610 Vector<OwnPtr<MutationObserverRegistration> >* mutationObserverRegistry(); 610 Vector<OwnPtr<MutationObserverRegistration> >* mutationObserverRegistry();
611 HashSet<RawPtr<MutationObserverRegistration> >* transientMutationObserverReg istry(); 611 HashSet<RawPtr<MutationObserverRegistration> >* transientMutationObserverReg istry();
612 612
613 uint32_t m_nodeFlags; 613 uint32_t m_nodeFlags;
614 ContainerNode* m_parentOrShadowHostNode; 614 ContainerNode* m_parentOrShadowHostNode;
615 TreeScope* m_treeScope; 615 TreeScope* m_treeScope;
616 Node* m_previous; 616 Node* m_previous;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 } // namespace blink 683 } // namespace blink
684 684
685 #ifndef NDEBUG 685 #ifndef NDEBUG
686 // Outside the WebCore namespace for ease of invocation from gdb. 686 // Outside the WebCore namespace for ease of invocation from gdb.
687 void showNode(const blink::Node*); 687 void showNode(const blink::Node*);
688 void showTree(const blink::Node*); 688 void showTree(const blink::Node*);
689 void showNodePath(const blink::Node*); 689 void showNodePath(const blink::Node*);
690 #endif 690 #endif
691 691
692 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ 692 #endif // SKY_ENGINE_CORE_DOM_NODE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/engine/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698