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

Issue 1473773002: Clarify naming for fast-path in setLogicalWidthForTextRun (Closed)

Created:
5 years ago by eae
Modified:
5 years ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clarify naming for fast-path in setLogicalWidthForTextRun Rename the canUseSimpleFontCodePath flag to canUseCachedWordMeasurements in LayoutBlockFlowLine::setLogicalWidthForTextRun to better describe how it is used. Add comment to rename the canUseSimpleFontCodePath method in LayoutText.h once the simple code path has been removed. BUG=404597 R=leviw@chromium.org Committed: https://crrev.com/b4f0e9f9ca28367c8b952894b5ef34fa70e956d4 Cr-Commit-Position: refs/heads/master@{#361523}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -6 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 2 chunks +6 lines, -6 lines 1 comment Download
M third_party/WebKit/Source/core/layout/LayoutText.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
eae
Adding TODO
5 years ago (2015-11-24 22:10:14 UTC) #3
leviw_travelin_and_unemployed
lgtm
5 years ago (2015-11-24 22:28:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1473773002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1473773002/1
5 years ago (2015-11-24 22:29:54 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-11-25 02:21:48 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/b4f0e9f9ca28367c8b952894b5ef34fa70e956d4 Cr-Commit-Position: refs/heads/master@{#361523}
5 years ago (2015-11-25 02:22:33 UTC) #8
drott
When working on the removal CL... https://codereview.chromium.org/1473773002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp (right): https://codereview.chromium.org/1473773002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp#newcode450 third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp:450: bool canUseCachedWordMeasurements = ...
5 years ago (2015-11-25 12:46:24 UTC) #10
eae
5 years ago (2015-11-25 16:01:14 UTC) #11
Message was sent while issue was closed.
On 2015/11/25 12:46:24, drott wrote:
> When working on the removal CL...
> 
>
https://codereview.chromium.org/1473773002/diff/1/third_party/WebKit/Source/c...
> File third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp (right):
> 
>
https://codereview.chromium.org/1473773002/diff/1/third_party/WebKit/Source/c...
> third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp:450: bool
> canUseCachedWordMeasurements = layoutText->canUseSimpleFontCodePath() &&
> !font.fontDescription().featureSettings();
> I am trying to understand what this line actually means and what we should be
> doing with it.
> 
> The canUseSimpleCodePath implementation means: either 8bit or not complex only
> character ranges...
> 
>
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit...
> 
> Is that really intended? Or can we not use the word cache in more situations?

No, thats why I added a TODO to change the implementation (and rename it) so
that it only triggers in cases where we cannot use the word cache.

Powered by Google App Engine
This is Rietveld 408576698