New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 643310 link

Starred by 4 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Nov 13
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 675877



Sign in to add a comment

rewrite_to_chrome_style: Identifiers in comments are not rewritten

Project Member Reported by lukasza@chromium.org, Sep 1 2016

Issue description

Example: wtf/Vector.h:

We rewrite |m_size| into |size_|, but comments referring to the field keep saying |m_size|.

This is probably less important than making sure things compile and behave the same after the rename, but we probably still want to explicitly track this issue / make some kind of a decision here.
 
True. The rewrite tool dumps a list of symbols it renamed. We could apply them with a regex after and look at the diff to see what it does, the # of changes should be muuuch smaller and be possible to human-review.
Cc: nasko@chromium.org
Status: Available (was: Untriaged)
When automating rewriting of comments (to follow renaming of identifiers elsewhere), we should be aware of the following:

- We should avoid rewriting free-form English words - we should only rewrite actual identifiers.  Maybe this can be done via a set of heuristics:

  - Rewrite anything that begings with m_* OR s_*
  - Rewrite anything that is PascalCased, camelCased, hacker_cased
  - Rewrite anything that is followed by "(" character

- We should avoid rewriting identifiers outside of Blink (i.e. in Skia).  Maybe just rewrite C++ comments under third_party/WebKit?



Comment 3 by danakj@chromium.org, Dec 14 2016

- Rewrite anything that is inside |pipes|

Comment 4 by dcheng@chromium.org, Dec 19 2016

I don't think this should be a blocker for the overall rewrite.

Comment 5 by dcheng@chromium.org, Dec 29 2016

Blocking: -578344 675877
Project Member

Comment 6 by bugdroid1@chromium.org, Apr 11 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/09853278f973fdfafbfffdd695cff8d7e4cc3aeb

commit 09853278f973fdfafbfffdd695cff8d7e4cc3aeb
Author: rune <rune@opera.com>
Date: Tue Apr 11 07:17:52 2017

Rename cleanup in comments in style/ directory.

After the renaming of methods and variables to match chromium style,
a bunch of comments were not correct.

BUG= 643310 

Review-Url: https://codereview.chromium.org/2812593005
Cr-Commit-Position: refs/heads/master@{#463559}

[modify] https://crrev.com/09853278f973fdfafbfffdd695cff8d7e4cc3aeb/third_party/WebKit/Source/core/style/BasicShapes.cpp
[modify] https://crrev.com/09853278f973fdfafbfffdd695cff8d7e4cc3aeb/third_party/WebKit/Source/core/style/CachedUAStyle.h
[modify] https://crrev.com/09853278f973fdfafbfffdd695cff8d7e4cc3aeb/third_party/WebKit/Source/core/style/ComputedStyle.cpp
[modify] https://crrev.com/09853278f973fdfafbfffdd695cff8d7e4cc3aeb/third_party/WebKit/Source/core/style/ComputedStyle.h
[modify] https://crrev.com/09853278f973fdfafbfffdd695cff8d7e4cc3aeb/third_party/WebKit/Source/core/style/FilterOperation.h
[modify] https://crrev.com/09853278f973fdfafbfffdd695cff8d7e4cc3aeb/third_party/WebKit/Source/core/style/FilterOperations.h
[modify] https://crrev.com/09853278f973fdfafbfffdd695cff8d7e4cc3aeb/third_party/WebKit/Source/core/style/GridArea.h
[modify] https://crrev.com/09853278f973fdfafbfffdd695cff8d7e4cc3aeb/third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h

Project Member

Comment 7 by bugdroid1@chromium.org, Apr 11 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3745cb5bd5243023ef22518dad02383a2f0de67e

commit 3745cb5bd5243023ef22518dad02383a2f0de67e
Author: rune <rune@opera.com>
Date: Tue Apr 11 07:21:45 2017

Rename cleanup in comments in css/ directory.

After the renaming of methods and variables to match chromium style,
a bunch of comments were not correct.

BUG= 643310 

Review-Url: https://codereview.chromium.org/2812743003
Cr-Commit-Position: refs/heads/master@{#463561}

[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSFontSelector.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSSegmentedFontFace.h
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSSelector.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSSelector.h
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSSelectorList.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSSelectorList.h
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.h
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/CSSValueKeywords.json5
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/FontFaceSet.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/MediaQueryListEvent.h
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/MediaValues.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/RuleSet.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/SelectorChecker.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/StylePropertySet.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/StyleRule.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/cssom/CSSLengthValue.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/cssom/CSSUnitValue.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/resolver/FontBuilderTest.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp
[modify] https://crrev.com/3745cb5bd5243023ef22518dad02383a2f0de67e/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h

Project Member

Comment 8 by bugdroid1@chromium.org, Aug 3 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a78973d477b799cc7cad1809b5e44c4e82b75c6d

commit a78973d477b799cc7cad1809b5e44c4e82b75c6d
Author: Ian Clelland <iclelland@google.com>
Date: Thu Aug 03 00:53:30 2017

Fix errors in comments in WebKit/public/platform.

Several errors have crept in to the comments in Blink, as APIs have
changed and comments haven't been kept up to date. Additionally, the
Great Blink Rename renamed almost every method and instance variable,
without touching comments.

This CL brings the comments in WebKit/public/platform in line with
reality.

Bug:  643310 
Change-Id: I76f1365c2b8aaf3098fb88063c842a9464ac37c4
Reviewed-on: https://chromium-review.googlesource.com/598109
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491577}
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/InterfaceProvider.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/Platform.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebApplicationCacheHost.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebAudioBus.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebAudioDestinationConsumer.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebAudioDevice.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebAudioSourceProvider.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebBlobRegistry.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebClipboard.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebContentDecryptionModuleSession.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebContentLayerClient.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebCrypto.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebCryptoAlgorithm.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebCryptoKey.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebCursorInfo.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebDataConsumerHandle.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebDistillability.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebDragData.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebFileSystem.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebFileSystemCallbacks.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebFileWriterClient.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebGestureEvent.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebImage.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebImageCaptureFrameGrabber.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebInputEvent.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebKeyboardEvent.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebLayerTreeView.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebLocalizedString.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebMediaPlayer.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebMediaPlayerClient.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebMediaRecorderHandler.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebMediaStream.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebMediaStreamTrack.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebMessagePortChannelClient.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebMouseEvent.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebMouseWheelEvent.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebPageVisibilityState.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebPrerenderingSupport.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebPrivatePtr.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebRTCCertificate.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebRTCCertificateGenerator.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebRTCICECandidate.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebRTCLegacyStats.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebRTCStatsRequest.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebRuntimeFeatures.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebSecurityOrigin.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebSourceBuffer.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebStorageArea.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebString.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebThread.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebTouchEvent.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebTrialTokenValidator.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebURLLoaderClient.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebURLLoaderTestDelegate.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebURLRequest.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebURLResponse.h
[modify] https://crrev.com/a78973d477b799cc7cad1809b5e44c4e82b75c6d/third_party/WebKit/public/platform/WebVector.h

Components: Build
Project Member

Comment 10 by sheriffbot@chromium.org, Nov 12

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: WontFix (was: Untriaged)

Sign in to add a comment