Attachment 323541[details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMapElement.cpp:61: 'defaultArea' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLElement.cpp:882: 'oldMarkedNode' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/RadioNodeList.cpp:91: 'formElement' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTableElement.cpp:235: 'row' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:221: 'beforeElement' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:770: 'foundSelected' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:771: 'firstOption' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:861: 'element' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:1056: 'firstOption' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:1057: 'selectedOption' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTextFormControlElement.cpp:598: 'lastBrOrText' is incorrectly named. It should be named 'protector' or 'protectedInnerText'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTableRowsCollection.cpp:78: 'child' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormControlElement.cpp:123: 'previousAncestor' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormElement.cpp:675: 'oldDefault' is incorrectly named. It should be named 'protector' or 'protectedDefaultButton'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:175: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:187: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:4981: 'texture' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
Total errors found: 17 in 78 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 323572[details]
Archive of layout-test-results from ews115 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 323604[details]
Archive of layout-test-results from ews107 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Created attachment 323628[details]
Archive of layout-test-results from ews102 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Attachment 323642[details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMapElement.cpp:61: 'defaultArea' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLElement.cpp:882: 'oldMarkedNode' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/RadioNodeList.cpp:91: 'formElement' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTableElement.cpp:235: 'row' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:221: 'beforeElement' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:770: 'foundSelected' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:771: 'firstOption' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:861: 'element' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:1056: 'firstOption' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:1057: 'selectedOption' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTextFormControlElement.cpp:598: 'lastBrOrText' is incorrectly named. It should be named 'protector' or 'protectedInnerText'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTableRowsCollection.cpp:78: 'child' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormControlElement.cpp:123: 'previousAncestor' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormElement.cpp:675: 'oldDefault' is incorrectly named. It should be named 'protector' or 'protectedDefaultButton'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:110: 'newForm' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:175: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:187: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:4981: 'texture' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
Total errors found: 18 in 78 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 323644[details]
Archive of layout-test-results from ews107 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Created attachment 323645[details]
Archive of layout-test-results from ews115 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 323652[details]
Archive of layout-test-results from ews124 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
Attachment 323711[details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMapElement.cpp:61: 'defaultArea' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLElement.cpp:882: 'oldMarkedNode' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/RadioNodeList.cpp:91: 'formElement' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTableElement.cpp:235: 'row' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:221: 'beforeElement' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:770: 'foundSelected' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:771: 'firstOption' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:861: 'element' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:1056: 'firstOption' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:1057: 'selectedOption' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTextFormControlElement.cpp:598: 'lastBrOrText' is incorrectly named. It should be named 'protector' or 'protectedInnerText'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTableRowsCollection.cpp:78: 'child' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormControlElement.cpp:123: 'previousAncestor' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormElement.cpp:675: 'oldDefault' is incorrectly named. It should be named 'protector' or 'protectedDefaultButton'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:110: 'newForm' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:175: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:187: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:4981: 'texture' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
Total errors found: 18 in 78 files
If any of these errors are false positives, please file a bug against check-webkit-style.
First round inspection:
Many of the failing are because of hitting the following assertions:
Node.h:711: ASSERT(!m_deletionHasBegun);
This is due to the following change:
HTMLFormControlElement::willChangeForm:
Changing:
if (HTMLFormElement* form = this->form())
To:
if (RefPtr<HTMLFormElement> form = this->form())
Why this change violates the assertion?
Because we call HTMLFormControlElement::willChangeForm while destroying a HTMLFormElement. Therefore we hit the assertion as we are trying to ref the object again while derefing the object. This might actually be a bug. I will fire a bug later on to address this issue. For now, I will just revert the change and keep the raw pointer.
Created attachment 323732[details]
Archive of layout-test-results from ews104 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Created attachment 323733[details]
Archive of layout-test-results from ews102 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Attachment 323736[details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMapElement.cpp:61: 'defaultArea' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLElement.cpp:882: 'oldMarkedNode' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/RadioNodeList.cpp:91: 'formElement' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTableElement.cpp:235: 'row' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:221: 'beforeElement' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:770: 'foundSelected' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:771: 'firstOption' is incorrectly named. It should be named 'protector' or 'protected0'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:861: 'element' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:1056: 'firstOption' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLSelectElement.cpp:1057: 'selectedOption' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTextFormControlElement.cpp:598: 'lastBrOrText' is incorrectly named. It should be named 'protector' or 'protectedInnerText'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLTableRowsCollection.cpp:78: 'child' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormControlElement.cpp:123: 'previousAncestor' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormElement.cpp:675: 'oldDefault' is incorrectly named. It should be named 'protector' or 'protectedDefaultButton'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:110: 'newForm' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:175: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:187: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:4981: 'texture' is incorrectly named. It should be named 'protector' or 'protectedNullptr'. [readability/naming/protected] [4]
Total errors found: 18 in 78 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 323736[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=323736&action=review
Thanks Ryosuke for r+ my patch. However, in order to address the comments, I made quite some changes. Therefore, the next patch will probably need reviews as well.
> Source/WebCore/ChangeLog:417
> +2017-10-06 Jiewen Tan <jiewen_tan@apple.com>
Removed.
>> Source/WebCore/html/FormAssociatedElement.cpp:113
>> + newForm = downcast<HTMLFormElement>(newFormCandidate.get());
>
> Why don't we just return this?
Good catch.
>> Source/WebCore/html/FormAssociatedElement.cpp:114
>> + return newForm.get();
>
> And return nullptr here instead. That way, we can just get rid of newForm.
Done.
>> Source/WebCore/html/HTMLFormControlElement.cpp:451
>> + if (RefPtr<HTMLFormElement> form = this->form())
>
> We should make form() return a RefPtr<HTMLFormElement> and just use auto here.
It turns out that "this->form()" is used in cases of previous patches that we hit the assertion. Hence, I cannot address it in this patch.
>> Source/WebCore/html/HTMLFormElement.cpp:143
>> + RefPtr<Node> targetNode = event.target()->toNode();
>
> Can we make toNode return RefPtr<Node> instead?
Fixed.
>> Source/WebCore/html/HTMLFormElement.cpp:272
>> + RefPtr<HTMLFormControlElement> submitElement = submitElementFromEvent(event);
>
> Can we make submitElementFromEvent return RefPtr?
Fixed.
>> Source/WebCore/html/HTMLFormElement.cpp:787
>> + RefPtr<HTMLElement> elementFromPast = elementFromPastNamesMap(name);
>
> Make elementFromPastNamesMap return a RefPtr?
Fixed.
>> Source/WebCore/html/HTMLFrameElement.cpp:67
>> + const RefPtr<HTMLFrameSetElement> containingFrameSet = HTMLFrameSetElement::findContaining(this);
>
> Why don't we make findContaining return a RefPtr?
Fixed.
>> Source/WebCore/html/HTMLFrameSetElement.cpp:179
>> + const RefPtr<HTMLFrameSetElement> containingFrameSet = findContaining(this);
>
> Can we make findContaining return a RefPtr?
Fixed.
>> Source/WebCore/html/HTMLImageElement.cpp:622
>> + RefPtr<ShadowRoot> shadowRoot = userAgentShadowRoot();
>
> Make userAgentShadowRoot return a RefPtr?
Fixed.
>> Source/WebCore/html/HTMLSelectElement.cpp:771
>> + RefPtr<HTMLOptionElement> firstOption = 0;
>
> No need to initialize them to 0. (Use nullptr if any).
Fixed.
>> Source/WebCore/html/HTMLSelectElement.cpp:1057
>> + RefPtr<HTMLOptionElement> selectedOption = nullptr;
>
> Get rid of initialization?
Fixed.
>> Source/WebCore/html/HTMLTextFormControlElement.cpp:445
>> + RefPtr<TextControlInnerTextElement> innerText = innerTextElement();
>
> Can we make innerTextElement return a RefPtr?
Fixed.
>> Source/WebCore/html/HTMLTrackElement.cpp:212
>> + RefPtr<HTMLMediaElement> parent = mediaElement();
>
> Can we make mediaElement() return a RefPtr?
Fixed.
>> Source/WebCore/html/MediaElementSession.cpp:464
>> + RefPtr<MediaPlayer> player = element.player();
>
> Can we make player return a RefPtr?
Fixed.
>> Source/WebCore/html/shadow/MediaControlElements.cpp:736
>> + RefPtr<HTMLMediaElement> mediaElement = parentMediaElement(this);
>
> Make parentMediaElement return RefPtr?
Fixed.
>> Source/WebCore/html/shadow/SliderThumbElement.cpp:229
>> + RefPtr<HTMLInputElement> input = hostInput();
>
> Make hostInput return a RefPtr?
Fixed.
Attachment 324065[details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLTextFormControlElement.cpp:598: 'lastBrOrText' is incorrectly named. It should be named 'protector' or 'protectedInnerText'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormElement.cpp:675: 'oldDefault' is incorrectly named. It should be named 'protector' or 'protectedDefaultButton'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:174: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:186: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
Total errors found: 4 in 129 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Attachment 324076[details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLTextFormControlElement.cpp:598: 'lastBrOrText' is incorrectly named. It should be named 'protector' or 'protectedInnerText'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormElement.cpp:675: 'oldDefault' is incorrectly named. It should be named 'protector' or 'protectedDefaultButton'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:174: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:186: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
Total errors found: 4 in 133 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Attachment 324080[details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLTextFormControlElement.cpp:598: 'lastBrOrText' is incorrectly named. It should be named 'protector' or 'protectedInnerText'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormElement.cpp:675: 'oldDefault' is incorrectly named. It should be named 'protector' or 'protectedDefaultButton'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:174: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:186: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
Total errors found: 4 in 134 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Attachment 324082[details] did not pass style-queue:
WARNING: File exempt from style guide. Skipping: "Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp"
ERROR: Source/WebCore/html/HTMLTextFormControlElement.cpp:598: 'lastBrOrText' is incorrectly named. It should be named 'protector' or 'protectedInnerText'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormElement.cpp:675: 'oldDefault' is incorrectly named. It should be named 'protector' or 'protectedDefaultButton'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:174: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:186: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
Total errors found: 4 in 135 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Attachment 324084[details] did not pass style-queue:
WARNING: File exempt from style guide. Skipping: "Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp"
ERROR: Source/WebCore/html/HTMLTextFormControlElement.cpp:598: 'lastBrOrText' is incorrectly named. It should be named 'protector' or 'protectedInnerText'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormElement.cpp:675: 'oldDefault' is incorrectly named. It should be named 'protector' or 'protectedDefaultButton'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:174: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:186: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
Total errors found: 4 in 135 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 324084[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=324084&action=review> Source/WebCore/html/InputType.h:219
> - virtual TextControlInnerTextElement* innerTextElement() const { return nullptr; }
> + virtual RefPtr<TextControlInnerTextElement> innerTextElement() const { return nullptr; }
Please move this implementation to the InputType.cpp instead of including TextControlInnerElements.h since this is a virtual function.
Comment on attachment 324084[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=324084&action=review
Thanks Ryosuke for r+ my patch.
>> Source/WebCore/html/InputType.h:219
>> + virtual RefPtr<TextControlInnerTextElement> innerTextElement() const { return nullptr; }
>
> Please move this implementation to the InputType.cpp instead of including TextControlInnerElements.h since this is a virtual function.
Fixed.
Attachment 324156[details] did not pass style-queue:
WARNING: File exempt from style guide. Skipping: "Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp"
ERROR: Source/WebCore/html/HTMLTextFormControlElement.cpp:598: 'lastBrOrText' is incorrectly named. It should be named 'protector' or 'protectedInnerText'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/HTMLFormElement.cpp:675: 'oldDefault' is incorrectly named. It should be named 'protector' or 'protectedDefaultButton'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:174: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
ERROR: Source/WebCore/html/FormAssociatedElement.cpp:186: 'originalForm' is incorrectly named. It should be named 'protector' or 'protectedForm'. [readability/naming/protected] [4]
Total errors found: 4 in 135 files
If any of these errors are false positives, please file a bug against check-webkit-style.
2017-10-11 19:50 PDT, Jiewen Tan
2017-10-12 12:01 PDT, Jiewen Tan
2017-10-12 14:56 PDT, Build Bot
2017-10-12 17:02 PDT, Build Bot
2017-10-12 21:26 PDT, Build Bot
2017-10-12 23:17 PDT, Jiewen Tan
2017-10-13 00:13 PDT, Build Bot
2017-10-13 00:14 PDT, Build Bot
2017-10-13 02:30 PDT, Build Bot
2017-10-13 11:35 PDT, Jiewen Tan
2017-10-13 13:21 PDT, Build Bot
2017-10-13 13:21 PDT, Build Bot
2017-10-13 13:31 PDT, Jiewen Tan
2017-10-17 15:43 PDT, Jiewen Tan
2017-10-17 18:19 PDT, Jiewen Tan
2017-10-17 18:48 PDT, Jiewen Tan
2017-10-17 18:59 PDT, Jiewen Tan
2017-10-17 19:06 PDT, Jiewen Tan
2017-10-18 13:08 PDT, Jiewen Tan