DescriptionHave enclosingPositionedAncestor() detect whether it walked past a certain ancestor.
This is similar to what LayoutObject::container() does.
This simplifies the code in accumulateOffsetTowardsAncestor(), which previously
had to duplicate what enclosingPositionedAncestor() did.
Also cleaned up the other call site of enclosingPositionedAncestor(). No need
to call the method twice there.
No behavioral changes intended; this is just clean-up.
R=chrishtr@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197846
Patch Set 1 #
Total comments: 2
Patch Set 2 : code review #
Messages
Total messages: 8 (1 generated)
|