| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 WebViewImpl* AutoFillPopupMenuClient::getWebView() const | 351 WebViewImpl* AutoFillPopupMenuClient::getWebView() const |
| 352 { | 352 { |
| 353 Frame* frame = m_textField->document()->frame(); | 353 Frame* frame = m_textField->document()->frame(); |
| 354 if (!frame) | 354 if (!frame) |
| 355 return 0; | 355 return 0; |
| 356 | 356 |
| 357 Page* page = frame->page(); | 357 Page* page = frame->page(); |
| 358 if (!page) | 358 if (!page) |
| 359 return 0; | 359 return 0; |
| 360 | 360 |
| 361 return static_cast<ChromeClientImpl*>(page->chrome()->client())->webView(); | 361 return static_cast<WebViewImpl*>(page->chrome()->client()->webView()); |
| 362 } | 362 } |
| 363 | 363 |
| 364 RenderStyle* AutoFillPopupMenuClient::textFieldStyle() const | 364 RenderStyle* AutoFillPopupMenuClient::textFieldStyle() const |
| 365 { | 365 { |
| 366 RenderStyle* style = m_textField->computedStyle(); | 366 RenderStyle* style = m_textField->computedStyle(); |
| 367 if (!style) { | 367 if (!style) { |
| 368 // It seems we can only have a 0 style in a TextField if the | 368 // It seems we can only have a 0 style in a TextField if the |
| 369 // node is detached, in which case we the popup should not be | 369 // node is detached, in which case we the popup should not be |
| 370 // showing. Please report this in http://crbug.com/7708 and | 370 // showing. Please report this in http://crbug.com/7708 and |
| 371 // include the page you were visiting. | 371 // include the page you were visiting. |
| 372 ASSERT_NOT_REACHED(); | 372 ASSERT_NOT_REACHED(); |
| 373 } | 373 } |
| 374 return style; | 374 return style; |
| 375 } | 375 } |
| 376 | 376 |
| 377 } // namespace WebKit | 377 } // namespace WebKit |
| OLD | NEW |