Revision 15b0fb362111166b6d279074071e27dbae6aee37 authored by Majid Valipour on 25 October 2017, 18:18:27 UTC, committed by Blink WPT Bot on 25 October 2017, 18:28:47 UTC
This reverts commit 74e8a0f74fc589a58258655f59aa7f1efa666155.

Reason for revert: This caused an issue on Linux64 no-op build.
Bug: 778310

Original change's description:
> Rename CSS scroll-boundary-behavior to overscroll-behavior
>
> The name change was decided here [1].
>
> This is the minimal patch to change the publicly exposed CSS property.
> It is intentionally small to make it easier to merge with M63. So,
> internally Blink and content still use ScrollBoundaryBehavior name which will
> be updated in the follow up patch larger patch.
>
>
> [1] https://github.com/WICG/scroll-boundary-behavior/issues/24
>
> Bug: 776776
> Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
> Change-Id: Iaa6ad62253ed7fe9ed7f0ee9865ffda852b17801
> Reviewed-on: https://chromium-review.googlesource.com/737090
> Reviewed-by: Dimitri Glazkov <dglazkov@chromium.org>
> Reviewed-by: Sandra Sun <sunyunjia@chromium.org>
> Commit-Queue: Majid Valipour <majidvp@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#511493}

TBR=majidvp@chromium.org,sunyunjia@chromium.org,dglazkov@chromium.org

Change-Id: I1d71b71c5d3c263fb2ff13c9d7a9184399df946f
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 776776
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Reviewed-on: https://chromium-review.googlesource.com/738294
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#511515}
1 parent 511cb08
Raw File
refresh_idl.rb
#!/usr/bin/env ruby
require 'nokogiri'

def base_dir
  File.dirname(__FILE__)
end

def output_directory
  File.join(base_dir, 'idl')
end

def specification
  file = File.open(File.join(base_dir, 'specification.html'))
  doc = Nokogiri::XML(file)
  file.close
  doc
end

def write_node_inner_text_to_file(filename, node)
  File.open(filename, 'w') { |file| file.write(node.inner_text.strip) }
  puts "Wrote: #{filename}"
end

def load_idl(id)
  file = File.join(output_directory, id)
  return false if !File.exist?(file)
  File.read(file)
end

# Parse the specification writing each block of idl to its own file
specification.css(".idl-code").each do |idl_block|
  id = idl_block["id"]
  write_node_inner_text_to_file(File.join(output_directory, id), idl_block) if id
end

# Update the idl in the pre blocks for each idl test
idl_test_files = [
  File.join(base_dir, 'the-audio-api', 'the-gainnode-interface', 'idl-test.html'),
  File.join(base_dir, 'the-audio-api', 'the-audiodestinationnode-interface', 'idl-test.html'),
  File.join(base_dir, 'the-audio-api', 'the-delaynode-interface', 'idl-test.html'),
  File.join(base_dir, 'the-audio-api', 'the-audiobuffer-interface', 'idl-test.html'),
]

idl_test_files.each do |fn|
  file = File.open(fn)
  doc = Nokogiri::HTML(file)
  file.close

  doc.css('pre').each do |node|
    node_id = node["id"]
    if idl = load_idl(node_id)
      node.content = idl
    end
  end

  File.open(fn, 'w') { |file| file.write(doc.to_html)}
end
back to top