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

Issue 19504005: Introduce toHTMLFrameElement (Closed)

Created:
7 years, 5 months ago by kangil_
Modified:
7 years, 5 months ago
Reviewers:
haraken, tkent, dominicc1
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, jchaffraix+rendering, leviw+renderwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Introduce toHTMLFrameElement To avoid direct use of static_cast, this patch introduces toHTMLFrameElement for code cleanup. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154387

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M Source/core/html/HTMLFrameElement.h View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/html/HTMLFrameSetElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderFrame.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 6 (0 generated)
kangil_
review please? :)
7 years, 5 months ago (2013-07-17 07:25:37 UTC) #1
haraken
LGTM
7 years, 5 months ago (2013-07-17 07:26:42 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kangil.han@samsung.com/19504005/1
7 years, 5 months ago (2013-07-17 07:30:59 UTC) #3
commit-bot: I haz the power
Change committed as 154387
7 years, 5 months ago (2013-07-17 09:21:36 UTC) #4
Stephen White
On 2013/07/17 09:21:36, I haz the power (commit-bot) wrote: > Change committed as 154387 This ...
7 years, 5 months ago (2013-07-17 15:47:55 UTC) #5
tkent
7 years, 5 months ago (2013-07-17 21:17:44 UTC) #6
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/19504005/diff/1/Source/core/rendering/...
File Source/core/rendering/RenderLayer.cpp (left):

https://chromiumcodereview.appspot.com/19504005/diff/1/Source/core/rendering/...
Source/core/rendering/RenderLayer.cpp:2247: frameElement =
static_cast<HTMLFrameElement*>(ownerElement);
We have a bad cast here though it is harmless.

ownerElement can be an HTML*I*FrameElement, and the code casts it to
HTMLFrameElement.
|frameElement| and the first argument of frameElementAndViewPermitScroll()
should be HTMLFrameElementBase* instead of HTMLFrameElement*.

Powered by Google App Engine
This is Rietveld 408576698