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

Issue 2188483004: Remove extraneous frameView->setNeedsLayout() in LayoutPart (Closed)

Created:
4 years, 4 months ago by trchen
Modified:
4 years, 4 months ago
Reviewers:
bokan
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove extraneous frameView->setNeedsLayout() in LayoutPart This CL is one step towards having saner pixel snapping for sub-frames. The goal is to remove dependencies to roundedIntRect, which is conceptually incorrect and is inconsistent with other part of our code base. The setNeedsLayout is extraneous because LayoutPart is not supposed to know whether the sub-frame actually changed its layout size, and the FrameView is responsible for scheduling layout if it decided to mutate layout size. Committed: https://crrev.com/6f72ce705eea7d49483b1cc75439260ebde643c4 Cr-Commit-Position: refs/heads/master@{#408529}

Patch Set 1 #

Patch Set 2 : remove bogus test #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -63 lines) Patch
M third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp View 1 1 chunk +0 lines, -34 lines 4 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 3 chunks +9 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutPart.cpp View 1 chunk +1 line, -11 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
trchen
4 years, 4 months ago (2016-07-27 22:58:04 UTC) #2
trchen
https://codereview.chromium.org/2188483004/diff/20001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp File third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp (left): https://codereview.chromium.org/2188483004/diff/20001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp#oldcode129 third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp:129: EXPECT_EQ(startCount, layoutCount()); This is bogus. Resizing the frame would ...
4 years, 4 months ago (2016-07-28 00:04:36 UTC) #3
bokan
love it. lgtm. https://codereview.chromium.org/2188483004/diff/20001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp File third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp (left): https://codereview.chromium.org/2188483004/diff/20001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp#oldcode129 third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp:129: EXPECT_EQ(startCount, layoutCount()); On 2016/07/28 00:04:36, trchen ...
4 years, 4 months ago (2016-07-28 13:24:56 UTC) #5
trchen
https://codereview.chromium.org/2188483004/diff/20001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp File third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp (left): https://codereview.chromium.org/2188483004/diff/20001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp#oldcode129 third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp:129: EXPECT_EQ(startCount, layoutCount()); On 2016/07/28 13:24:56, bokan wrote: > On ...
4 years, 4 months ago (2016-07-28 22:45:54 UTC) #6
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/2188483004/20001
4 years, 4 months ago (2016-07-28 22:46:22 UTC) #8
bokan
https://codereview.chromium.org/2188483004/diff/20001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp File third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp (left): https://codereview.chromium.org/2188483004/diff/20001/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp#oldcode129 third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp:129: EXPECT_EQ(startCount, layoutCount()); On 2016/07/28 22:45:54, trchen wrote: > On ...
4 years, 4 months ago (2016-07-28 22:48:41 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-29 00:20:28 UTC) #11
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 00:25:26 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6f72ce705eea7d49483b1cc75439260ebde643c4
Cr-Commit-Position: refs/heads/master@{#408529}

Powered by Google App Engine
This is Rietveld 408576698