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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 #include "core/rendering/RenderScrollbar.h" | 63 #include "core/rendering/RenderScrollbar.h" |
64 #include "core/rendering/RenderScrollbarPart.h" | 64 #include "core/rendering/RenderScrollbarPart.h" |
65 #include "core/rendering/RenderTheme.h" | 65 #include "core/rendering/RenderTheme.h" |
66 #include "core/rendering/RenderView.h" | 66 #include "core/rendering/RenderView.h" |
67 #include "core/rendering/RenderWidget.h" | 67 #include "core/rendering/RenderWidget.h" |
68 #include "core/rendering/TextAutosizer.h" | 68 #include "core/rendering/TextAutosizer.h" |
69 #include "core/rendering/compositing/CompositedLayerMapping.h" | 69 #include "core/rendering/compositing/CompositedLayerMapping.h" |
70 #include "core/rendering/compositing/RenderLayerCompositor.h" | 70 #include "core/rendering/compositing/RenderLayerCompositor.h" |
71 #include "core/rendering/style/RenderStyle.h" | 71 #include "core/rendering/style/RenderStyle.h" |
72 #include "core/rendering/svg/RenderSVGRoot.h" | 72 #include "core/rendering/svg/RenderSVGRoot.h" |
73 #include "core/svg/SVGDocument.h" | 73 #include "core/svg/SVGDocumentExtensions.h" |
74 #include "core/svg/SVGSVGElement.h" | 74 #include "core/svg/SVGSVGElement.h" |
75 #include "platform/TraceEvent.h" | 75 #include "platform/TraceEvent.h" |
76 #include "platform/fonts/FontCache.h" | 76 #include "platform/fonts/FontCache.h" |
77 #include "platform/geometry/FloatRect.h" | 77 #include "platform/geometry/FloatRect.h" |
78 #include "platform/graphics/GraphicsContext.h" | 78 #include "platform/graphics/GraphicsContext.h" |
79 #include "platform/graphics/GraphicsLayerDebugInfo.h" | 79 #include "platform/graphics/GraphicsLayerDebugInfo.h" |
80 #include "platform/scroll/ScrollAnimator.h" | 80 #include "platform/scroll/ScrollAnimator.h" |
81 #include "platform/scroll/ScrollbarTheme.h" | 81 #include "platform/scroll/ScrollbarTheme.h" |
82 #include "platform/text/TextStream.h" | 82 #include "platform/text/TextStream.h" |
83 #include "wtf/CurrentTime.h" | 83 #include "wtf/CurrentTime.h" |
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1528 } | 1528 } |
1529 | 1529 |
1530 m_frame->document()->setGotoAnchorNeededAfterStylesheetsLoad(false); | 1530 m_frame->document()->setGotoAnchorNeededAfterStylesheetsLoad(false); |
1531 | 1531 |
1532 Element* anchorNode = m_frame->document()->findAnchor(name); | 1532 Element* anchorNode = m_frame->document()->findAnchor(name); |
1533 | 1533 |
1534 // Setting to null will clear the current target. | 1534 // Setting to null will clear the current target. |
1535 m_frame->document()->setCSSTarget(anchorNode); | 1535 m_frame->document()->setCSSTarget(anchorNode); |
1536 | 1536 |
1537 if (m_frame->document()->isSVGDocument()) { | 1537 if (m_frame->document()->isSVGDocument()) { |
1538 if (SVGSVGElement* svg = toSVGDocument(m_frame->document())->rootElement
()) { | 1538 if (SVGSVGElement* svg = SVGDocumentExtensions::rootElement(*m_frame->do
cument())) { |
1539 svg->setupInitialView(name, anchorNode); | 1539 svg->setupInitialView(name, anchorNode); |
1540 if (!anchorNode) | 1540 if (!anchorNode) |
1541 return true; | 1541 return true; |
1542 } | 1542 } |
1543 } | 1543 } |
1544 | 1544 |
1545 // Implement the rule that "" and "top" both mean top of page as in other br
owsers. | 1545 // Implement the rule that "" and "top" both mean top of page as in other br
owsers. |
1546 if (!anchorNode && !(name.isEmpty() || equalIgnoringCase(name, "top"))) | 1546 if (!anchorNode && !(name.isEmpty() || equalIgnoringCase(name, "top"))) |
1547 return false; | 1547 return false; |
1548 | 1548 |
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3263 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) | 3263 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) |
3264 { | 3264 { |
3265 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3265 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
3266 if (AXObjectCache* cache = axObjectCache()) { | 3266 if (AXObjectCache* cache = axObjectCache()) { |
3267 cache->remove(scrollbar); | 3267 cache->remove(scrollbar); |
3268 cache->handleScrollbarUpdate(this); | 3268 cache->handleScrollbarUpdate(this); |
3269 } | 3269 } |
3270 } | 3270 } |
3271 | 3271 |
3272 } // namespace WebCore | 3272 } // namespace WebCore |
OLD | NEW |