|
|
Created:
4 years, 9 months ago by hyunjunekim2 Modified:
4 years, 9 months ago CC:
fs, 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@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix textpath is not displayed on use element
If textpath on use element that don't has path on Treescope,
the content of <textPath> element is not displayed.
This reason is that search <path> element on the shadow root.
Because use Treescope of the real element for the id lookup.
BUG=505546
Committed: https://crrev.com/a5e8a760a9457ad814990c5cad81c6dba79d141f
Cr-Commit-Position: refs/heads/master@{#381447}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 4
Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #
Messages
Total messages: 28 (20 generated)
Description was changed from ========== WIP BUG=505546 ========== to ========== Fix textpath is not displayed on use element ... BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element ... BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope(shadow tree), the content of text path is not displayed. BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope(shadow tree), the content of text path is not displayed. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope(shadow tree), the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope(shadow tree), the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope(shadow tree), the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope(shadow tree), the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. And the path data coordinates within the referenced <path> element are assumed to be in the same coordinate system as the current <text> element, not in the coordinate system where the <path> element is defined[1]. [1] BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. And the path data coordinates within the referenced <path> element are assumed to be in the same coordinate system as the current <text> element, not in the coordinate system where the <path> element is defined[1]. [1] BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. And the path data coordinates within the referenced <path> element are assumed to be in the same coordinate system as the current <text> element, not in the coordinate system where the <path> element is defined[1]. [1] BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. And the path data coordinates within the referenced <path> element are assumed to be in the same coordinate system as the current <text> element, not in the coordinate system where the <path> element is defined[1]. [1] BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. And the path data coordinates within the referenced <path> element are assumed to be in the same coordinate system as the current <text> element, not in the coordinate system where the <path> element is defined[1]. [1] BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. And the path data coordinates within the referenced <path> element are assumed to be in the same coordinate system as the current <text> element, not in the coordinate system where the <path> element is defined[1]. [1] BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. And the path data coordinates within the referenced <path> element are assumed to be in the same coordinate system as the current <text> element, not in the coordinate system where the <path> element is defined[1]. [1] https://www.w3.org/TR/SVG/text.html#TextPathElementHrefAttribute BUG=505546 ==========
hyunjune.kim@samsung.com changed reviewers: + fs@opera.com, pdr@chromium.org
fs, pdr Could you check PS3?
I think the approach look reasonable, but I'd like to hear pdr's opinion on it too. > Because shouldn't search in the same coordinate system > as the current <text> element. > > And the path data coordinates within the referenced <path> element > are assumed to be in the same coordinate system as the current <text> > element, not in the coordinate system where the <path> element > is defined[1]. > > [1] https://www.w3.org/TR/SVG/text.html#TextPathElementHrefAttribute None of this is relevant to the problem or the fix. Suggest you remove and replace with something that is relevant. (I.e which tree scope is used for the id lookup.) https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp (right): https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp:64: if (textPathElement.inUseShadowTree()) { I think we could simplify this a bit (and preferably move it to a helper so that we can pick one TreeScope& or the other: TreeScope& treeScopeForIdResolution(SVGElement& element) { if (SVGElement* correspondingElement = element.correspondingElement()) return correspondingElement->treeScope(); return element.treeScope(); } https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp (right): https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp:129: if (inUseShadowTree()) { Not sure this is actually needed. When the "real" element changes it will notify the instance - which will then update. If anything we should probably just do nothing here if this is an instance...
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. And the path data coordinates within the referenced <path> element are assumed to be in the same coordinate system as the current <text> element, not in the coordinate system where the <path> element is defined[1]. [1] https://www.w3.org/TR/SVG/text.html#TextPathElementHrefAttribute BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of text path is not displayed. Because shouldn't search in the same coordinate system as the current <text> element. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textpath> element is not displayed. Because searched <path> element on the shadow root. BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textpath> element is not displayed. Because searched <path> element on the shadow root. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textPath> element is not displayed. This reason is that search <path> element on the shadow root. Because BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textPath> element is not displayed. This reason is that search <path> element on the shadow root. Because BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textPath> element is not displayed. This reason is that search <path> element on the shadow root. Because use Treescope of the real element. BUG=505546 ==========
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textPath> element is not displayed. This reason is that search <path> element on the shadow root. Because use Treescope of the real element. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textPath> element is not displayed. This reason is that search <path> element on the shadow root. Because use Treescope of the real element for the id lookup. BUG=505546 ==========
pdr, Could you check this patch? Thank you. https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp (right): https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp:64: if (textPathElement.inUseShadowTree()) { On 2016/03/14 12:54:10, fs (traveling) wrote: > I think we could simplify this a bit (and preferably move it to a helper so that > we can pick one TreeScope& or the other: > > TreeScope& treeScopeForIdResolution(SVGElement& element) > { > if (SVGElement* correspondingElement = element.correspondingElement()) > return correspondingElement->treeScope(); > return element.treeScope(); > } Done. https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp (right): https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp:129: if (inUseShadowTree()) { On 2016/03/14 12:54:10, fs (traveling) wrote: > Not sure this is actually needed. When the "real" element changes it will notify > the instance - which will then update. If anything we should probably just do > nothing here if this is an instance... Change before.
On 2016/03/15 at 23:11:32, hyunjune.kim wrote: > pdr, > Could you check this patch? > Thank you. > > https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... > File third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp (right): > > https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... > third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp:64: if (textPathElement.inUseShadowTree()) { > On 2016/03/14 12:54:10, fs (traveling) wrote: > > I think we could simplify this a bit (and preferably move it to a helper so that > > we can pick one TreeScope& or the other: > > > > TreeScope& treeScopeForIdResolution(SVGElement& element) > > { > > if (SVGElement* correspondingElement = element.correspondingElement()) > > return correspondingElement->treeScope(); > > return element.treeScope(); > > } > > Done. > > https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... > File third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp (right): > > https://codereview.chromium.org/1792673005/diff/40001/third_party/WebKit/Sour... > third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp:129: if (inUseShadowTree()) { > On 2016/03/14 12:54:10, fs (traveling) wrote: > > Not sure this is actually needed. When the "real" element changes it will notify > > the instance - which will then update. If anything we should probably just do > > nothing here if this is an instance... > > Change before. LGTM
pdr, Go ahead.
The CQ bit was checked by hyunjune.kim@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1792673005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1792673005/100001
Message was sent while issue was closed.
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textPath> element is not displayed. This reason is that search <path> element on the shadow root. Because use Treescope of the real element for the id lookup. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textPath> element is not displayed. This reason is that search <path> element on the shadow root. Because use Treescope of the real element for the id lookup. BUG=505546 ==========
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
Message was sent while issue was closed.
Description was changed from ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textPath> element is not displayed. This reason is that search <path> element on the shadow root. Because use Treescope of the real element for the id lookup. BUG=505546 ========== to ========== Fix textpath is not displayed on use element If textpath on use element that don't has path on Treescope, the content of <textPath> element is not displayed. This reason is that search <path> element on the shadow root. Because use Treescope of the real element for the id lookup. BUG=505546 Committed: https://crrev.com/a5e8a760a9457ad814990c5cad81c6dba79d141f Cr-Commit-Position: refs/heads/master@{#381447} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/a5e8a760a9457ad814990c5cad81c6dba79d141f Cr-Commit-Position: refs/heads/master@{#381447} |