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

Issue 2709263003: Removed FrameHost::settings() (Closed)

Created:
3 years, 10 months ago by sashab
Modified:
3 years, 10 months ago
Reviewers:
haraken, slangley, dcheng
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dcheng, dglazkov+blink, kinuko+watch, mlamouri+watch-blink_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removed FrameHost::settings() Removed the FrameHost::settings() method, and redirected calls to Page::settings() using FrameHost's Page reference, or directly on the Page object if it is available. This is part of the work to merge FrameHost back into Page. BUG=691794 Review-Url: https://codereview.chromium.org/2709263003 Cr-Commit-Position: refs/heads/master@{#452774} Committed: https://chromium.googlesource.com/chromium/src/+/616d2f430dc084729f71b275408df8ae9555f629

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed comment saying that functionality will eventually be removed #

Patch Set 3 : Switched back to Page getter style #

Patch Set 4 : Switched back to Page style getter #

Patch Set 5 : Replaced host()->page().settings() with just page().settings() where possible #

Total comments: 2

Patch Set 6 : Switched if statement to use page #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -89 lines) Patch
M third_party/WebKit/Source/core/css/MediaValues.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Frame.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameHost.h View 1 3 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameHost.cpp View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 12 chunks +37 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Screen.cpp View 1 2 3 4 3 chunks +31 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (23 generated)
sashab
slangley ptal; Question for dcheng https://codereview.chromium.org/2709263003/diff/1/third_party/WebKit/Source/core/page/Page.h File third_party/WebKit/Source/core/page/Page.h (right): https://codereview.chromium.org/2709263003/diff/1/third_party/WebKit/Source/core/page/Page.h#newcode177 third_party/WebKit/Source/core/page/Page.h:177: const Settings& settings() const ...
3 years, 10 months ago (2017-02-23 05:01:11 UTC) #2
dcheng
https://codereview.chromium.org/2709263003/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp File third_party/WebKit/Source/core/css/MediaValues.cpp (right): https://codereview.chromium.org/2709263003/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp#newcode92 third_party/WebKit/Source/core/css/MediaValues.cpp:92: return frame->host()->page().settings().getDefaultFontSize(); Here and elsewhere, host()->page() should just be ...
3 years, 10 months ago (2017-02-23 05:26:10 UTC) #8
haraken
On 2017/02/23 05:26:10, dcheng wrote: > https://codereview.chromium.org/2709263003/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp > File third_party/WebKit/Source/core/css/MediaValues.cpp (right): > > https://codereview.chromium.org/2709263003/diff/1/third_party/WebKit/Source/core/css/MediaValues.cpp#newcode92 > ...
3 years, 10 months ago (2017-02-23 09:02:22 UTC) #14
sashab
Thanks dcheng & haraken! Great idea. Updated the CL and I think I got everywhere, ...
3 years, 10 months ago (2017-02-24 01:14:47 UTC) #18
slangley
lgtm
3 years, 10 months ago (2017-02-24 01:53:18 UTC) #19
dcheng
lgtm
3 years, 10 months ago (2017-02-24 02:01:02 UTC) #20
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/2709263003/80001
3 years, 10 months ago (2017-02-24 03:02:50 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/372022)
3 years, 10 months ago (2017-02-24 03:13:42 UTC) #26
sashab
+haraken who is modules/ OWNER
3 years, 10 months ago (2017-02-24 04:28:00 UTC) #28
haraken
LGTM https://codereview.chromium.org/2709263003/diff/80001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2709263003/diff/80001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode950 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:950: FrameHost* host = frame()->host(); Can you remove this ...
3 years, 10 months ago (2017-02-24 04:37:18 UTC) #29
sashab
https://codereview.chromium.org/2709263003/diff/80001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2709263003/diff/80001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode950 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:950: FrameHost* host = frame()->host(); On 2017/02/24 at 04:37:18, haraken ...
3 years, 10 months ago (2017-02-24 04:41:53 UTC) #30
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/2709263003/100001
3 years, 10 months ago (2017-02-24 04:42:17 UTC) #33
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 06:29:15 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/616d2f430dc084729f71b275408d...

Powered by Google App Engine
This is Rietveld 408576698