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

Issue 1679743006: Expand IntrinsicSizingInfo for SVG (Closed)

Created:
4 years, 10 months ago by davve
Modified:
4 years, 10 months ago
Reviewers:
fs
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@propagate-whether-svg-has
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expand IntrinsicSizingInfo for SVG Add fields to IntrinsicSizingInfo specifying whether the intrinsic width and height are specified or not. For SVGs there is a distinction between missing width/height and setting width/height to 0. There is code in LayoutReplaced that has specific hooks into the SVG code to make this distinction. By having separate fields in IntrinsicSizingInfo this entanglement can be broken. BUG=585467 Committed: https://crrev.com/a0ec285a1629a9d7a3c62517d4c62106a02fbf70 Cr-Commit-Position: refs/heads/master@{#374909}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Make calculateIntrinsicSize compilation unit local and turn around emptyWidth/Height #

Patch Set 3 : Zero means zero #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -64 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutReplaced.cpp View 1 2 8 chunks +8 lines, -42 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp View 1 3 chunks +24 lines, -19 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (3 generated)
davve
4 years, 10 months ago (2016-02-09 17:38:52 UTC) #2
fs
LGTM w/ nit and suggestion https://codereview.chromium.org/1679743006/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp File third_party/WebKit/Source/core/layout/LayoutReplaced.cpp (right): https://codereview.chromium.org/1679743006/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp#newcode559 third_party/WebKit/Source/core/layout/LayoutReplaced.cpp:559: bool hasIntrinsicWidth = !intrinsicSizingInfo.emptyWidth; ...
4 years, 10 months ago (2016-02-09 18:37:54 UTC) #3
davve
https://codereview.chromium.org/1679743006/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp File third_party/WebKit/Source/core/layout/LayoutReplaced.cpp (right): https://codereview.chromium.org/1679743006/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp#newcode559 third_party/WebKit/Source/core/layout/LayoutReplaced.cpp:559: bool hasIntrinsicWidth = !intrinsicSizingInfo.emptyWidth; On 2016/02/09 18:37:54, fs wrote: ...
4 years, 10 months ago (2016-02-11 08:52:37 UTC) #4
fs
On 2016/02/11 at 08:52:37, davve wrote: > https://codereview.chromium.org/1679743006/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp > File third_party/WebKit/Source/core/layout/LayoutReplaced.cpp (right): > > https://codereview.chromium.org/1679743006/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp#newcode559 ...
4 years, 10 months ago (2016-02-11 09:22:45 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1679743006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1679743006/40001
4 years, 10 months ago (2016-02-11 15:29:59 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-11 16:45:19 UTC) #8
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:35:54 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a0ec285a1629a9d7a3c62517d4c62106a02fbf70
Cr-Commit-Position: refs/heads/master@{#374909}

Powered by Google App Engine
This is Rietveld 408576698