OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 | 942 |
943 double scaledLeft = view->scrollPositionDouble().x(); | 943 double scaledLeft = view->scrollPositionDouble().x(); |
944 double scaledTop = view->scrollPositionDouble().y(); | 944 double scaledTop = view->scrollPositionDouble().y(); |
945 if (scrollToOptions.hasLeft()) | 945 if (scrollToOptions.hasLeft()) |
946 scaledLeft = scrollToOptions.left() * frame->pageZoomFactor(); | 946 scaledLeft = scrollToOptions.left() * frame->pageZoomFactor(); |
947 if (scrollToOptions.hasTop()) | 947 if (scrollToOptions.hasTop()) |
948 scaledTop = scrollToOptions.top() * frame->pageZoomFactor(); | 948 scaledTop = scrollToOptions.top() * frame->pageZoomFactor(); |
949 view->setScrollPosition(DoublePoint(scaledLeft, scaledTop), scrollBehavior); | 949 view->setScrollPosition(DoublePoint(scaledLeft, scaledTop), scrollBehavior); |
950 } | 950 } |
951 | 951 |
| 952 void Element::incrementProxyCount() |
| 953 { |
| 954 ensureElementRareData().incrementProxyCount(); |
| 955 } |
| 956 |
| 957 void Element::decrementProxyCount() |
| 958 { |
| 959 ensureElementRareData().decrementProxyCount(); |
| 960 } |
| 961 |
952 IntRect Element::boundsInViewportSpace() | 962 IntRect Element::boundsInViewportSpace() |
953 { | 963 { |
954 document().updateLayoutIgnorePendingStylesheets(); | 964 document().updateLayoutIgnorePendingStylesheets(); |
955 | 965 |
956 FrameView* view = document().view(); | 966 FrameView* view = document().view(); |
957 if (!view) | 967 if (!view) |
958 return IntRect(); | 968 return IntRect(); |
959 | 969 |
960 Vector<FloatQuad> quads; | 970 Vector<FloatQuad> quads; |
961 if (isSVGElement() && layoutObject()) { | 971 if (isSVGElement() && layoutObject()) { |
(...skipping 2534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3496 { | 3506 { |
3497 #if ENABLE(OILPAN) | 3507 #if ENABLE(OILPAN) |
3498 if (hasRareData()) | 3508 if (hasRareData()) |
3499 visitor->trace(elementRareData()); | 3509 visitor->trace(elementRareData()); |
3500 visitor->trace(m_elementData); | 3510 visitor->trace(m_elementData); |
3501 #endif | 3511 #endif |
3502 ContainerNode::trace(visitor); | 3512 ContainerNode::trace(visitor); |
3503 } | 3513 } |
3504 | 3514 |
3505 } // namespace blink | 3515 } // namespace blink |
OLD | NEW |