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 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2258 element, parent ? parent->ensureComputedStyle() : nullptr); | 2258 element, parent ? parent->ensureComputedStyle() : nullptr); |
2259 } | 2259 } |
2260 | 2260 |
2261 PassRefPtr<ComputedStyle> Document::styleForPage(int pageIndex) { | 2261 PassRefPtr<ComputedStyle> Document::styleForPage(int pageIndex) { |
2262 updateDistribution(); | 2262 updateDistribution(); |
2263 return ensureStyleResolver().styleForPage(pageIndex); | 2263 return ensureStyleResolver().styleForPage(pageIndex); |
2264 } | 2264 } |
2265 | 2265 |
2266 bool Document::isPageBoxVisible(int pageIndex) { | 2266 bool Document::isPageBoxVisible(int pageIndex) { |
2267 return styleForPage(pageIndex)->visibility() != | 2267 return styleForPage(pageIndex)->visibility() != |
2268 EVisibility::Hidden; // display property doesn't apply to @page. | 2268 EVisibility::kHidden; // display property doesn't apply to @page. |
2269 } | 2269 } |
2270 | 2270 |
2271 void Document::pageSizeAndMarginsInPixels(int pageIndex, | 2271 void Document::pageSizeAndMarginsInPixels(int pageIndex, |
2272 DoubleSize& pageSize, | 2272 DoubleSize& pageSize, |
2273 int& marginTop, | 2273 int& marginTop, |
2274 int& marginRight, | 2274 int& marginRight, |
2275 int& marginBottom, | 2275 int& marginBottom, |
2276 int& marginLeft) { | 2276 int& marginLeft) { |
2277 RefPtr<ComputedStyle> style = styleForPage(pageIndex); | 2277 RefPtr<ComputedStyle> style = styleForPage(pageIndex); |
2278 | 2278 |
(...skipping 4304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6583 } | 6583 } |
6584 | 6584 |
6585 void showLiveDocumentInstances() { | 6585 void showLiveDocumentInstances() { |
6586 WeakDocumentSet& set = liveDocumentSet(); | 6586 WeakDocumentSet& set = liveDocumentSet(); |
6587 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6587 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6588 for (Document* document : set) | 6588 for (Document* document : set) |
6589 fprintf(stderr, "- Document %p URL: %s\n", document, | 6589 fprintf(stderr, "- Document %p URL: %s\n", document, |
6590 document->url().getString().utf8().data()); | 6590 document->url().getString().utf8().data()); |
6591 } | 6591 } |
6592 #endif | 6592 #endif |
OLD | NEW |