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

Issue 296113004: Start using computed style instead of default tag actions. (Closed)

Created:
6 years, 7 months ago by nyquist
Modified:
6 years, 6 months ago
Reviewers:
Yaron
CC:
cjhopman, kuan
Base URL:
https://code.google.com/p/dom-distiller/@master
Visibility:
Public.

Description

Start using computed style instead of default tag actions. Currently, actions are taken based on the tag only. This CL changes it so that the computed style is also taken into account to ensure there is no inlining of styles that have display:block. BUG=375553 R=yfriedman@chromium.org Committed: f6e5bbb

Patch Set 1 #

Patch Set 2 : Now only uses old TagActions as overrides #

Patch Set 3 : Added tests #

Total comments: 17

Patch Set 4 : Addressed all comments. Removed MarkupTagAction. #

Total comments: 2

Patch Set 5 : Fixed nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -327 lines) Patch
M boilerpipe-core/src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLContentHandler.java View 1 2 3 6 chunks +69 lines, -8 lines 0 comments Download
M boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java View 1 2 3 4 11 chunks +55 lines, -84 lines 0 comments Download
M boilerpipe-core/src/main/de/l3s/boilerpipe/sax/DefaultTagActionMap.java View 1 2 chunks +2 lines, -36 lines 0 comments Download
D boilerpipe-core/src/main/de/l3s/boilerpipe/sax/MarkupTagAction.java View 1 2 3 1 chunk +0 lines, -104 lines 0 comments Download
M boilerpipe-core/src/main/de/l3s/boilerpipe/sax/TagAction.java View 1 2 3 1 chunk +5 lines, -7 lines 0 comments Download
M src/com/dom_distiller/client/DomToSaxVisitor.java View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M src/com/dom_distiller/client/sax/Attributes.java View 1 2 3 1 chunk +5 lines, -8 lines 0 comments Download
M src/com/dom_distiller/client/sax/AttributesImpl.java View 1 2 3 1 chunk +48 lines, -61 lines 0 comments Download
M src/com/dom_distiller/client/sax/ContentHandler.java View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
A test/com/dom_distiller/client/BoilerpipeHTMLContentHandlerTest.java View 1 2 3 1 chunk +185 lines, -0 lines 0 comments Download
M test/com/dom_distiller/client/DomToSaxVisitorTest.java View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/com/dom_distiller/client/SimpleContentHandler.java View 1 2 3 3 chunks +15 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
nyquist
yfriedman: PTAL https://codereview.chromium.org/296113004/diff/30001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/DefaultTagActionMap.java File boilerpipe-core/src/main/de/l3s/boilerpipe/sax/DefaultTagActionMap.java (left): https://codereview.chromium.org/296113004/diff/30001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/DefaultTagActionMap.java#oldcode69 boilerpipe-core/src/main/de/l3s/boilerpipe/sax/DefaultTagActionMap.java:69: setTagAction("ABBR", CommonTagActions.TA_INLINE_WHITESPACE); These two are now treated ...
6 years, 6 months ago (2014-05-28 23:51:33 UTC) #1
Yaron
https://codereview.chromium.org/296113004/diff/30001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLContentHandler.java File boilerpipe-core/src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLContentHandler.java (right): https://codereview.chromium.org/296113004/diff/30001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLContentHandler.java#newcode89 boilerpipe-core/src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLContentHandler.java:89: * Contains the computed style of each element. The ...
6 years, 6 months ago (2014-05-29 01:09:10 UTC) #2
nyquist
yfriedman: PTAL https://codereview.chromium.org/296113004/diff/30001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLContentHandler.java File boilerpipe-core/src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLContentHandler.java (right): https://codereview.chromium.org/296113004/diff/30001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLContentHandler.java#newcode89 boilerpipe-core/src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLContentHandler.java:89: * Contains the computed style of each ...
6 years, 6 months ago (2014-05-29 23:42:25 UTC) #3
Yaron
Let's try scoring this one and see what the result is. https://codereview.chromium.org/296113004/diff/50001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java File boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java (right): ...
6 years, 6 months ago (2014-05-30 01:23:28 UTC) #4
nyquist
yfriedman: PTAL https://codereview.chromium.org/296113004/diff/50001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java File boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java (right): https://codereview.chromium.org/296113004/diff/50001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java#newcode50 boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java:50: return t1.start(instance, atts) On 2014/05/30 01:23:29, Yaron ...
6 years, 6 months ago (2014-05-30 17:08:00 UTC) #5
Yaron
On 2014/05/30 17:08:00, nyquist wrote: > yfriedman: PTAL > > https://codereview.chromium.org/296113004/diff/50001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java > File boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java > ...
6 years, 6 months ago (2014-05-30 17:31:19 UTC) #6
Yaron
On 2014/05/30 17:08:00, nyquist wrote: > yfriedman: PTAL > > https://codereview.chromium.org/296113004/diff/50001/boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java > File boilerpipe-core/src/main/de/l3s/boilerpipe/sax/CommonTagActions.java > ...
6 years, 6 months ago (2014-05-30 17:31:20 UTC) #7
nyquist
6 years, 6 months ago (2014-05-30 21:34:51 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 manually as rf6e5bbb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698