diff options
author | arthure@chromium.org <arthure@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-08 02:20:30 +0000 |
---|---|---|
committer | arthure@chromium.org <arthure@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-08 02:20:30 +0000 |
commit | efa970ba235da5db7d384503a661f4826536f2cc (patch) | |
tree | 834c1324792d1230bbddfe7bce677f64d89adf2e /third_party | |
parent | 0358f7aaf708c62d70bc95078b3119086ba6e38b (diff) | |
download | chromium_src-efa970ba235da5db7d384503a661f4826536f2cc.zip chromium_src-efa970ba235da5db7d384503a661f4826536f2cc.tar.gz chromium_src-efa970ba235da5db7d384503a661f4826536f2cc.tar.bz2 |
Omit empty TOC ("Contents" heading and empty OL) if there are no items in the TOC.
With the old DCC, the empty TOC only appears as a somewhat mysterious gray rectangle, but with the new DCC, we have a contents header, which makes this problem more obvious.
BUG=341696
To reproduce:
1. Load a page with no headings (or headings that don't appear in the TOC), such as /apps/publish_app.html
2. Without the patch, an empty Contents heading appears.
3. With the patch, the contents doesn't appear (technically, there's still a section, but no visible text).
Review URL: https://codereview.chromium.org/140733009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
0 files changed, 0 insertions, 0 deletions