Chromium Code Reviews| Index: Source/core/dom/Node.cpp |
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp |
| index 81df1b26477f827cc186c84b1c6b5a547d07a857..5650b32c1dc0f6ef3de472e9b20cbf3afaaa6bcd 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() |
|
kochi
2015/04/02 10:27:10
nit: s/Todo/TODO/
hayato
2015/04/06 08:32:00
Done.
|
| + // 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"); |