| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1911 if (SVGSVGElement* svg = | 1911 if (SVGSVGElement* svg = |
| 1912 SVGDocumentExtensions::rootElement(*frame_->GetDocument())) { | 1912 SVGDocumentExtensions::rootElement(*frame_->GetDocument())) { |
| 1913 svg->SetupInitialView(name, anchor_node); | 1913 svg->SetupInitialView(name, anchor_node); |
| 1914 if (!anchor_node) | 1914 if (!anchor_node) |
| 1915 return true; | 1915 return true; |
| 1916 } | 1916 } |
| 1917 } | 1917 } |
| 1918 | 1918 |
| 1919 // Implement the rule that "" and "top" both mean top of page as in other | 1919 // Implement the rule that "" and "top" both mean top of page as in other |
| 1920 // browsers. | 1920 // browsers. |
| 1921 if (!anchor_node && !(name.IsEmpty() || EqualIgnoringCase(name, "top"))) | 1921 if (!anchor_node && |
| 1922 !(name.IsEmpty() || DeprecatedEqualIgnoringCase(name, "top"))) |
| 1922 return false; | 1923 return false; |
| 1923 | 1924 |
| 1924 if (behavior == kUrlFragmentScroll) | 1925 if (behavior == kUrlFragmentScroll) |
| 1925 SetFragmentAnchor(anchor_node ? static_cast<Node*>(anchor_node) | 1926 SetFragmentAnchor(anchor_node ? static_cast<Node*>(anchor_node) |
| 1926 : frame_->GetDocument()); | 1927 : frame_->GetDocument()); |
| 1927 | 1928 |
| 1928 // If the anchor accepts keyboard focus and fragment scrolling is allowed, | 1929 // If the anchor accepts keyboard focus and fragment scrolling is allowed, |
| 1929 // move focus there to aid users relying on keyboard navigation. | 1930 // move focus there to aid users relying on keyboard navigation. |
| 1930 // If anchorNode is not focusable or fragment scrolling is not allowed, | 1931 // If anchorNode is not focusable or fragment scrolling is not allowed, |
| 1931 // clear focus, which matches the behavior of other browsers. | 1932 // clear focus, which matches the behavior of other browsers. |
| (...skipping 3405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5337 void FrameView::SetAnimationHost( | 5338 void FrameView::SetAnimationHost( |
| 5338 std::unique_ptr<CompositorAnimationHost> host) { | 5339 std::unique_ptr<CompositorAnimationHost> host) { |
| 5339 animation_host_ = std::move(host); | 5340 animation_host_ = std::move(host); |
| 5340 } | 5341 } |
| 5341 | 5342 |
| 5342 LayoutUnit FrameView::CaretWidth() const { | 5343 LayoutUnit FrameView::CaretWidth() const { |
| 5343 return LayoutUnit(GetHostWindow()->WindowToViewportScalar(1)); | 5344 return LayoutUnit(GetHostWindow()->WindowToViewportScalar(1)); |
| 5344 } | 5345 } |
| 5345 | 5346 |
| 5346 } // namespace blink | 5347 } // namespace blink |
| OLD | NEW |