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

Issue 2322193002: Simplify caret color calculation in CaretBase::paintCaret() (Closed)

Created:
4 years, 3 months ago by yosin_UTC9
Modified:
4 years, 3 months ago
Reviewers:
yoichio, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify caret color calculation in CaretBase::paintCaret() This patch simplifies caret color calculation in |CaretBase::paintCaret()| by using |LayoutObject::resolveColor()| for |CSSColorProperty| for specified |Node| object rather than using parent element's layout object, since color value for |Text| node and parent element are same. BUG=n/a TEST=n/a; no behavior changes Committed: https://crrev.com/de6470c2e53aca2dbdf27d5985e7b7aff043337e Cr-Commit-Position: refs/heads/master@{#417548}

Patch Set 1 : 2016-09-09T15:00:21 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -11 lines) Patch
M third_party/WebKit/Source/core/editing/CaretBase.cpp View 1 chunk +1 line, -11 lines 3 comments Download

Messages

Total messages: 17 (8 generated)
yosin_UTC9
4 years, 3 months ago (2016-09-09 07:34:01 UTC) #6
Xiaocheng
https://codereview.chromium.org/2322193002/diff/1/third_party/WebKit/Source/core/editing/CaretBase.cpp File third_party/WebKit/Source/core/editing/CaretBase.cpp (right): https://codereview.chromium.org/2322193002/diff/1/third_party/WebKit/Source/core/editing/CaretBase.cpp#newcode207 third_party/WebKit/Source/core/editing/CaretBase.cpp:207: const Color caretColor = node->layoutObject()->resolveColor(CSSPropertyColor); Do you mean |node| ...
4 years, 3 months ago (2016-09-09 07:40:44 UTC) #7
yosin_UTC9
On 2016/09/09 at 07:40:44, xiaochengh wrote: > https://codereview.chromium.org/2322193002/diff/1/third_party/WebKit/Source/core/editing/CaretBase.cpp > File third_party/WebKit/Source/core/editing/CaretBase.cpp (right): > > https://codereview.chromium.org/2322193002/diff/1/third_party/WebKit/Source/core/editing/CaretBase.cpp#newcode207 ...
4 years, 3 months ago (2016-09-09 07:41:49 UTC) #8
Xiaocheng
lgtm
4 years, 3 months ago (2016-09-09 07:47:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2322193002/1
4 years, 3 months ago (2016-09-09 07:53:02 UTC) #12
yoichio
https://codereview.chromium.org/2322193002/diff/1/third_party/WebKit/Source/core/editing/CaretBase.cpp File third_party/WebKit/Source/core/editing/CaretBase.cpp (right): https://codereview.chromium.org/2322193002/diff/1/third_party/WebKit/Source/core/editing/CaretBase.cpp#newcode207 third_party/WebKit/Source/core/editing/CaretBase.cpp:207: const Color caretColor = node->layoutObject()->resolveColor(CSSPropertyColor); node->layoutObject() exists always?
4 years, 3 months ago (2016-09-09 07:53:54 UTC) #13
yosin_UTC9
https://codereview.chromium.org/2322193002/diff/1/third_party/WebKit/Source/core/editing/CaretBase.cpp File third_party/WebKit/Source/core/editing/CaretBase.cpp (right): https://codereview.chromium.org/2322193002/diff/1/third_party/WebKit/Source/core/editing/CaretBase.cpp#newcode207 third_party/WebKit/Source/core/editing/CaretBase.cpp:207: const Color caretColor = node->layoutObject()->resolveColor(CSSPropertyColor); On 2016/09/09 at 07:53:54, ...
4 years, 3 months ago (2016-09-09 08:27:21 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-09 10:15:29 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 10:17:30 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/de6470c2e53aca2dbdf27d5985e7b7aff043337e
Cr-Commit-Position: refs/heads/master@{#417548}

Powered by Google App Engine
This is Rietveld 408576698