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

Side by Side Diff: Source/core/dom/Element.h

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Sync Created 7 years, 3 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
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 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved.
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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 #ifndef NDEBUG 742 #ifndef NDEBUG
743 virtual void formatForDebugger(char* buffer, unsigned length) const; 743 virtual void formatForDebugger(char* buffer, unsigned length) const;
744 #endif 744 #endif
745 745
746 bool pseudoStyleCacheIsInvalid(const RenderStyle* currentStyle, RenderStyle* newStyle); 746 bool pseudoStyleCacheIsInvalid(const RenderStyle* currentStyle, RenderStyle* newStyle);
747 747
748 void cancelFocusAppearanceUpdate(); 748 void cancelFocusAppearanceUpdate();
749 749
750 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { return computedStyle(pseudoElementSpecifier); } 750 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { return computedStyle(pseudoElementSpecifier); }
751 751
752 enum AddOrRemove {
753 Add,
754 Remove,
esprehn 2013/09/04 06:08:28 SelectorAdded, SelectorRemoved and I'd suggest re
Jeffrey Yasskin 2013/09/12 22:09:59 The enum's gone now.
755 };
756 void updateCallbackSelectors(AddOrRemove);
757
752 // cloneNode is private so that non-virtual cloneElementWithChildren and clo neElementWithoutChildren 758 // cloneNode is private so that non-virtual cloneElementWithChildren and clo neElementWithoutChildren
753 // are used instead. 759 // are used instead.
754 virtual PassRefPtr<Node> cloneNode(bool deep) OVERRIDE; 760 virtual PassRefPtr<Node> cloneNode(bool deep) OVERRIDE;
755 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren(); 761 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren();
756 762
757 QualifiedName m_tagName; 763 QualifiedName m_tagName;
758 bool rareDataStyleAffectedByEmpty() const; 764 bool rareDataStyleAffectedByEmpty() const;
759 bool rareDataChildrenAffectedByHover() const; 765 bool rareDataChildrenAffectedByHover() const;
760 bool rareDataChildrenAffectedByActive() const; 766 bool rareDataChildrenAffectedByActive() const;
761 bool rareDataChildrenAffectedByDrag() const; 767 bool rareDataChildrenAffectedByDrag() const;
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 1092
1087 inline const Attribute* ElementData::attributeItem(unsigned index) const 1093 inline const Attribute* ElementData::attributeItem(unsigned index) const
1088 { 1094 {
1089 RELEASE_ASSERT(index < length()); 1095 RELEASE_ASSERT(index < length());
1090 return attributeBase() + index; 1096 return attributeBase() + index;
1091 } 1097 }
1092 1098
1093 } // namespace 1099 } // namespace
1094 1100
1095 #endif 1101 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698