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

Issue 265713002: [FastTextAutosizing] Remove FastTextAutosizer::enabled (Closed)

Created:
6 years, 7 months ago by pdr.
Modified:
6 years, 7 months ago
Reviewers:
skobes
CC:
blink-reviews, blink-reviews-rendering, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink
Visibility:
Public.

Description

[FastTextAutosizing] Remove FastTextAutosizer::enabled FastTextAutosizer::enabled() is hot on profiles as it's called multiple times per block. The places where the text autosizing setting can change are well defined and all go through updatePageInfo() so this patch removes enabled() entirely, replacing it with a check of m_pageInfo.m_settingEnabled which is updated in updatePageInfo(). This patch is a followup to https://src.chromium.org/viewvc/blink?view=rev&revision=173020 No new tests as this is just a refactoring. BUG=367864 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173042

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update per reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -14 lines) Patch
M Source/core/rendering/FastTextAutosizer.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/FastTextAutosizer.cpp View 1 4 chunks +7 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
pdr.
6 years, 7 months ago (2014-04-30 22:42:37 UTC) #1
skobes
lgtm https://codereview.chromium.org/265713002/diff/1/Source/core/rendering/FastTextAutosizer.cpp File Source/core/rendering/FastTextAutosizer.cpp (right): https://codereview.chromium.org/265713002/diff/1/Source/core/rendering/FastTextAutosizer.cpp#newcode470 Source/core/rendering/FastTextAutosizer.cpp:470: ASSERT(!(m_document->settings() && m_document->settings()->textAutosizingEnabled()) || m_document->frame()->isMainFrame()); The reason this ...
6 years, 7 months ago (2014-04-30 22:56:39 UTC) #2
pdr.
https://codereview.chromium.org/265713002/diff/1/Source/core/rendering/FastTextAutosizer.cpp File Source/core/rendering/FastTextAutosizer.cpp (right): https://codereview.chromium.org/265713002/diff/1/Source/core/rendering/FastTextAutosizer.cpp#newcode470 Source/core/rendering/FastTextAutosizer.cpp:470: ASSERT(!(m_document->settings() && m_document->settings()->textAutosizingEnabled()) || m_document->frame()->isMainFrame()); On 2014/04/30 22:56:40, skobes ...
6 years, 7 months ago (2014-04-30 23:12:03 UTC) #3
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 7 months ago (2014-04-30 23:12:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/265713002/20001
6 years, 7 months ago (2014-04-30 23:12:24 UTC) #5
commit-bot: I haz the power
6 years, 7 months ago (2014-05-01 00:15:08 UTC) #6
Message was sent while issue was closed.
Change committed as 173042

Powered by Google App Engine
This is Rietveld 408576698