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

Issue 1905163003: Fix CSSParserToken::operator== for NumberTokens (Closed)

Created:
4 years, 8 months ago by Timothy Loh
Modified:
4 years, 7 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix CSSParserToken::operator== for NumberTokens This patch fixes equality for CSSParserToken to not compare the dimension values when comparing NumberTokens. These are only valid for DimensionTokens. We also now compare whether tokens were specified with a sign (+/-/nothing) for dimensions and percentages. Since the operator== function is fairly large, it is also moved from the header file to the .cpp file. BUG=590801 Committed: https://crrev.com/b59bf7c191bc204ceb046c2743246ff45a8798f6 Cr-Commit-Position: refs/heads/master@{#390593}

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -32 lines) Patch
M third_party/WebKit/LayoutTests/fast/css/variables/multiple-writes-to-inline-style.html View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserToken.h View 1 chunk +1 line, -32 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserToken.cpp View 1 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Timothy Loh
I checked on MSAN and this fixes the linked bug.
4 years, 8 months ago (2016-04-22 06:02:42 UTC) #2
alancutter (OOO until 2018)
lgtm
4 years, 7 months ago (2016-04-29 03:01:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905163003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905163003/20001
4 years, 7 months ago (2016-04-29 03:53:02 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-04-29 05:02:28 UTC) #6
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:24:21 UTC) #7
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b59bf7c191bc204ceb046c2743246ff45a8798f6
Cr-Commit-Position: refs/heads/master@{#390593}

Powered by Google App Engine
This is Rietveld 408576698