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

Side by Side Diff: Source/core/dom/ContainerNode.cpp

Issue 270503006: Make pseudo-classes selector queries work on DocumentFragment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 return rareData()->hasRestyleFlag(mask); 1027 return rareData()->hasRestyleFlag(mask);
1028 } 1028 }
1029 1029
1030 bool ContainerNode::hasRestyleFlagsInternal() const 1030 bool ContainerNode::hasRestyleFlagsInternal() const
1031 { 1031 {
1032 return rareData()->hasRestyleFlags(); 1032 return rareData()->hasRestyleFlags();
1033 } 1033 }
1034 1034
1035 void ContainerNode::setRestyleFlag(DynamicRestyleFlags mask) 1035 void ContainerNode::setRestyleFlag(DynamicRestyleFlags mask)
1036 { 1036 {
1037 ASSERT(isElementNode() || isShadowRoot()); 1037 ASSERT(isElementNode() || isDocumentFragment());
esprehn 2014/05/08 05:25:11 This is wrong, we shouldn't set restyle flags in a
Inactive 2014/05/08 13:17:36 Done.
1038 ensureRareData().setRestyleFlag(mask); 1038 ensureRareData().setRestyleFlag(mask);
1039 } 1039 }
1040 1040
1041 void ContainerNode::checkForChildrenAdjacentRuleChanges() 1041 void ContainerNode::checkForChildrenAdjacentRuleChanges()
1042 { 1042 {
1043 bool hasDirectAdjacentRules = childrenAffectedByDirectAdjacentRules(); 1043 bool hasDirectAdjacentRules = childrenAffectedByDirectAdjacentRules();
1044 bool hasIndirectAdjacentRules = childrenAffectedByIndirectAdjacentRules(); 1044 bool hasIndirectAdjacentRules = childrenAffectedByIndirectAdjacentRules();
1045 1045
1046 if (!hasDirectAdjacentRules && !hasIndirectAdjacentRules) 1046 if (!hasDirectAdjacentRules && !hasIndirectAdjacentRules)
1047 return; 1047 return;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 return true; 1212 return true;
1213 1213
1214 if (node->isElementNode() && toElement(node)->shadow()) 1214 if (node->isElementNode() && toElement(node)->shadow())
1215 return true; 1215 return true;
1216 1216
1217 return false; 1217 return false;
1218 } 1218 }
1219 #endif 1219 #endif
1220 1220
1221 } // namespace WebCore 1221 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698