Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 1172153004: Absolute-position the initial containing block. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 documentStyle->setRTLOrdering(document.visuallyOrdered() ? VisualOrder : Log icalOrder); 460 documentStyle->setRTLOrdering(document.visuallyOrdered() ? VisualOrder : Log icalOrder);
461 documentStyle->setZoom(frame && !document.printing() ? frame->pageZoomFactor () : 1); 461 documentStyle->setZoom(frame && !document.printing() ? frame->pageZoomFactor () : 1);
462 documentStyle->setLocale(document.contentLanguage()); 462 documentStyle->setLocale(document.contentLanguage());
463 documentStyle->setZIndex(0); 463 documentStyle->setZIndex(0);
464 documentStyle->setUserModify(document.inDesignMode() ? READ_WRITE : READ_ONL Y); 464 documentStyle->setUserModify(document.inDesignMode() ? READ_WRITE : READ_ONL Y);
465 // These are designed to match the user-agent stylesheet values for the docu ment element 465 // These are designed to match the user-agent stylesheet values for the docu ment element
466 // so that the common case doesn't need to create a new ComputedStyle in 466 // so that the common case doesn't need to create a new ComputedStyle in
467 // Document::inheritHtmlAndBodyElementStyles. 467 // Document::inheritHtmlAndBodyElementStyles.
468 documentStyle->setDisplay(BLOCK); 468 documentStyle->setDisplay(BLOCK);
469 documentStyle->setScrollBlocksOn(WebScrollBlocksOnStartTouch | WebScrollBloc ksOnWheelEvent); 469 documentStyle->setScrollBlocksOn(WebScrollBlocksOnStartTouch | WebScrollBloc ksOnWheelEvent);
470 documentStyle->setPosition(AbsolutePosition);
470 471
471 document.setupFontBuilder(*documentStyle); 472 document.setupFontBuilder(*documentStyle);
472 473
473 return documentStyle.release(); 474 return documentStyle.release();
474 } 475 }
475 476
476 AuthorStyleInfo StyleResolver::authorStyleInfo(StyleResolverState& state) 477 AuthorStyleInfo StyleResolver::authorStyleInfo(StyleResolverState& state)
477 { 478 {
478 const CachedUAStyle* cachedUAStyle = state.cachedUAStyle(); 479 const CachedUAStyle* cachedUAStyle = state.cachedUAStyle();
479 480
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 visitor->trace(m_watchedSelectorsRules); 1467 visitor->trace(m_watchedSelectorsRules);
1467 visitor->trace(m_treeBoundaryCrossingRules); 1468 visitor->trace(m_treeBoundaryCrossingRules);
1468 visitor->trace(m_styleResourceLoader); 1469 visitor->trace(m_styleResourceLoader);
1469 visitor->trace(m_styleSharingLists); 1470 visitor->trace(m_styleSharingLists);
1470 visitor->trace(m_pendingStyleSheets); 1471 visitor->trace(m_pendingStyleSheets);
1471 visitor->trace(m_document); 1472 visitor->trace(m_document);
1472 #endif 1473 #endif
1473 } 1474 }
1474 1475
1475 } // namespace blink 1476 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/fast/scrolling/absolute-position-behind-scrollbar-expected.txt ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698