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

Side by Side Diff: WebCore/page/FrameView.cpp

Issue 6157003: Merge 75028 - Merge 74779 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « LayoutTests/svg/custom/scroll-to-anchor-in-symbol-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 // We need to parse the xpointer reference here 1197 // We need to parse the xpointer reference here
1198 } else if (name.startsWith("svgView(")) { 1198 } else if (name.startsWith("svgView(")) {
1199 RefPtr<SVGSVGElement> svg = static_cast<SVGDocument*>(m_frame->docum ent())->rootElement(); 1199 RefPtr<SVGSVGElement> svg = static_cast<SVGDocument*>(m_frame->docum ent())->rootElement();
1200 if (!svg->currentView()->parseViewSpec(name)) 1200 if (!svg->currentView()->parseViewSpec(name))
1201 return false; 1201 return false;
1202 svg->setUseCurrentView(true); 1202 svg->setUseCurrentView(true);
1203 } else { 1203 } else {
1204 if (anchorNode && anchorNode->hasTagName(SVGNames::viewTag)) { 1204 if (anchorNode && anchorNode->hasTagName(SVGNames::viewTag)) {
1205 RefPtr<SVGViewElement> viewElement = anchorNode->hasTagName(SVGN ames::viewTag) ? static_cast<SVGViewElement*>(anchorNode) : 0; 1205 RefPtr<SVGViewElement> viewElement = anchorNode->hasTagName(SVGN ames::viewTag) ? static_cast<SVGViewElement*>(anchorNode) : 0;
1206 if (viewElement.get()) { 1206 if (viewElement.get()) {
1207 RefPtr<SVGSVGElement> svg = static_cast<SVGSVGElement*>(SVGL ocatable::nearestViewportElement(viewElement.get())); 1207 SVGElement* element = SVGLocatable::nearestViewportElement(v iewElement.get());
1208 svg->inheritViewAttributes(viewElement.get()); 1208 if (element->hasTagName(SVGNames::svgTag)) {
1209 RefPtr<SVGSVGElement> svg = static_cast<SVGSVGElement*>( element);
1210 svg->inheritViewAttributes(viewElement.get());
1211 }
1209 } 1212 }
1210 } 1213 }
1211 } 1214 }
1212 // FIXME: need to decide which <svg> to focus on, and zoom to that one 1215 // FIXME: need to decide which <svg> to focus on, and zoom to that one
1213 // FIXME: need to actually "highlight" the viewTarget(s) 1216 // FIXME: need to actually "highlight" the viewTarget(s)
1214 } 1217 }
1215 #endif 1218 #endif
1216 1219
1217 m_frame->document()->setCSSTarget(anchorNode); // Setting to null will clear the current target. 1220 m_frame->document()->setCSSTarget(anchorNode); // Setting to null will clear the current target.
1218 1221
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
2416 s_maxDeferredRepaintDelayDuringLoading = p; 2419 s_maxDeferredRepaintDelayDuringLoading = p;
2417 } 2420 }
2418 2421
2419 // On each repaint the delay increases by this amount 2422 // On each repaint the delay increases by this amount
2420 void FrameView::setRepaintThrottlingDeferredRepaintDelayIncrementDuringLoading(d ouble p) 2423 void FrameView::setRepaintThrottlingDeferredRepaintDelayIncrementDuringLoading(d ouble p)
2421 { 2424 {
2422 s_deferredRepaintDelayIncrementDuringLoading = p; 2425 s_deferredRepaintDelayIncrementDuringLoading = p;
2423 } 2426 }
2424 2427
2425 } // namespace WebCore 2428 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/scroll-to-anchor-in-symbol-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698