original_docstring:  Converts a file's |contents| so it will function correctly in its |new_path| in Webkit.
  
      Returns the list of modified properties and the modified text if the file was modifed, None otherwise.
docstring: Converts a file's |contents| so it will function correctly in its |new_path| in Webkit.
  Returns the list of modified properties and the modified text if the file was modifed, None otherwise.
docstring_tokens: Converts a file ' s |contents| so it will function correctly in its |new_path| in Webkit . Returns the list of modified properties and the modified text if the file was modifed None otherwise .
code: def convert_for_webkit(new_path, filename, reference_support_info, host=Host(), convert_test_harness_links=True, webkit_test_runner_options=''):
      """ Converts a file's |contents| so it will function correctly in its |new_path| in Webkit.
  
      Returns the list of modified properties and the modified text if the file was modifed, None otherwise."""
      contents = host.filesystem.read_text_file(filename)
  
      # WebKit does not have a www test domain.
      contents = contents.replace('{{domains[www]}}', '{{hosts[alt][]}}')
  
      converter = _W3CTestConverter(new_path, filename, reference_support_info, host, convert_test_harness_links, webkit_test_runner_options)
      if filename.endswith('.css'):
          return converter.add_webkit_prefix_to_unprefixed_properties_and_values(contents)
      elif filename.endswith('.js'):
          return ([], [], contents)
      else:
          converter.feed(contents)
          converter.close()
          return converter.output()
code_tokens: def convert_for_webkit ( new_path , filename , reference_support_info , host = Host ( ) , convert_test_harness_links = True , webkit_test_runner_options = '' ) : contents = host . filesystem . read_text_file ( filename ) contents = contents . replace ( '{{domains[www]}}' , '{{hosts[alt][]}}' ) converter = _W3CTestConverter ( new_path , filename , reference_support_info , host , convert_test_harness_links , webkit_test_runner_options ) if filename . endswith ( '.css' ) : return converter . add_webkit_prefix_to_unprefixed_properties_and_values ( contents ) elif filename . endswith ( '.js' ) : return ( [ ] , [ ] , contents ) else : converter . feed ( contents ) converter . close ( ) return converter . output ( )
short_docstring: Converts a file's |contents| so it will function correctly in its |new_path| in Webkit.
short_docstring_tokens: Converts a file ' s |contents| so it will function correctly in its |new_path| in Webkit .
comment: """ Converts a file's |contents| so it will function correctly in its |new_path| in Webkit.
  
      Returns the list of modified properties and the modified text if the file was modifed, None otherwise."""$SEP$# WebKit does not have a www test domain.