| 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) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 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 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1936 setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReason::StyleCha
nge); | 1936 setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReason::StyleCha
nge); |
| 1937 } else if (diff.needsPositionedMovementLayout()) { | 1937 } else if (diff.needsPositionedMovementLayout()) { |
| 1938 setNeedsPositionedMovementLayout(); | 1938 setNeedsPositionedMovementLayout(); |
| 1939 } | 1939 } |
| 1940 | 1940 |
| 1941 // Don't check for paint invalidation here; we need to wait until the layer
has been | 1941 // Don't check for paint invalidation here; we need to wait until the layer
has been |
| 1942 // updated by subclasses before we know if we have to invalidate paints (in
setStyle()). | 1942 // updated by subclasses before we know if we have to invalidate paints (in
setStyle()). |
| 1943 | 1943 |
| 1944 if (oldStyle && !areCursorsEqual(oldStyle, style())) { | 1944 if (oldStyle && !areCursorsEqual(oldStyle, style())) { |
| 1945 if (LocalFrame* frame = this->frame()) | 1945 if (LocalFrame* frame = this->frame()) |
| 1946 frame->eventHandler().scheduleCursorUpdate(); | 1946 frame->page()->deprecatedLocalMainFrame()->eventHandler().scheduleCu
rsorUpdate(); |
| 1947 } | 1947 } |
| 1948 } | 1948 } |
| 1949 | 1949 |
| 1950 void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) | 1950 void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) |
| 1951 { | 1951 { |
| 1952 // FIXME: We could save this call when the change only affected non-inherite
d properties. | 1952 // FIXME: We could save this call when the change only affected non-inherite
d properties. |
| 1953 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { | 1953 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli
ng()) { |
| 1954 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) | 1954 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) |
| 1955 continue; | 1955 continue; |
| 1956 | 1956 |
| (...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3307 { | 3307 { |
| 3308 if (object1) { | 3308 if (object1) { |
| 3309 const blink::LayoutObject* root = object1; | 3309 const blink::LayoutObject* root = object1; |
| 3310 while (root->parent()) | 3310 while (root->parent()) |
| 3311 root = root->parent(); | 3311 root = root->parent(); |
| 3312 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3312 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3313 } | 3313 } |
| 3314 } | 3314 } |
| 3315 | 3315 |
| 3316 #endif | 3316 #endif |
| OLD | NEW |