| 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 2394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2405 return frame() | 2405 return frame() |
| 2406 ->frameScheduler() | 2406 ->frameScheduler() |
| 2407 ->unthrottledTaskRunner() | 2407 ->unthrottledTaskRunner() |
| 2408 ->toSingleThreadTaskRunner(); | 2408 ->toSingleThreadTaskRunner(); |
| 2409 } | 2409 } |
| 2410 | 2410 |
| 2411 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { | 2411 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { |
| 2412 return m_inputMethodController.get(); | 2412 return m_inputMethodController.get(); |
| 2413 } | 2413 } |
| 2414 | 2414 |
| 2415 void* WebLocalFrameImpl::frameIdForTracing() const { |
| 2416 return frame(); |
| 2417 } |
| 2418 |
| 2415 void WebLocalFrameImpl::extractSmartClipData(WebRect rectInViewport, | 2419 void WebLocalFrameImpl::extractSmartClipData(WebRect rectInViewport, |
| 2416 WebString& clipText, | 2420 WebString& clipText, |
| 2417 WebString& clipHtml) { | 2421 WebString& clipHtml) { |
| 2418 SmartClipData clipData = SmartClip(frame()).dataForRect(rectInViewport); | 2422 SmartClipData clipData = SmartClip(frame()).dataForRect(rectInViewport); |
| 2419 clipText = clipData.clipData(); | 2423 clipText = clipData.clipData(); |
| 2420 | 2424 |
| 2421 WebPoint startPoint(rectInViewport.x, rectInViewport.y); | 2425 WebPoint startPoint(rectInViewport.x, rectInViewport.y); |
| 2422 WebPoint endPoint(rectInViewport.x + rectInViewport.width, | 2426 WebPoint endPoint(rectInViewport.x + rectInViewport.width, |
| 2423 rectInViewport.y + rectInViewport.height); | 2427 rectInViewport.y + rectInViewport.height); |
| 2424 VisiblePosition startVisiblePosition = | 2428 VisiblePosition startVisiblePosition = |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2438 createMarkup(startPosition, endPosition, AnnotateForInterchange, | 2442 createMarkup(startPosition, endPosition, AnnotateForInterchange, |
| 2439 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); | 2443 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); |
| 2440 } else { | 2444 } else { |
| 2441 clipHtml = | 2445 clipHtml = |
| 2442 createMarkup(endPosition, startPosition, AnnotateForInterchange, | 2446 createMarkup(endPosition, startPosition, AnnotateForInterchange, |
| 2443 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); | 2447 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); |
| 2444 } | 2448 } |
| 2445 } | 2449 } |
| 2446 | 2450 |
| 2447 } // namespace blink | 2451 } // namespace blink |
| OLD | NEW |