OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |