| Index: third_party/WebKit/PRESUBMIT.py
|
| diff --git a/third_party/WebKit/PRESUBMIT.py b/third_party/WebKit/PRESUBMIT.py
|
| index 8d073343a52f62e7880fe77effdc74e4692f894d..97a8d667698110aacb7854c568e57926455f614c 100644
|
| --- a/third_party/WebKit/PRESUBMIT.py
|
| +++ b/third_party/WebKit/PRESUBMIT.py
|
| @@ -8,6 +8,7 @@ See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
|
| for more details about the presubmit API built into gcl.
|
| """
|
|
|
| +import os
|
| import sys
|
|
|
|
|
| @@ -113,11 +114,26 @@ def _CheckTestExpectations(input_api, output_api):
|
|
|
|
|
| def _CheckStyle(input_api, output_api):
|
| + # Ignore the style check for files that are moved from Chromium side to
|
| + # Blink side.
|
| + ignore = [
|
| + # These files were moved from Chromium side (crbug/548254).
|
| + # TODO(hajimehoshi): We aim to remove these files since these are glue
|
| + # files and no longer needed.
|
| + 'third_party/WebKit/Source/platform/WebMemoryAllocatorDumpImpl',
|
| + 'third_party/WebKit/Source/platform/WebMemoryDumpProviderAdapter',
|
| + 'third_party/WebKit/Source/platform/WebProcessMemoryDumpImpl',
|
| + ]
|
| + files = []
|
| + for f in input_api.AffectedFiles():
|
| + if any([f.LocalPath().startswith(os.path.normpath(d)) for d in ignore]):
|
| + continue
|
| + files.append(f.LocalPath())
|
| +
|
| style_checker_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
|
| 'Tools', 'Scripts', 'check-webkit-style')
|
| args = ([input_api.python_executable, style_checker_path, '--diff-files']
|
| - + [input_api.os_path.join('..', '..', f.LocalPath())
|
| - for f in input_api.AffectedFiles()])
|
| + + [input_api.os_path.join('..', '..', f) for f in files])
|
| results = []
|
|
|
| try:
|
|
|