DescriptionRefactoring: Change the order of conditions to avoid computing rendererIsEditable()
When we need both Node::renderer() and Node::rendererIsEditable()
conditions to be true to perform some operation, it is more effective
to check for renderer() first, so that if this condition fails we can
avoid unnecessary computation of rendererIsEditable().
All the layout tests have been successfully run with this change.
R=ojan, yosin
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158856
Patch Set 1 #
Total comments: 2
Patch Set 2 : Review comments incorporated #Patch Set 3 : Removed unrelated changes #
Messages
Total messages: 10 (0 generated)
|