Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1826 if (m_textFinder && m_textFinder->scopingInProgress()) { | 1826 if (m_textFinder && m_textFinder->scopingInProgress()) { |
| 1827 | 1827 |
| 1828 // There is a possibility that the frame being detached was the only | 1828 // There is a possibility that the frame being detached was the only |
| 1829 // pending one. We need to make sure final replies can be sent. | 1829 // pending one. We need to make sure final replies can be sent. |
| 1830 m_textFinder->flushCurrentScoping(); | 1830 m_textFinder->flushCurrentScoping(); |
| 1831 | 1831 |
| 1832 m_textFinder->cancelPendingScopingEffort(); | 1832 m_textFinder->cancelPendingScopingEffort(); |
| 1833 } | 1833 } |
| 1834 } | 1834 } |
| 1835 | 1835 |
| 1836 void WebLocalFrameImpl::removeSpellingMarkersUnderWords(const WebVector<WebStrin g>& words) | |
| 1837 { | |
| 1838 Vector<String> transformedWords(words.size()); | |
| 1839 for (size_t i = 0; i < words.size(); ++i) | |
| 1840 transformedWords[i] = static_cast<String>(words[i]); | |
|
dcheng
2014/08/05 20:30:39
Why do you need the static cast? WebString should
Klemen Forstnerič
2014/08/07 17:47:28
Done.
| |
| 1841 | |
| 1842 frame()->spellChecker().removeSpellingMarkersUnderWords(transformedWords); | |
| 1843 } | |
| 1844 | |
| 1836 WebLocalFrameImpl* WebLocalFrameImpl::activeMatchFrame() const | 1845 WebLocalFrameImpl* WebLocalFrameImpl::activeMatchFrame() const |
| 1837 { | 1846 { |
| 1838 ASSERT(!parent()); | 1847 ASSERT(!parent()); |
| 1839 | 1848 |
| 1840 if (m_textFinder) | 1849 if (m_textFinder) |
| 1841 return m_textFinder->activeMatchFrame(); | 1850 return m_textFinder->activeMatchFrame(); |
| 1842 return 0; | 1851 return 0; |
| 1843 } | 1852 } |
| 1844 | 1853 |
| 1845 blink::Range* WebLocalFrameImpl::activeMatch() const | 1854 blink::Range* WebLocalFrameImpl::activeMatch() const |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 1869 | 1878 |
| 1870 void WebLocalFrameImpl::invalidateAll() const | 1879 void WebLocalFrameImpl::invalidateAll() const |
| 1871 { | 1880 { |
| 1872 ASSERT(frame() && frame()->view()); | 1881 ASSERT(frame() && frame()->view()); |
| 1873 FrameView* view = frame()->view(); | 1882 FrameView* view = frame()->view(); |
| 1874 view->invalidateRect(view->frameRect()); | 1883 view->invalidateRect(view->frameRect()); |
| 1875 invalidateScrollbar(); | 1884 invalidateScrollbar(); |
| 1876 } | 1885 } |
| 1877 | 1886 |
| 1878 } // namespace blink | 1887 } // namespace blink |
| OLD | NEW |