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

Issue 1624383002: Match <area shape> ASCII case-insensitively (Closed)

Created:
4 years, 11 months ago by fs
Modified:
4 years, 11 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-html_chromium.org, blink-reviews-wtf_chromium.org, chromium-reviews, dglazkov+blink, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Match <area shape> ASCII case-insensitively The 'shape' attribute on HTMLAreaElement is an "enumerated attribute" [1], which means that it should be matched ASCII case-insensitively[2]. To get a proper overload of equalIgnoringASCIICase(...) that matches the required use (AtomicString against string literal/const char*), restructure the definition of equalIgnoringASCIICase() to do away with the templated version in favor of a generic StringImpl* version, and specific wrappers around that one for AtomicString/String. Also add a specialization for comparing against char/LChar. No effect on the specified test because: a) Invalid/missing value default is not per spec, so the unexpected shape is picked anyway. But more importantly: b) the way case-folding is implemented/specified, no non-ASCII character is case-folded to something in the ASCII-range. [1] https://html.spec.whatwg.org/multipage/embedded-content.html#attr-area-shape [2] https://html.spec.whatwg.org/multipage/infrastructure.html#enumerated-attribute TEST=fast/html/area-shape.html BUG=578125 Committed: https://crrev.com/07a9d8301ec2709af99986b69a7704570aff08db Cr-Commit-Position: refs/heads/master@{#371478}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -19 lines) Patch
M third_party/WebKit/Source/core/html/HTMLAreaElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/AtomicString.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.h View 1 chunk +2 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.cpp View 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
fs
No effect on the specified test because: a) Invalid/missing value default is not per spec, ...
4 years, 11 months ago (2016-01-25 19:28:19 UTC) #3
tkent
lgtm On 2016/01/25 at 19:28:19, fs wrote: > No effect on the specified test because: ...
4 years, 11 months ago (2016-01-26 00:00:47 UTC) #4
fs
On 2016/01/26 at 00:00:47, tkent wrote: > lgtm Thanks. > On 2016/01/25 at 19:28:19, fs ...
4 years, 11 months ago (2016-01-26 08:55:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1624383002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1624383002/1
4 years, 11 months ago (2016-01-26 08:55:54 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-26 08:59:57 UTC) #11
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 09:01:03 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/07a9d8301ec2709af99986b69a7704570aff08db
Cr-Commit-Position: refs/heads/master@{#371478}

Powered by Google App Engine
This is Rietveld 408576698