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

Issue 1420503004: Restore optimization in LayoutBlockFlowLine width computation (Closed)

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

Description

Restore optimization in LayoutBlockFlowLine width computation The LayoutText::computeCanUseSimpleFontCodePath method determine whether the wordMeasurement cache is sufficient to satisfy width computations in LayoutBlockFlowLine, in addition to the more obvious role of controlling which text code path to use. By short-circuiting the text path selection this inadvertently disabled the wordMeasurement text cache optimization. This change removes the short circuit and restores the previous behavior where this optimization is decoupled from the text path selection logic. Given its dual function the canUseSimpleFontCodePath name is missleading and I intend to rename it in a subsequent change. BUG=545147 R=drott@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/f86d2d35e903274237f7df803b805bdf8949c4e4

Patch Set 1 #

Patch Set 2 : w/TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -4 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 chunks +83 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
drott
With your explanation re renaming, LGTM. I wonder though, where are these layout test failures ...
5 years, 2 months ago (2015-10-20 16:11:59 UTC) #3
eae
On 2015/10/20 16:11:59, drott wrote: > With your explanation re renaming, LGTM. I wonder though, ...
5 years, 2 months ago (2015-10-20 16:15:12 UTC) #4
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f86d2d35e903274237f7df803b805bdf8949c4e4 Cr-Commit-Position: refs/heads/master@{#355074}
5 years, 2 months ago (2015-10-20 16:32:49 UTC) #6
eae
5 years, 2 months ago (2015-10-20 16:33:14 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
f86d2d35e903274237f7df803b805bdf8949c4e4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698