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

Issue 115693002: Remove several calls to Page::mainFrame (Closed)

Created:
7 years ago by eseidel
Modified:
7 years ago
Reviewers:
abarth-chromium
CC:
blink-reviews, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, Nils Barth (inactive), caseq+blink_chromium.org, Nate Chapin, arv+blink, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, devtools-reviews_chromium.org, kenneth.christiansen, loislo+blink_chromium.org, sof, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, darktears, haraken, kojih, jsbell+bindings_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman, Inactive, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Remove several calls to Page::mainFrame All of these callers either didn't need to use the mainFrame (as in the case of the MediaQuery functions which called PlatformScreen functions which already jumped to the top-most Widget automatically) or could get the information they need by asking the Frame directly. There were a couple cases in the inspector where checking Frame::isMainFrame() wouldn't be identical, so I've left those as FIXMEs for now. R=abarth@chromium.org BUG=305811 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163921

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -12 lines) Patch
M Source/bindings/v8/custom/V8WindowCustom.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/css/MediaQueryEvaluator.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorDatabaseAgent.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
eseidel
Adding pfeldman to see the FIXMEs go by.
7 years ago (2013-12-14 01:10:56 UTC) #1
eseidel
7 years ago (2013-12-14 01:11:16 UTC) #2
abarth-chromium
lgtm
7 years ago (2013-12-15 06:06:18 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eseidel@chromium.org/115693002/1
7 years ago (2013-12-15 06:06:25 UTC) #4
commit-bot: I haz the power
7 years ago (2013-12-15 07:15:40 UTC) #5
Message was sent while issue was closed.
Change committed as 163921

Powered by Google App Engine
This is Rietveld 408576698