Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 if (ec) | 108 if (ec) |
| 109 return; | 109 return; |
| 110 ASSERT(!key.isNull()); | 110 ASSERT(!key.isNull()); |
| 111 String val = getItem(key, ec); | 111 String val = getItem(key, ec); |
| 112 if (ec) | 112 if (ec) |
| 113 return; | 113 return; |
| 114 names[i] = key; | 114 names[i] = key; |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 | 117 |
| 118 bool Storage::namedPropertyQuery(const AtomicString& name, int& returnValue, Exc eptionCode& ec) | |
| 119 { | |
| 120 if (name == "length") | |
|
haraken
2013/06/17 07:41:02
It's OK to leave this check in this CL, but this c
kojih
2013/06/17 07:52:57
I agree.
| |
| 121 return false; | |
| 122 bool found = contains(name, ec); | |
| 123 if (ec || !found) | |
| 124 return false; | |
| 125 returnValue = 0; | |
| 126 return true; | |
| 118 } | 127 } |
| 128 | |
| 129 } | |
| OLD | NEW |