| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Motorola Mobility Inc. | 3 * Copyright (C) 2012 Motorola Mobility Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 void DOMURL::update() { | 101 void DOMURL::update() { |
| 102 updateSearchParams(url().query()); | 102 updateSearchParams(url().query()); |
| 103 } | 103 } |
| 104 | 104 |
| 105 void DOMURL::updateSearchParams(const String& queryString) { | 105 void DOMURL::updateSearchParams(const String& queryString) { |
| 106 if (!m_searchParams) | 106 if (!m_searchParams) |
| 107 return; | 107 return; |
| 108 | 108 |
| 109 AutoReset<bool> scope(&m_isInUpdate, true); | 109 AutoReset<bool> scope(&m_isInUpdate, true); |
| 110 ASSERT(m_searchParams->urlObject() == this); | 110 #if DCHECK_IS_ON() |
| 111 DCHECK_EQ(m_searchParams->urlObject(), this); |
| 112 #endif |
| 111 m_searchParams->setInput(queryString); | 113 m_searchParams->setInput(queryString); |
| 112 } | 114 } |
| 113 | 115 |
| 114 } // namespace blink | 116 } // namespace blink |
| OLD | NEW |