Add DocumentMarkerController::ListForType()

Helper method that makes it slightly cleaner to look up the MarkerList* for a
given type when we're holding the MarkerLists* for a Node. Alternatively, we
could have a method that takes a Node* instead of a MarkerLists*, but then we'd
lose the optimization in the call sites where we can return early if there's no
MarkerLists* for the given Node.

I found two places to use this in the current version of the code, and there
will be more after we rewrite some of the loops to use the DocumentMarkerList
interface being added in https://codereview.chromium.org/2820633002 .

BUG=707867

Review-Url: https://codereview.chromium.org/2822963002
Cr-Commit-Position: refs/heads/master@{#465127}
2 files changed