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

Unified Diff: sky/engine/core/dom/Element.cpp

Issue 928393003: Remove the concept of document.documentElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/Document.idl ('k') | sky/engine/core/dom/Position.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Element.cpp
diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp
index d97f2d2f22168c1c8a000f6af640f661adb22365..276310d3893e6a78c4655683f0792f8b484cce10 100644
--- a/sky/engine/core/dom/Element.cpp
+++ b/sky/engine/core/dom/Element.cpp
@@ -371,12 +371,6 @@ int Element::clientWidth()
{
document().updateLayout();
- // FIXME(sky): Can we just use getBoundingClientRect() instead?
- if (document().documentElement() == this) {
- if (FrameView* view = document().view())
- return view->layoutSize().width();
- }
-
if (RenderBox* renderer = renderBox())
return renderer->pixelSnappedClientWidth();
return 0;
@@ -386,12 +380,6 @@ int Element::clientHeight()
{
document().updateLayout();
- // FIXME(sky): Can we just use getBoundingClientRect() instead?
- if (document().documentElement() == this) {
- if (FrameView* view = document().view())
- return view->layoutSize().height();
- }
-
if (RenderBox* renderer = renderBox())
return renderer->pixelSnappedClientHeight();
return 0;
« no previous file with comments | « sky/engine/core/dom/Document.idl ('k') | sky/engine/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698