Description was changed from
==========
Adding support of viewportunits to SVG
Adding support of viewport units such as vw, vh, vmin, vmax
to SVGLength
BUG=368598
==========
to
==========
Adding support of viewportunits to SVG
Adding support of viewport units such as vw, vh, vmin, vmax
to SVGLength
BUG=368598
R=SamsungPeerReview
==========
Have updated the code.
Please check..
And CSSToLengthConversionData have similar code , but not same. Similar
conversion APIs are available for other CSS units in SVGLengthContext.cpp.
https://codereview.chromium.org/1544543003/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/svg/SVGLengthContext.cpp (right):
https://codereview.chromium.org/1544543003/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/svg/SVGLengthContext.cpp:105: static float
viewportWidthPercent(const FloatSize& viewportSize)
On 2015/12/22 16:41:49, rwlbuis wrote:
> These 4 helper functions should be inline and should move to just above where
> they are used.
Done.
https://codereview.chromium.org/1544543003/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/svg/SVGLengthContext.cpp:113: }
On 2015/12/22 16:41:49, rwlbuis wrote:
> You can probably unify above two by passing a dimension, instead or
> width/height. For instance something like a float widthOrHeight param.
Done.
https://codereview.chromium.org/1544543003/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/svg/SVGLengthContext.cpp:364: float
SVGLengthContext::convertValueFromUserUnitsToViewportUnits(CSSPrimitiveValue::UnitType
toUnit, float value) const
On 2015/12/22 16:41:49, rwlbuis wrote:
> Do we need to take zoom into account in these 2 methods?
Acknowledged.
Shanmuga Pandi
Description was changed from ========== Adding support of viewportunits to SVG Adding support of viewport ...
Description was changed from
==========
Adding support of viewportunits to SVG
Adding support of viewport units such as vw, vh, vmin, vmax
to SVGLength
BUG=368598
R=SamsungPeerReview
==========
to
==========
Adding support of viewportunits to SVG
Adding support of viewport units such as vw, vh, vmin, vmax
to SVGLength
BUG=368598
==========
rwlbuis
On 2015/12/23 09:01:00, Shanmuga Pandi wrote: > Have updated the code. > Please check.. > ...
On 2015/12/23 09:01:00, Shanmuga Pandi wrote:
> Have updated the code.
> Please check..
>
> And CSSToLengthConversionData have similar code , but not same. Similar
> conversion APIs are available for other CSS units in SVGLengthContext.cpp.
>
>
https://codereview.chromium.org/1544543003/diff/1/third_party/WebKit/Source/c...
> File third_party/WebKit/Source/core/svg/SVGLengthContext.cpp (right):
>
>
https://codereview.chromium.org/1544543003/diff/1/third_party/WebKit/Source/c...
> third_party/WebKit/Source/core/svg/SVGLengthContext.cpp:113: }
> On 2015/12/22 16:41:49, rwlbuis wrote:
> > You can probably unify above two by passing a dimension, instead or
> > width/height. For instance something like a float widthOrHeight param.
>
> Done.
I meant combining the two functions into one, and giving it a float
widthOrHeight param.
The current solution is hard to read IMHO.
Shanmuga Pandi
Updated. Hope it is Okay now :)
4 years, 12 months ago
(2015-12-28 06:51:15 UTC)
#8
4 years, 11 months ago
(2016-01-04 07:07:21 UTC)
#10
PTAL !!
fs
Looks ok. Some suggested improvements follow. (Also, add a space in "viewportunits" in subject/description?) https://codereview.chromium.org/1544543003/diff/60001/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGLength-viewport-units.js ...
4 years, 11 months ago
(2016-01-04 19:40:05 UTC)
#11
Description was changed from ========== Adding support of viewportunits to SVG Adding support of viewport ...
4 years, 11 months ago
(2016-01-05 10:01:00 UTC)
#12
Description was changed from
==========
Adding support of viewportunits to SVG
Adding support of viewport units such as vw, vh, vmin, vmax
to SVGLength
BUG=368598
==========
to
==========
Adding support of viewport units to SVG
Adding support of viewport units such as vw, vh, vmin, vmax
to SVGLength
BUG=368598
==========
Shanmuga Pandi
Thanks for the review and helping to improve the patch. Done the changes. Happy new ...
4 years, 11 months ago
(2016-01-05 10:04:49 UTC)
#13
Thanks for the review and helping to improve the patch.
Done the changes.
Happy new year :)
https://codereview.chromium.org/1544543003/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/svg/SVGLengthContext.cpp (right):
https://codereview.chromium.org/1544543003/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/svg/SVGLengthContext.cpp:376: switch (toUnit) {
On 2016/01/04 19:40:05, fs (OoO) wrote:
> I think this would be slightly if it was using same approach as
dimensionForMode
> - i.e have a helper that returns either the viewport width/height/min/man and
> then apply that to |value| as needed. Should get rid of the duplication
between
> the "From" and "To" cases.
Done.
fs
On 2016/01/05 at 10:04:49, shanmuga.m wrote: > Thanks for the review and helping to improve ...
4 years, 11 months ago
(2016-01-07 09:29:14 UTC)
#14
On 2016/01/05 at 10:04:49, shanmuga.m wrote:
> Thanks for the review and helping to improve the patch.
> Done the changes.
>
> Happy new year :)
Likewise!
LGTM
Shanmuga Pandi
The CQ bit was checked by shanmuga.m@samsung.com
4 years, 11 months ago
(2016-01-07 09:31:59 UTC)
#15
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544543003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544543003/80001
4 years, 11 months ago
(2016-01-07 09:32:38 UTC)
#16
Description was changed from ========== Adding support of viewport units to SVG Adding support of ...
4 years, 11 months ago
(2016-01-07 10:48:03 UTC)
#17
Message was sent while issue was closed.
Description was changed from
==========
Adding support of viewport units to SVG
Adding support of viewport units such as vw, vh, vmin, vmax
to SVGLength
BUG=368598
==========
to
==========
Adding support of viewport units to SVG
Adding support of viewport units such as vw, vh, vmin, vmax
to SVGLength
BUG=368598
==========
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago
(2016-01-07 10:48:04 UTC)
#18
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
commit-bot: I haz the power
Description was changed from ========== Adding support of viewport units to SVG Adding support of ...
4 years, 11 months ago
(2016-01-07 10:48:58 UTC)
#19
Message was sent while issue was closed.
Description was changed from
==========
Adding support of viewport units to SVG
Adding support of viewport units such as vw, vh, vmin, vmax
to SVGLength
BUG=368598
==========
to
==========
Adding support of viewport units to SVG
Adding support of viewport units such as vw, vh, vmin, vmax
to SVGLength
BUG=368598
Committed: https://crrev.com/c864b01c55de4e1bb440600edeec7e6e9f76ec0a
Cr-Commit-Position: refs/heads/master@{#368047}
==========
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/c864b01c55de4e1bb440600edeec7e6e9f76ec0a Cr-Commit-Position: refs/heads/master@{#368047}
4 years, 11 months ago
(2016-01-07 10:48:58 UTC)
#20
Issue 1544543003: Adding support of viewport units to SVG
(Closed)
Created 5 years ago by Shanmuga Pandi
Modified 4 years, 11 months ago
Reviewers: fs, Erik Dahlström, pdr., rwlbuis
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 9