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