angler-fishThe Vulnerability History Project

Pass a struct to ContainerNode::childrenChanged() instead of separate arguments

      Pass a struct to ContainerNode::childrenChanged() instead of separate
arguments. This is more extensible this way as this virtual function has a lot
of overrides. The new struct differs from the previous arguments in that:
- childCountDelta integer is replaced by a ChildrenChangeType enumeration as
  it as always (-1: ChildRemoved, +1: ChildInserted, 0: TextChanged,
  -numberOfChildren: AllChildrenRemoved)
- changedByParser boolean is replaced by an enumeration for better readability.

This CL does not contain any functional changes to keep it small. However, this
enables us to pass more information about the node being added/removed (e.g.
was it an Element?) so that we can do less recalculations is some cases.

This is based on WebKit r154957 by antti@apple.com:
http://trac.webkit.org/changeset/154957

R=esprehn@chromium.org, eseidel@chromium.org

Review URL: https://codereview.chromium.org/365673002

git-svn-id: svn://svn.chromium.org/blink/trunk@177347 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    
commit c023a5b0e4f5b5bbeabc5fc6859df6856d0f1974
+1 -1
+1 -1
+5 -9
+13 -19
+3 -13
+2 -2
+1 -1
+5 -5
+1 -1
+2 -2
+1 -1
+3 -3
+1 -1
+3 -3
+1 -1
+16 -6
+2 -2
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+3 -3
+1 -1
+3 -3
+1 -1
+3 -3
+1 -1
+3 -3
+1 -1
+3 -3
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+3 -3
+1 -1
+3 -3
+1 -1
+3 -3
+1 -1
+3 -3
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
+2 -2
+1 -1
expand_less