Clean up HTMLObjectElement/HTMLEmbedElement layoutObjectIsNeeded
commitaa4ec885cfecc5e13594b6b5b33c3e14f307f08e
authorrob.buis@samsung.com <rob.buis@samsung.com>
Sat, 7 Mar 2015 00:29:38 +0000 (7 00:29 +0000)
committerrob.buis@samsung.com <rob.buis@samsung.com>
Sat, 7 Mar 2015 00:29:38 +0000 (7 00:29 +0000)
tree4da5c14aeac7b59e74b88b2c5e50adb4ec08825e
parent85431eb86e81374c5317e7477d6d72f726e2be47
Clean up HTMLObjectElement/HTMLEmbedElement layoutObjectIsNeeded

LayoutObjectIsNeeded is only called by shouldCreateRenderer, which is only
called by createLayoutObjectIfNeeded, which is only called by
Element::attach, which checks that the Document is in style recalc, so
not in detached state. This means we can remove the frame() checks as
the FIXME indicates.

Review URL: https://codereview.chromium.org/980273005

git-svn-id: svn://svn.chromium.org/blink/trunk@191463 bbb929c8-8fbe-4397-9dbb-9b2b20218538
third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp
third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
third_party/WebKit/Source/core/html/HTMLObjectElement.h