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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |