Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 268803005: Replace SVGDocument by XMLDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix mentioned issues Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 } 1527 }
1528 1528
1529 m_frame->document()->setGotoAnchorNeededAfterStylesheetsLoad(false); 1529 m_frame->document()->setGotoAnchorNeededAfterStylesheetsLoad(false);
1530 1530
1531 Element* anchorNode = m_frame->document()->findAnchor(name); 1531 Element* anchorNode = m_frame->document()->findAnchor(name);
1532 1532
1533 // Setting to null will clear the current target. 1533 // Setting to null will clear the current target.
1534 m_frame->document()->setCSSTarget(anchorNode); 1534 m_frame->document()->setCSSTarget(anchorNode);
1535 1535
1536 if (m_frame->document()->isSVGDocument()) { 1536 if (m_frame->document()->isSVGDocument()) {
1537 if (SVGSVGElement* svg = toSVGDocument(m_frame->document())->rootElement ()) { 1537 if (SVGSVGElement* svg = SVGDocumentExtensions::rootElement(*m_frame->do cument())) {
1538 svg->setupInitialView(name, anchorNode); 1538 svg->setupInitialView(name, anchorNode);
1539 if (!anchorNode) 1539 if (!anchorNode)
1540 return true; 1540 return true;
1541 } 1541 }
1542 } 1542 }
1543 1543
1544 // Implement the rule that "" and "top" both mean top of page as in other br owsers. 1544 // Implement the rule that "" and "top" both mean top of page as in other br owsers.
1545 if (!anchorNode && !(name.isEmpty() || equalIgnoringCase(name, "top"))) 1545 if (!anchorNode && !(name.isEmpty() || equalIgnoringCase(name, "top")))
1546 return false; 1546 return false;
1547 1547
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
3259 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3259 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3260 { 3260 {
3261 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3261 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3262 if (AXObjectCache* cache = axObjectCache()) { 3262 if (AXObjectCache* cache = axObjectCache()) {
3263 cache->remove(scrollbar); 3263 cache->remove(scrollbar);
3264 cache->handleScrollbarUpdate(this); 3264 cache->handleScrollbarUpdate(this);
3265 } 3265 }
3266 } 3266 }
3267 3267
3268 } // namespace WebCore 3268 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698