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

Unified Diff: Source/core/dom/ClientRectList.cpp

Issue 964133002: Document the ClientRect* vs DOMRect* situation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | « Source/core/dom/ClientRectList.h ('k') | Source/core/dom/ClientRectList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ClientRectList.cpp
diff --git a/Source/core/dom/ClientRectList.cpp b/Source/core/dom/ClientRectList.cpp
index 1ab6d6f16254081bcad86270a44331f15ebaac0c..88837112ba3fc504f25c4647e3e65fd41476c06c 100644
--- a/Source/core/dom/ClientRectList.cpp
+++ b/Source/core/dom/ClientRectList.cpp
@@ -51,11 +51,8 @@ unsigned ClientRectList::length() const
ClientRect* ClientRectList::item(unsigned index)
{
- if (index >= m_list.size()) {
- // FIXME: this should throw an exception.
- // ec = IndexSizeError;
+ if (index >= m_list.size())
return 0;
- }
return m_list[index].get();
}
« no previous file with comments | « Source/core/dom/ClientRectList.h ('k') | Source/core/dom/ClientRectList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698