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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.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) 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 4895 matching lines...) Expand 10 before | Expand all | Expand 10 after
4906 DCHECK(newData.encoding().isValid()); 4906 DCHECK(newData.encoding().isValid());
4907 m_encodingData = newData; 4907 m_encodingData = newData;
4908 4908
4909 // FIXME: Should be removed as part of 4909 // FIXME: Should be removed as part of
4910 // https://code.google.com/p/chromium/issues/detail?id=319643 4910 // https://code.google.com/p/chromium/issues/detail?id=319643
4911 bool shouldUseVisualOrdering = m_encodingData.encoding().usesVisualOrdering(); 4911 bool shouldUseVisualOrdering = m_encodingData.encoding().usesVisualOrdering();
4912 if (shouldUseVisualOrdering != m_visuallyOrdered) { 4912 if (shouldUseVisualOrdering != m_visuallyOrdered) {
4913 m_visuallyOrdered = shouldUseVisualOrdering; 4913 m_visuallyOrdered = shouldUseVisualOrdering;
4914 // FIXME: How is possible to not have a layoutObject here? 4914 // FIXME: How is possible to not have a layoutObject here?
4915 if (!layoutViewItem().isNull()) { 4915 if (!layoutViewItem().isNull()) {
4916 layoutViewItem().mutableStyleRef().setRTLOrdering( 4916 layoutViewItem().mutableStyleRef().setRtlOrdering(
4917 m_visuallyOrdered ? EOrder::Visual : EOrder::Logical); 4917 m_visuallyOrdered ? EOrder::kVisual : EOrder::kLogical);
4918 } 4918 }
4919 setNeedsStyleRecalc(SubtreeStyleChange, 4919 setNeedsStyleRecalc(SubtreeStyleChange,
4920 StyleChangeReasonForTracing::create( 4920 StyleChangeReasonForTracing::create(
4921 StyleChangeReason::VisuallyOrdered)); 4921 StyleChangeReason::VisuallyOrdered));
4922 } 4922 }
4923 } 4923 }
4924 4924
4925 KURL Document::completeURL(const String& url) const { 4925 KURL Document::completeURL(const String& url) const {
4926 return completeURLWithOverride(url, m_baseURL); 4926 return completeURLWithOverride(url, m_baseURL);
4927 } 4927 }
(...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698