| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #include "core/dom/Range.h" | 40 #include "core/dom/Range.h" |
| 41 #include "core/editing/FrameSelection.h" | 41 #include "core/editing/FrameSelection.h" |
| 42 #include "core/editing/PlainTextRange.h" | 42 #include "core/editing/PlainTextRange.h" |
| 43 #include "core/editing/iterators/TextIterator.h" | 43 #include "core/editing/iterators/TextIterator.h" |
| 44 #include "core/frame/FrameView.h" | 44 #include "core/frame/FrameView.h" |
| 45 #include "core/frame/LocalFrame.h" | 45 #include "core/frame/LocalFrame.h" |
| 46 #include "core/frame/VisualViewport.h" | 46 #include "core/frame/VisualViewport.h" |
| 47 #include "core/html/HTMLElement.h" | 47 #include "core/html/HTMLElement.h" |
| 48 #include "core/layout/HitTestResult.h" | 48 #include "core/layout/HitTestResult.h" |
| 49 #include "core/layout/LayoutObject.h" | 49 #include "core/layout/LayoutObject.h" |
| 50 #include "core/page/PAge.h" | 50 #include "core/page/Page.h" |
| 51 #include "core/style/ComputedStyle.h" | 51 #include "core/style/ComputedStyle.h" |
| 52 #include "platform/fonts/Font.h" | 52 #include "platform/fonts/Font.h" |
| 53 #include "platform/mac/ColorMac.h" | 53 #include "platform/mac/ColorMac.h" |
| 54 #include "public/platform/WebRect.h" | 54 #include "public/platform/WebRect.h" |
| 55 #include "public/web/WebFrameWidget.h" | 55 #include "public/web/WebFrameWidget.h" |
| 56 #include "public/web/WebHitTestResult.h" | 56 #include "public/web/WebHitTestResult.h" |
| 57 #include "public/web/WebLocalFrame.h" | 57 #include "public/web/WebLocalFrame.h" |
| 58 #include "public/web/WebRange.h" | 58 #include "public/web/WebRange.h" |
| 59 #include "web/WebFrameWidgetBase.h" | 59 #include "web/WebFrameWidgetBase.h" |
| 60 #include "web/WebLocalFrameImpl.h" | 60 #include "web/WebLocalFrameImpl.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 return nil; | 210 return nil; |
| 211 | 211 |
| 212 NSAttributedString* result = attributedSubstringFromRange( | 212 NSAttributedString* result = attributedSubstringFromRange( |
| 213 ephemeralRange, frame->page()->visualViewport().scale()); | 213 ephemeralRange, frame->page()->visualViewport().scale()); |
| 214 if (baselinePoint) | 214 if (baselinePoint) |
| 215 *baselinePoint = getBaselinePoint(frame->view(), ephemeralRange, result); | 215 *baselinePoint = getBaselinePoint(frame->view(), ephemeralRange, result); |
| 216 return result; | 216 return result; |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace blink | 219 } // namespace blink |
| OLD | NEW |