Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Issue 23703016: [blink] Use functions for AllMarkers and MisspellingMarkers (Closed)

Created:
7 years, 3 months ago by please use gerrit instead
Modified:
7 years, 3 months ago
Reviewers:
tony
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, adamk+blink_chromium.org, jchaffraix+rendering, groby+blinkspell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[blink] Use functions for AllMarkers and MisspellingMarkers This patch changes AllMarkers and MisspellingMarkers to be functions instead of subclasses of MarkerTypes. This avoids a vtable. Suggested by tony@chromium.org. BUG=295190

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -37 lines) Patch
M Source/core/dom/DocumentMarker.h View 1 chunk +2 lines, -15 lines 2 comments Download
M Source/core/dom/DocumentMarkerController.h View 1 chunk +7 lines, -7 lines 0 comments Download
M Source/core/dom/DocumentMarkerController.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/editing/CompositeEditCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/Editor.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/SpellCheckRequester.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/EventHandler.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/HitTestResult.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/ContextMenuClientImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/EditorClientImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebFrameImpl.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
please use gerrit instead
Tony: PTAL. You suggested this change in https://codereview.chromium.org/24198006.
7 years, 3 months ago (2013-09-20 18:00:20 UTC) #1
tony
I'm full of lies, the size is the same. There's no vtable because nothing is ...
7 years, 3 months ago (2013-09-20 18:10:28 UTC) #2
tony
Sorry for the extra work.
7 years, 3 months ago (2013-09-20 18:10:41 UTC) #3
please use gerrit instead
No problem. If there's no benefit, then I will not land.
7 years, 3 months ago (2013-09-20 18:19:47 UTC) #4
please use gerrit instead
7 years, 3 months ago (2013-09-20 18:20:29 UTC) #5
https://codereview.chromium.org/23703016/diff/1/Source/core/dom/DocumentMarker.h
File Source/core/dom/DocumentMarker.h (right):

https://codereview.chromium.org/23703016/diff/1/Source/core/dom/DocumentMarke...
Source/core/dom/DocumentMarker.h:50: MarkerTypes(unsigned mask) : m_mask(mask) {
}
On 2013/09/20 18:10:28, tony wrote:
> Nit: explicit

The comment says that "the constructor is intentionally implicit to allow
conversion from the bit-wise sum of types."

Powered by Google App Engine
This is Rietveld 408576698