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

Issue 2305893002: Fix svg contentrect location (Closed)

Created:
4 years, 3 months ago by atotic1
Modified:
4 years, 3 months ago
Reviewers:
esprehn, eae
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix svg contentrect location I was not computing entry.contetRect location correctly for <svg> elements. It should be 0,0 BUG=641364 Committed: https://crrev.com/879fbd0230e2bf90bd19a6b03c22f20fd31f46e4 Cr-Commit-Position: refs/heads/master@{#417450}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rework targetSize computation #

Total comments: 1

Patch Set 3 : CR: split up compute & save #

Total comments: 1

Patch Set 4 : const nits #

Patch Set 5 : forgot to fix c++ tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -36 lines) Patch
M third_party/WebKit/LayoutTests/resize-observer/svg.html View 3 chunks +23 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/observer/ResizeObservation.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/observer/ResizeObservation.cpp View 1 2 3 4 2 chunks +21 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/observer/ResizeObserver.cpp View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/observer/ResizeObserverEntry.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/observer/ResizeObserverEntry.cpp View 1 1 chunk +4 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ResizeObserverTest.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
atotic1
Minor fix for ResizeObserver, computing SVG location
4 years, 3 months ago (2016-09-01 22:31:30 UTC) #3
esprehn
https://codereview.chromium.org/2305893002/diff/1/third_party/WebKit/Source/core/observer/ResizeObservation.cpp File third_party/WebKit/Source/core/observer/ResizeObservation.cpp (right): https://codereview.chromium.org/2305893002/diff/1/third_party/WebKit/Source/core/observer/ResizeObservation.cpp#newcode57 third_party/WebKit/Source/core/observer/ResizeObservation.cpp:57: LayoutPoint ResizeObservation::getTargetLocation(Element* target) // static static in the file, ...
4 years, 3 months ago (2016-09-02 00:31:50 UTC) #4
atotic1
On 2016/09/02 at 00:31:50, esprehn wrote: > https://codereview.chromium.org/2305893002/diff/1/third_party/WebKit/Source/core/observer/ResizeObservation.cpp#newcode57 > third_party/WebKit/Source/core/observer/ResizeObservation.cpp:57: LayoutPoint ResizeObservation::getTargetLocation(Element* target) // static ...
4 years, 3 months ago (2016-09-02 18:22:28 UTC) #5
esprehn
If the function is only used in one place it should be in that .cpp ...
4 years, 3 months ago (2016-09-08 19:50:01 UTC) #6
esprehn
https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/core/observer/ResizeObserverEntry.idl There's no constructor exposed there, you cB make ResizeObserverEntry take whatever you want. I'd ...
4 years, 3 months ago (2016-09-08 19:52:41 UTC) #7
atotic1
On 2016/09/08 at 19:50:01, esprehn wrote: > If the function is only used in one ...
4 years, 3 months ago (2016-09-08 20:48:25 UTC) #8
atotic1
New code that refactors LayoutRect calculations is in, review at leisure.
4 years, 3 months ago (2016-09-08 20:49:42 UTC) #9
esprehn
lgtm https://codereview.chromium.org/2305893002/diff/20001/third_party/WebKit/Source/core/observer/ResizeObservation.cpp File third_party/WebKit/Source/core/observer/ResizeObservation.cpp (right): https://codereview.chromium.org/2305893002/diff/20001/third_party/WebKit/Source/core/observer/ResizeObservation.cpp#newcode50 third_party/WebKit/Source/core/observer/ResizeObservation.cpp:50: if (doSave) { I'd split this into two ...
4 years, 3 months ago (2016-09-08 21:40:29 UTC) #10
atotic1
On 2016/09/08 at 21:40:29, esprehn wrote: > lgtm > > https://codereview.chromium.org/2305893002/diff/20001/third_party/WebKit/Source/core/observer/ResizeObservation.cpp > File third_party/WebKit/Source/core/observer/ResizeObservation.cpp (right): ...
4 years, 3 months ago (2016-09-08 21:47:21 UTC) #11
atotic1
compute & save split up. Please review.
4 years, 3 months ago (2016-09-08 21:58:10 UTC) #12
esprehn
lgtm w/ nits https://codereview.chromium.org/2305893002/diff/40001/third_party/WebKit/Source/core/observer/ResizeObservation.cpp File third_party/WebKit/Source/core/observer/ResizeObservation.cpp (right): https://codereview.chromium.org/2305893002/diff/40001/third_party/WebKit/Source/core/observer/ResizeObservation.cpp#newcode57 third_party/WebKit/Source/core/observer/ResizeObservation.cpp:57: LayoutPoint ResizeObservation::computeTargetLocation() const
4 years, 3 months ago (2016-09-08 21:59:18 UTC) #15
atotic1
const fixed.
4 years, 3 months ago (2016-09-08 22:03:25 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2305893002/80001
4 years, 3 months ago (2016-09-08 22:29:59 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 00:35:09 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/879fbd0230e2bf90bd19a6b03c22f20fd31f46e4
Cr-Commit-Position: refs/heads/master@{#417450}

Powered by Google App Engine
This is Rietveld 408576698