fix the complexity comments for attribute APIs

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