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

Issue 196743002: Parse the link element's size attribute (Closed)

Created:
6 years, 9 months ago by michaelbai
Modified:
6 years, 9 months ago
CC:
blink-reviews, jamesr, gavinp+prerender_chromium.org, sof, eae+blinkwatch, abarth-chromium, dglazkov+blink, adamk+blink_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

This patch parse the sizes attribute into vector of IntSize, also added sizes in WebIconURL, so it could be used by chromium BUG=349039 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169404

Patch Set 1 : #

Total comments: 14

Patch Set 2 : Addressed comments #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : use charactersToInt #

Total comments: 6

Patch Set 5 : address comments #

Total comments: 2

Patch Set 6 : #

Total comments: 3

Patch Set 7 : fix the space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -8 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/IconURL.h View 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/IconURL.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLLinkElement.h View 1 2 3 4 5 6 3 chunks +7 lines, -2 lines 0 comments Download
M Source/core/html/HTMLLinkElement.cpp View 1 2 3 4 5 6 3 chunks +75 lines, -2 lines 0 comments Download
A Source/core/html/HTMLLinkElementSizesAttributeTest.cpp View 1 2 3 4 1 chunk +77 lines, -0 lines 0 comments Download
M public/web/WebIconURL.h View 1 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 33 (0 generated)
michaelbai
6 years, 9 months ago (2014-03-12 19:17:56 UTC) #1
abarth-chromium
https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp#newcode65 Source/core/html/HTMLLinkElement.cpp:65: RefPtr<DOMSettableTokenList> tokenList = DOMSettableTokenList::create(); Why are we using a ...
6 years, 9 months ago (2014-03-12 19:42:33 UTC) #2
Inactive
https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp#newcode55 Source/core/html/HTMLLinkElement.cpp:55: const String sizeSeparator = "x"; This could be a ...
6 years, 9 months ago (2014-03-12 20:09:52 UTC) #3
michaelbai
PTAL https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp#newcode63 Source/core/html/HTMLLinkElement.cpp:63: void HTMLLinkElement::parseSizesAttribute(const AtomicString& value, Vector<IntSize>* iconSizes) iconSizes will ...
6 years, 9 months ago (2014-03-12 23:08:40 UTC) #4
Inactive
https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp#newcode63 Source/core/html/HTMLLinkElement.cpp:63: void HTMLLinkElement::parseSizesAttribute(const AtomicString& value, Vector<IntSize>* iconSizes) On 2014/03/12 23:08:41, ...
6 years, 9 months ago (2014-03-12 23:14:37 UTC) #5
Inactive
On 2014/03/12 23:14:37, Chris Dumez wrote: > https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp > File Source/core/html/HTMLLinkElement.cpp (right): > > https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp#newcode63 ...
6 years, 9 months ago (2014-03-12 23:16:09 UTC) #6
Inactive
https://codereview.chromium.org/196743002/diff/80001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/80001/Source/core/html/HTMLLinkElement.cpp#newcode64 Source/core/html/HTMLLinkElement.cpp:64: ASSERT(!iconSizes->size()); ASSERT(iconSizes.isEmpty()); would be more readable. https://codereview.chromium.org/196743002/diff/80001/Source/core/html/HTMLLinkElement.cpp#newcode65 Source/core/html/HTMLLinkElement.cpp:65: if ...
6 years, 9 months ago (2014-03-12 23:27:12 UTC) #7
michaelbai
https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/60001/Source/core/html/HTMLLinkElement.cpp#newcode63 Source/core/html/HTMLLinkElement.cpp:63: void HTMLLinkElement::parseSizesAttribute(const AtomicString& value, Vector<IntSize>* iconSizes) I has been ...
6 years, 9 months ago (2014-03-13 05:50:09 UTC) #8
michaelbai
ping
6 years, 9 months ago (2014-03-14 18:08:03 UTC) #9
Inactive
https://codereview.chromium.org/196743002/diff/80001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/80001/Source/core/html/HTMLLinkElement.cpp#newcode74 Source/core/html/HTMLLinkElement.cpp:74: StringBuffer<UChar> buff(value.length()); On 2014/03/13 05:50:11, michaelbai wrote: > Can ...
6 years, 9 months ago (2014-03-14 18:24:46 UTC) #10
michaelbai
PTAL
6 years, 9 months ago (2014-03-14 20:09:25 UTC) #11
Inactive
https://codereview.chromium.org/196743002/diff/120001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/120001/Source/core/html/HTMLLinkElement.cpp#newcode56 Source/core/html/HTMLLinkElement.cpp:56: static void parseSizes(const CharacterType value, unsigned length, Vector<IntSize>& iconSizes) ...
6 years, 9 months ago (2014-03-14 20:36:18 UTC) #12
michaelbai
Thanks, PTAL https://codereview.chromium.org/196743002/diff/120001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/120001/Source/core/html/HTMLLinkElement.cpp#newcode56 Source/core/html/HTMLLinkElement.cpp:56: static void parseSizes(const CharacterType value, unsigned length, ...
6 years, 9 months ago (2014-03-14 20:49:06 UTC) #13
Inactive
Thanks for taking the feedback into consideration. I know better than to review string parsing ...
6 years, 9 months ago (2014-03-14 20:53:50 UTC) #14
michaelbai
Thanks for your time to help review this! @abarth, PTAL https://codereview.chromium.org/196743002/diff/140001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/140001/Source/core/html/HTMLLinkElement.cpp#newcode68 ...
6 years, 9 months ago (2014-03-14 20:58:16 UTC) #15
abarth-chromium
LGTM https://codereview.chromium.org/196743002/diff/160001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/160001/Source/core/html/HTMLLinkElement.cpp#newcode68 Source/core/html/HTMLLinkElement.cpp:68: for ( ;i < length; ++i) { We ...
6 years, 9 months ago (2014-03-17 18:15:50 UTC) #16
Inactive
https://codereview.chromium.org/196743002/diff/160001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/160001/Source/core/html/HTMLLinkElement.cpp#newcode68 Source/core/html/HTMLLinkElement.cpp:68: for ( ;i < length; ++i) { On 2014/03/17 ...
6 years, 9 months ago (2014-03-17 18:17:49 UTC) #17
michaelbai
Thanks https://codereview.chromium.org/196743002/diff/160001/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/196743002/diff/160001/Source/core/html/HTMLLinkElement.cpp#newcode68 Source/core/html/HTMLLinkElement.cpp:68: for ( ;i < length; ++i) { Oh, ...
6 years, 9 months ago (2014-03-17 18:51:02 UTC) #18
michaelbai
The CQ bit was checked by michaelbai@chromium.org
6 years, 9 months ago (2014-03-17 18:51:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/196743002/180001
6 years, 9 months ago (2014-03-17 18:51:20 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-17 18:52:36 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-17 18:52:37 UTC) #22
michaelbai
The CQ bit was checked by michaelbai@chromium.org
6 years, 9 months ago (2014-03-17 21:48:03 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/196743002/180001
6 years, 9 months ago (2014-03-17 21:48:11 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-17 21:52:13 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-17 21:52:14 UTC) #26
michaelbai
The CQ bit was checked by michaelbai@chromium.org
6 years, 9 months ago (2014-03-17 22:19:09 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/196743002/180001
6 years, 9 months ago (2014-03-17 22:19:20 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 03:23:19 UTC) #29
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-18 03:23:20 UTC) #30
michaelbai
The CQ bit was checked by michaelbai@chromium.org
6 years, 9 months ago (2014-03-18 03:27:53 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/196743002/180001
6 years, 9 months ago (2014-03-18 03:27:57 UTC) #32
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 03:28:26 UTC) #33
Message was sent while issue was closed.
Change committed as 169404

Powered by Google App Engine
This is Rietveld 408576698