FrameView: Tighten widget handling code.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Sep 2013 14:16:31 +0000 (14:16 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Sep 2013 14:16:31 +0000 (14:16 +0000)
commitc5f022148fb9a03527f65be34db8017b07389f3f
treeba4d87106916b2a95cf6db9db0490a908d216c77
parentb694e416006d343039b1adbb69c268c60dddcaba
FrameView: Tighten widget handling code.
<https://webkit.org/b/121155>

Reviewed by Antti Koivisto.

Harden typing in this code to work with RenderEmbeddedObject& instead of RenderObject*.
Functions and members renamed to reflect that they only deal with embedded objects.

* html/HTMLPlugInImageElement.h:
(WebCore::toHTMLPlugInImageElement):

    Add a toHTMLPlugInImageElement that takes an Element&.

* html/HTMLTagNames.in:

    Generate type helpers for applet and embed elements.

* page/FrameView.h:
* page/FrameView.cpp:
(WebCore::FrameView::addEmbeddedObjectToUpdate):
(WebCore::FrameView::removeEmbeddedObjectToUpdate):
(WebCore::FrameView::updateEmbeddedObjects):
(WebCore::FrameView::updateEmbeddedObject):

    Re-ordered this function in early return style. Change locals into references.

* rendering/RenderEmbeddedObject.cpp:
(WebCore::RenderEmbeddedObject::~RenderEmbeddedObject):
(WebCore::RenderEmbeddedObject::layout):
* rendering/RenderSnapshottedPlugIn.cpp:
(WebCore::RenderSnapshottedPlugIn::layout):

    Updated for new FrameView function signatures.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@155524 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLPlugInImageElement.h
Source/WebCore/html/HTMLTagNames.in
Source/WebCore/page/FrameView.cpp
Source/WebCore/page/FrameView.h
Source/WebCore/rendering/RenderEmbeddedObject.cpp
Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp