| Index: Source/core/dom/Node.cpp
|
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
|
| index 81df1b26477f827cc186c84b1c6b5a547d07a857..574745427d842db534640170fb002ebe0b69f0d0 100644
|
| --- a/Source/core/dom/Node.cpp
|
| +++ b/Source/core/dom/Node.cpp
|
| @@ -665,6 +665,19 @@ inline static Node& rootInTreeOfTrees(Node& node)
|
| return *root;
|
| }
|
|
|
| +#if ENABLE(ASSERT)
|
| +bool Node::needsDistributionRecalc() const
|
| +{
|
| + // TODO(hayato): If we can prove that this->childNeedsDistributionRecalc()
|
| + // is enough for either case, in a document, not in a document, remove this
|
| + // function after renaming Node::childNeedsDistributionRecalc() to a more
|
| + // appropriate name.
|
| + if (inDocument())
|
| + return document().childNeedsDistributionRecalc();
|
| + return childNeedsDistributionRecalc();
|
| +}
|
| +#endif
|
| +
|
| void Node::updateDistribution()
|
| {
|
| TRACE_EVENT0("blink", "Node::updateDistribution");
|
|
|