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

Issue 95493004: Editing - Code refactoring to avoid several calls to rendererIsEditable() in loop (Closed)

Created:
7 years ago by vanihegde
Modified:
7 years ago
CC:
blink-reviews, vanivhegde
Base URL:
https://chromium.googlesource.com/chromium/blink.git@bgColorIssue
Visibility:
Public.

Description

Editing - Code refactoring to avoid several calls to rendererIsEditable() in loop In startOfParagraph() and endOfParagraph(), rendererIsEditable() is called repeatedly in loop for a node that remains unchanged throughout the function. This is avoided by using a local variable. TEST=No test added, since it is a refactoring. All the layout tests have been successfully executed. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163268

Patch Set 1 #

Total comments: 2

Patch Set 2 : Renaming to startNodeIsEditable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M Source/core/editing/VisibleUnits.cpp View 1 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
vanihegde
Minor code refactoring. Please have a look. Thanks!
7 years ago (2013-12-04 09:37:35 UTC) #1
ojan
lgtm https://codereview.chromium.org/95493004/diff/1/Source/core/editing/VisibleUnits.cpp File Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/95493004/diff/1/Source/core/editing/VisibleUnits.cpp#newcode1113 Source/core/editing/VisibleUnits.cpp:1113: bool editable = startNode->rendererIsEditable(); How about calling this ...
7 years ago (2013-12-04 20:47:41 UTC) #2
vanihegde
Done.
7 years ago (2013-12-05 03:06:05 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vani.hegde@samsung.com/95493004/20001
7 years ago (2013-12-05 13:47:32 UTC) #4
commit-bot: I haz the power
7 years ago (2013-12-05 15:18:42 UTC) #5
Message was sent while issue was closed.
Change committed as 163268

Powered by Google App Engine
This is Rietveld 408576698