| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| (...skipping 4386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4397 } | 4397 } |
| 4398 | 4398 |
| 4399 HTMLFrameOwnerElement* Document::localOwner() const { | 4399 HTMLFrameOwnerElement* Document::localOwner() const { |
| 4400 if (!frame()) | 4400 if (!frame()) |
| 4401 return 0; | 4401 return 0; |
| 4402 // FIXME: This probably breaks the attempts to layout after a load is finished | 4402 // FIXME: This probably breaks the attempts to layout after a load is finished |
| 4403 // in implicitClose(), and probably tons of other things... | 4403 // in implicitClose(), and probably tons of other things... |
| 4404 return frame()->deprecatedLocalOwner(); | 4404 return frame()->deprecatedLocalOwner(); |
| 4405 } | 4405 } |
| 4406 | 4406 |
| 4407 void Document::willChangeFrameOwnerProperties(int marginWidth, |
| 4408 int marginHeight, |
| 4409 ScrollbarMode scrollingMode) { |
| 4410 DCHECK(frame() && frame()->owner()); |
| 4411 FrameOwner* owner = frame()->owner(); |
| 4412 |
| 4413 if (marginWidth != owner->marginWidth()) |
| 4414 body()->setIntegralAttribute(marginwidthAttr, marginWidth); |
| 4415 if (marginHeight != owner->marginHeight()) |
| 4416 body()->setIntegralAttribute(marginheightAttr, marginHeight); |
| 4417 if (scrollingMode != owner->scrollingMode()) |
| 4418 view()->setNeedsLayout(); |
| 4419 } |
| 4420 |
| 4407 bool Document::isInInvisibleSubframe() const { | 4421 bool Document::isInInvisibleSubframe() const { |
| 4408 if (!localOwner()) | 4422 if (!localOwner()) |
| 4409 return false; // this is a local root element | 4423 return false; // this is a local root element |
| 4410 | 4424 |
| 4411 // TODO(bokan): This looks like it doesn't work in OOPIF. | 4425 // TODO(bokan): This looks like it doesn't work in OOPIF. |
| 4412 DCHECK(frame()); | 4426 DCHECK(frame()); |
| 4413 return frame()->ownerLayoutItem().isNull(); | 4427 return frame()->ownerLayoutItem().isNull(); |
| 4414 } | 4428 } |
| 4415 | 4429 |
| 4416 String Document::cookie(ExceptionState& exceptionState) const { | 4430 String Document::cookie(ExceptionState& exceptionState) const { |
| (...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6522 } | 6536 } |
| 6523 | 6537 |
| 6524 void showLiveDocumentInstances() { | 6538 void showLiveDocumentInstances() { |
| 6525 WeakDocumentSet& set = liveDocumentSet(); | 6539 WeakDocumentSet& set = liveDocumentSet(); |
| 6526 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6540 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6527 for (Document* document : set) | 6541 for (Document* document : set) |
| 6528 fprintf(stderr, "- Document %p URL: %s\n", document, | 6542 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6529 document->url().getString().utf8().data()); | 6543 document->url().getString().utf8().data()); |
| 6530 } | 6544 } |
| 6531 #endif | 6545 #endif |
| OLD | NEW |