OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 RefPtr<ComputedStyle> documentStyle = ComputedStyle::create(); | 463 RefPtr<ComputedStyle> documentStyle = ComputedStyle::create(); |
464 documentStyle->setRTLOrdering(document.visuallyOrdered() ? VisualOrder : Log
icalOrder); | 464 documentStyle->setRTLOrdering(document.visuallyOrdered() ? VisualOrder : Log
icalOrder); |
465 documentStyle->setZoom(frame && !document.printing() ? frame->pageZoomFactor
() : 1); | 465 documentStyle->setZoom(frame && !document.printing() ? frame->pageZoomFactor
() : 1); |
466 documentStyle->setLocale(document.contentLanguage()); | 466 documentStyle->setLocale(document.contentLanguage()); |
467 documentStyle->setZIndex(0); | 467 documentStyle->setZIndex(0); |
468 documentStyle->setUserModify(document.inDesignMode() ? READ_WRITE : READ_ONL
Y); | 468 documentStyle->setUserModify(document.inDesignMode() ? READ_WRITE : READ_ONL
Y); |
469 // These are designed to match the user-agent stylesheet values for the docu
ment element | 469 // These are designed to match the user-agent stylesheet values for the docu
ment element |
470 // so that the common case doesn't need to create a new ComputedStyle in | 470 // so that the common case doesn't need to create a new ComputedStyle in |
471 // Document::inheritHtmlAndBodyElementStyles. | 471 // Document::inheritHtmlAndBodyElementStyles. |
472 documentStyle->setDisplay(BLOCK); | 472 documentStyle->setDisplay(BLOCK); |
473 documentStyle->setScrollBlocksOn(WebScrollBlocksOnStartTouch | WebScrollBloc
ksOnWheelEvent); | |
474 documentStyle->setPosition(AbsolutePosition); | 473 documentStyle->setPosition(AbsolutePosition); |
475 | 474 |
476 document.setupFontBuilder(*documentStyle); | 475 document.setupFontBuilder(*documentStyle); |
477 | 476 |
478 return documentStyle.release(); | 477 return documentStyle.release(); |
479 } | 478 } |
480 | 479 |
481 AuthorStyleInfo StyleResolver::authorStyleInfo(StyleResolverState& state) | 480 AuthorStyleInfo StyleResolver::authorStyleInfo(StyleResolverState& state) |
482 { | 481 { |
483 const CachedUAStyle* cachedUAStyle = state.cachedUAStyle(); | 482 const CachedUAStyle* cachedUAStyle = state.cachedUAStyle(); |
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 visitor->trace(m_watchedSelectorsRules); | 1438 visitor->trace(m_watchedSelectorsRules); |
1440 visitor->trace(m_treeBoundaryCrossingRules); | 1439 visitor->trace(m_treeBoundaryCrossingRules); |
1441 visitor->trace(m_styleResourceLoader); | 1440 visitor->trace(m_styleResourceLoader); |
1442 visitor->trace(m_styleSharingLists); | 1441 visitor->trace(m_styleSharingLists); |
1443 visitor->trace(m_pendingStyleSheets); | 1442 visitor->trace(m_pendingStyleSheets); |
1444 visitor->trace(m_document); | 1443 visitor->trace(m_document); |
1445 #endif | 1444 #endif |
1446 } | 1445 } |
1447 | 1446 |
1448 } // namespace blink | 1447 } // namespace blink |
OLD | NEW |