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 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1920 ownerDocument); | 1920 ownerDocument); |
1921 } | 1921 } |
1922 | 1922 |
1923 HitTestResult WebLocalFrameImpl::hitTestResultForVisualViewportPos( | 1923 HitTestResult WebLocalFrameImpl::hitTestResultForVisualViewportPos( |
1924 const IntPoint& posInViewport) { | 1924 const IntPoint& posInViewport) { |
1925 IntPoint rootFramePoint( | 1925 IntPoint rootFramePoint( |
1926 frame()->page()->visualViewport().viewportToRootFrame(posInViewport)); | 1926 frame()->page()->visualViewport().viewportToRootFrame(posInViewport)); |
1927 IntPoint docPoint(frame()->view()->rootFrameToContents(rootFramePoint)); | 1927 IntPoint docPoint(frame()->view()->rootFrameToContents(rootFramePoint)); |
1928 HitTestResult result = frame()->eventHandler().hitTestResultAtPoint( | 1928 HitTestResult result = frame()->eventHandler().hitTestResultAtPoint( |
1929 docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); | 1929 docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); |
1930 result.setToShadowHostIfInUserAgentShadowRoot(); | 1930 result.setToShadowHostIfInRestrictedShadowRoot(); |
1931 return result; | 1931 return result; |
1932 } | 1932 } |
1933 | 1933 |
1934 static void ensureFrameLoaderHasCommitted(FrameLoader& frameLoader) { | 1934 static void ensureFrameLoaderHasCommitted(FrameLoader& frameLoader) { |
1935 // Internally, Blink uses CommittedMultipleRealLoads to track whether the | 1935 // Internally, Blink uses CommittedMultipleRealLoads to track whether the |
1936 // next commit should create a new history item or not. Ensure we have | 1936 // next commit should create a new history item or not. Ensure we have |
1937 // reached that state. | 1937 // reached that state. |
1938 if (frameLoader.stateMachine()->committedMultipleRealLoads()) | 1938 if (frameLoader.stateMachine()->committedMultipleRealLoads()) |
1939 return; | 1939 return; |
1940 frameLoader.stateMachine()->advanceTo( | 1940 frameLoader.stateMachine()->advanceTo( |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2463 createMarkup(startPosition, endPosition, AnnotateForInterchange, | 2463 createMarkup(startPosition, endPosition, AnnotateForInterchange, |
2464 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); | 2464 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); |
2465 } else { | 2465 } else { |
2466 clipHtml = | 2466 clipHtml = |
2467 createMarkup(endPosition, startPosition, AnnotateForInterchange, | 2467 createMarkup(endPosition, startPosition, AnnotateForInterchange, |
2468 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); | 2468 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); |
2469 } | 2469 } |
2470 } | 2470 } |
2471 | 2471 |
2472 } // namespace blink | 2472 } // namespace blink |
OLD | NEW |