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

Issue 2895283003: DCHECK style is cacheable in ComputedStyle::CopyNonInheritedFromCached. (Closed)

Created:
3 years, 7 months ago by shend
Modified:
3 years, 6 months ago
CC:
blink-reviews, blink-reviews-style_chromium.org, Bugs Nash, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DCHECK style is cacheable in ComputedStyle::CopyNonInheritedFromCached. In ComputedStyle::CopyNonInheritedFromCached, we copy computed values of non inherited properties from another ComputedStyle to the current ComputedStyle. There are several DCHECKS in this function to make sure that the style we're copying from is cacheable. This patch replaces those DCHECKS with a single DCHECK on a new function called MatchedPropertiesCache::IsStyleCacheable. BUG=628043 Review-Url: https://codereview.chromium.org/2895283003 Cr-Commit-Position: refs/heads/master@{#475267} Committed: https://chromium.googlesource.com/chromium/src/+/8cb8d28de8f2c439a50307ddc142c533c5b79e2c

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -16 lines) Patch
M third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp View 1 2 1 chunk +18 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 chunks +2 lines, -8 lines 0 comments Download

Messages

Total messages: 28 (19 generated)
shend
3 years, 7 months ago (2017-05-22 23:13:36 UTC) #5
shend
Hi Alan, PTAL
3 years, 7 months ago (2017-05-22 23:13:51 UTC) #6
shend
+bugsnash for FYI
3 years, 7 months ago (2017-05-22 23:19:51 UTC) #8
alancutter (OOO until 2018)
whynotboth.gif?
3 years, 7 months ago (2017-05-24 04:43:46 UTC) #11
shend
On 2017/05/24 at 04:43:46, alancutter wrote: > whynotboth.gif? the original DCHECK confused me a lot. ...
3 years, 7 months ago (2017-05-24 05:40:57 UTC) #12
shend
Hi Alan, made the changes discussed irl. PTAL?
3 years, 7 months ago (2017-05-24 08:10:13 UTC) #16
alancutter (OOO until 2018)
lgtm
3 years, 6 months ago (2017-05-25 02:00:40 UTC) #19
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/2895283003/40001
3 years, 6 months ago (2017-05-29 00:16:55 UTC) #25
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 00:20:54 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8cb8d28de8f2c439a50307ddc142...

Powered by Google App Engine
This is Rietveld 408576698