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

Issue 1153353002: Fast path when setting border-image-width to initial always fails (Closed)

Created:
5 years, 6 months ago by Sunil Ratnu
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-style_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fast path when setting border-image-width to initial always fails In applyInitialCSSPropertyBorderImageWidth the lengthTypeAndValueMatch check fails as each BorderImageLength is initialized as 1.0/NumberType, but the comparison is for 1/LengthType. We add another method numberTypeAndValueMatch() so that the comparsion is done properly keeping in mind what we initialize. BUG=492572 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196380

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed review comments #

Total comments: 4

Patch Set 3 : Addressed review comments #

Patch Set 4 : Addressed review comments #

Total comments: 4

Patch Set 5 : properly naming methods #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -25 lines) Patch
M Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 2 3 4 2 chunks +15 lines, -25 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
Sunil Ratnu
Please take a look. Thanks!
5 years, 6 months ago (2015-05-28 06:42:51 UTC) #2
Timothy Loh
https://codereview.chromium.org/1153353002/diff/1/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl File Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl (right): https://codereview.chromium.org/1153353002/diff/1/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl#newcode191 Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl:191: static bool numberTypeAndValueMatch(const BorderImageLengthBox& borderImageLengthBox, float value) Naming is ...
5 years, 6 months ago (2015-05-29 02:10:15 UTC) #3
Sunil Ratnu
Hi Timothy, Thanks for the quick review. I've made the changes suggested by you. I ...
5 years, 6 months ago (2015-05-29 13:56:01 UTC) #5
Timothy Loh
lgtm On 2015/05/29 13:56:01, Sunil Ratnu wrote: > Not sure if its fixing a bug ...
5 years, 6 months ago (2015-06-02 00:37:59 UTC) #6
Timothy Loh
https://codereview.chromium.org/1153353002/diff/20001/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl File Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl (right): https://codereview.chromium.org/1153353002/diff/20001/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl#newcode199 Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl:199: if (lengthTypeAndValueMatch(currentImage.borderSlices(), BorderImageLength(Length(0, Auto)))) Better to leave out the ...
5 years, 6 months ago (2015-06-02 00:38:09 UTC) #7
Timothy Loh
BTW can you double-check that we don't go through here when the value is initial? ...
5 years, 6 months ago (2015-06-02 03:57:48 UTC) #8
Sunil Ratnu
Hi Timothy, Thanks for the review. I've made the suggested changes. Also, I double checked ...
5 years, 6 months ago (2015-06-02 10:02:02 UTC) #9
Timothy Loh
https://codereview.chromium.org/1153353002/diff/20001/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl File Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl (right): https://codereview.chromium.org/1153353002/diff/20001/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl#newcode199 Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl:199: if (lengthTypeAndValueMatch(currentImage.borderSlices(), BorderImageLength(Length(0, Auto)))) On 2015/06/02 10:02:02, Sunil Ratnu ...
5 years, 6 months ago (2015-06-02 12:07:24 UTC) #10
Sunil Ratnu
Hi Timothy, Made the suggested changes. PTAL. Thanks https://codereview.chromium.org/1153353002/diff/20001/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl File Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl (right): https://codereview.chromium.org/1153353002/diff/20001/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl#newcode199 Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl:199: if ...
5 years, 6 months ago (2015-06-02 12:16:53 UTC) #11
Sunil Ratnu
Hi Timothy, Can we land this now? Thanks
5 years, 6 months ago (2015-06-03 04:01:44 UTC) #12
Timothy Loh
https://codereview.chromium.org/1153353002/diff/60001/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl File Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl (right): https://codereview.chromium.org/1153353002/diff/60001/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl#newcode160 Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl:160: static bool lengthTypeAndValueMatch(const LengthBox& lengthBox, const Length& length) rename ...
5 years, 6 months ago (2015-06-03 05:27:45 UTC) #13
Sunil Ratnu
Hi Timothy, I've made the suggested changes. PTAL. Thanks https://codereview.chromium.org/1153353002/diff/60001/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl File Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl (right): https://codereview.chromium.org/1153353002/diff/60001/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl#newcode160 Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl:160: ...
5 years, 6 months ago (2015-06-03 05:42:26 UTC) #14
Timothy Loh
lgtm
5 years, 6 months ago (2015-06-03 05:43:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1153353002/80001
5 years, 6 months ago (2015-06-03 05:44:24 UTC) #17
commit-bot: I haz the power
5 years, 6 months ago (2015-06-03 07:36:14 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196380

Powered by Google App Engine
This is Rietveld 408576698