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

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

Issue 1287623002: Delete blink code for scroll-blocks-on (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698