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

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

Issue 2622623003: Moved -webkit-rtl-ordering to be generated in ComputedStyleBase. (Closed)
Patch Set: Created 3 years, 11 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. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 541
542 ++innerCascadeOrder; 542 ++innerCascadeOrder;
543 --outerCascadeOrder; 543 --outerCascadeOrder;
544 } 544 }
545 } 545 }
546 546
547 PassRefPtr<ComputedStyle> StyleResolver::styleForDocument(Document& document) { 547 PassRefPtr<ComputedStyle> StyleResolver::styleForDocument(Document& document) {
548 const LocalFrame* frame = document.frame(); 548 const LocalFrame* frame = document.frame();
549 549
550 RefPtr<ComputedStyle> documentStyle = ComputedStyle::create(); 550 RefPtr<ComputedStyle> documentStyle = ComputedStyle::create();
551 documentStyle->setRTLOrdering(document.visuallyOrdered() ? EOrder::Visual 551 documentStyle->setRtlOrdering(document.visuallyOrdered() ? EOrder::kVisual
552 : EOrder::Logical); 552 : EOrder::kLogical);
553 documentStyle->setZoom(frame && !document.printing() ? frame->pageZoomFactor() 553 documentStyle->setZoom(frame && !document.printing() ? frame->pageZoomFactor()
554 : 1); 554 : 1);
555 FontDescription documentFontDescription = documentStyle->getFontDescription(); 555 FontDescription documentFontDescription = documentStyle->getFontDescription();
556 documentFontDescription.setLocale( 556 documentFontDescription.setLocale(
557 LayoutLocale::get(document.contentLanguage())); 557 LayoutLocale::get(document.contentLanguage()));
558 documentStyle->setFontDescription(documentFontDescription); 558 documentStyle->setFontDescription(documentFontDescription);
559 documentStyle->setZIndex(0); 559 documentStyle->setZIndex(0);
560 documentStyle->setIsStackingContext(true); 560 documentStyle->setIsStackingContext(true);
561 documentStyle->setUserModify(document.inDesignMode() ? READ_WRITE 561 documentStyle->setUserModify(document.inDesignMode() ? READ_WRITE
562 : READ_ONLY); 562 : READ_ONLY);
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 1935
1936 DEFINE_TRACE(StyleResolver) { 1936 DEFINE_TRACE(StyleResolver) {
1937 visitor->trace(m_matchedPropertiesCache); 1937 visitor->trace(m_matchedPropertiesCache);
1938 visitor->trace(m_selectorFilter); 1938 visitor->trace(m_selectorFilter);
1939 visitor->trace(m_styleSharingLists); 1939 visitor->trace(m_styleSharingLists);
1940 visitor->trace(m_document); 1940 visitor->trace(m_document);
1941 visitor->trace(m_tracker); 1941 visitor->trace(m_tracker);
1942 } 1942 }
1943 1943
1944 } // namespace blink 1944 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698