|
Lines 1183-1188
bool Element::childTypeAllowed(NodeType type)
a/Source/WebCore/dom/Element.cpp_sec1
|
| 1183 |
return false; |
1183 |
return false; |
| 1184 |
} |
1184 |
} |
| 1185 |
|
1185 |
|
|
|
1186 |
static void checkForEmptyStyleChange(Element* element, RenderStyle* style) |
| 1187 |
{ |
| 1188 |
if (!style) |
| 1189 |
return; |
| 1190 |
|
| 1191 |
if (style->affectedByEmpty() && (!style->emptyState() || element->hasChildNodes())) |
| 1192 |
element->setNeedsStyleRecalc(); |
| 1193 |
} |
| 1194 |
|
| 1186 |
static void checkForSiblingStyleChanges(Element* e, RenderStyle* style, bool finishedParsingCallback, |
1195 |
static void checkForSiblingStyleChanges(Element* e, RenderStyle* style, bool finishedParsingCallback, |
| 1187 |
Node* beforeChange, Node* afterChange, int childCountDelta) |
1196 |
Node* beforeChange, Node* afterChange, int childCountDelta) |
| 1188 |
{ |
1197 |
{ |
|
Lines 1259-1275
static void checkForSiblingStyleChanges(Element* e, RenderStyle* style, bool fin
a/Source/WebCore/dom/Element.cpp_sec2
|
| 1259 |
e->setNeedsStyleRecalc(); |
1268 |
e->setNeedsStyleRecalc(); |
| 1260 |
|
1269 |
|
| 1261 |
// :empty selector. |
1270 |
// :empty selector. |
| 1262 |
if (style->affectedByEmpty() && (!style->emptyState() || e->hasChildNodes())) |
1271 |
checkForEmptyStyleChange(e, style); |
| 1263 |
e->setNeedsStyleRecalc(); |
|
|
| 1264 |
} |
1272 |
} |
| 1265 |
|
1273 |
|
| 1266 |
void Element::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) |
1274 |
void Element::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) |
| 1267 |
{ |
1275 |
{ |
| 1268 |
ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); |
1276 |
ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); |
| 1269 |
if (!changedByParser) |
1277 |
if (changedByParser) |
|
|
1278 |
checkForEmptyStyleChange(this, renderStyle()); |
| 1279 |
else |
| 1270 |
checkForSiblingStyleChanges(this, renderStyle(), false, beforeChange, afterChange, childCountDelta); |
1280 |
checkForSiblingStyleChanges(this, renderStyle(), false, beforeChange, afterChange, childCountDelta); |
| 1271 |
} |
1281 |
} |
| 1272 |
|
1282 |
|
| 1273 |
void Element::beginParsingChildren() |
1283 |
void Element::beginParsingChildren() |
| 1274 |
{ |
1284 |
{ |
| 1275 |
clearIsParsingChildrenFinished(); |
1285 |
clearIsParsingChildrenFinished(); |