| 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 2582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2593 clip_html = | 2593 clip_html = |
| 2594 CreateMarkup(start_position, end_position, kAnnotateForInterchange, | 2594 CreateMarkup(start_position, end_position, kAnnotateForInterchange, |
| 2595 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); | 2595 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); |
| 2596 } else { | 2596 } else { |
| 2597 clip_html = | 2597 clip_html = |
| 2598 CreateMarkup(end_position, start_position, kAnnotateForInterchange, | 2598 CreateMarkup(end_position, start_position, kAnnotateForInterchange, |
| 2599 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); | 2599 ConvertBlocksToInlines::kNotConvert, kResolveNonLocalURLs); |
| 2600 } | 2600 } |
| 2601 } | 2601 } |
| 2602 | 2602 |
| 2603 void WebLocalFrameImpl::AdvanceFocusInForm(WebFocusType focus_type) { |
| 2604 DCHECK(GetFrame()->GetDocument()); |
| 2605 Element* element = GetFrame()->GetDocument()->FocusedElement(); |
| 2606 if (!element) |
| 2607 return; |
| 2608 |
| 2609 Element* next_element = |
| 2610 GetFrame()->GetPage()->GetFocusController().NextFocusableElementInForm( |
| 2611 element, focus_type); |
| 2612 if (!next_element) |
| 2613 return; |
| 2614 |
| 2615 next_element->scrollIntoViewIfNeeded(true /*centerIfNeeded*/); |
| 2616 next_element->focus(); |
| 2617 } |
| 2618 |
| 2603 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { | 2619 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { |
| 2604 return *text_checker_client_; | 2620 return *text_checker_client_; |
| 2605 } | 2621 } |
| 2606 | 2622 |
| 2607 void WebLocalFrameImpl::SetTextCheckClient( | 2623 void WebLocalFrameImpl::SetTextCheckClient( |
| 2608 WebTextCheckClient* text_check_client) { | 2624 WebTextCheckClient* text_check_client) { |
| 2609 text_check_client_ = text_check_client; | 2625 text_check_client_ = text_check_client; |
| 2610 } | 2626 } |
| 2611 | 2627 |
| 2612 } // namespace blink | 2628 } // namespace blink |
| OLD | NEW |