Commit 63be8d15 authored by Sylvestre Ledru's avatar Sylvestre Ledru
Browse files

Bug 1519636 - Reformat recent changes to the Google coding style r=necko-reviewers,dragana

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D77580
parent 42e0c61e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -667,8 +667,7 @@ void DOMIntersectionObserver::QueueIntersectionObserverEntry(
  }
  RefPtr<DOMIntersectionObserverEntry> entry = new DOMIntersectionObserverEntry(
      this, time, rootBounds.forget(), boundingClientRect.forget(),
      intersectionRect.forget(), aIsIntersecting, aTarget,
      aIntersectionRatio);
      intersectionRect.forget(), aIsIntersecting, aTarget, aIntersectionRatio);
  mQueuedEntries.AppendElement(entry.forget());
}

+2 −1
Original line number Diff line number Diff line
@@ -86,7 +86,8 @@ void HTMLDialogElement::ShowModal(ErrorResult& aError) {
  }

  if (Open()) {
    aError.ThrowInvalidStateError("Dialog element already has an 'open' attribute");
    aError.ThrowInvalidStateError(
        "Dialog element already has an 'open' attribute");
    return;
  }

+1 −2
Original line number Diff line number Diff line
@@ -1949,8 +1949,7 @@ MediaManager::MediaManager(UniquePtr<base::Thread> aMediaThread)
      mPrefs.mHPFOn ? "on" : "off",
      mPrefs.mExperimentalInputProcessing ? "on" : "off",
      mPrefs.mNoiseOn ? "on" : "off", mPrefs.mAec, mPrefs.mAgc, mPrefs.mNoise,
      mPrefs.mRoutingMode,
      mPrefs.mExtendedFilter ? "on" : "off",
      mPrefs.mRoutingMode, mPrefs.mExtendedFilter ? "on" : "off",
      mPrefs.mDelayAgnostic ? "on" : "off", mPrefs.mChannels);
}

+1 −2
Original line number Diff line number Diff line
@@ -463,8 +463,7 @@ class RestyleManager {
   * attribute changes that happens not to have any effect on the style of that
   * element or any descendant or sibling.
   */
  bool ProcessPostTraversal(Element* aElement,
                            ServoRestyleState& aRestyleState,
  bool ProcessPostTraversal(Element* aElement, ServoRestyleState& aRestyleState,
                            ServoPostTraversalFlags aFlags);

  struct TextPostTraversalState;
+15 −8
Original line number Diff line number Diff line
@@ -104,7 +104,8 @@ template <class SpanT, bool IsConst>
class span_iterator {
  using element_type_ = typename SpanT::element_type;

  template <class ElementType, size_t Extent> friend class ::mozilla::Span;
  template <class ElementType, size_t Extent>
  friend class ::mozilla::Span;

 public:
  using iterator_category = std::random_access_iterator_tag;
@@ -125,9 +126,9 @@ class span_iterator {

 private:
  // For whatever reason, the compiler doesn't like optimizing away the above
  // MOZ_RELEASE_ASSERT when `span_iterator` is constructed for obviously-correct
  // cases like `span.begin()` or `span.end()`.  We provide this private
  // constructor for such cases.
  // MOZ_RELEASE_ASSERT when `span_iterator` is constructed for
  // obviously-correct cases like `span.begin()` or `span.end()`.  We provide
  // this private constructor for such cases.
  constexpr span_iterator(const SpanT* span, typename SpanT::index_type index,
                          SpanKnownBounds)
      : span_(span), index_(index) {}
@@ -693,10 +694,16 @@ class Span {

  // [Span.iter], Span iterator support
  iterator begin() const { return {this, 0, span_details::SpanKnownBounds{}}; }
  iterator end() const { return {this, Length(), span_details::SpanKnownBounds{}}; }
  iterator end() const {
    return {this, Length(), span_details::SpanKnownBounds{}};
  }

  const_iterator cbegin() const { return {this, 0, span_details::SpanKnownBounds{}}; }
  const_iterator cend() const { return {this, Length(), span_details::SpanKnownBounds{}}; }
  const_iterator cbegin() const {
    return {this, 0, span_details::SpanKnownBounds{}};
  }
  const_iterator cend() const {
    return {this, Length(), span_details::SpanKnownBounds{}};
  }

  reverse_iterator rbegin() const { return reverse_iterator{end()}; }
  reverse_iterator rend() const { return reverse_iterator{begin()}; }
Loading