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

Issue 2835183002: Provide a method to remove inserted style sheet (Closed)

Created:
3 years, 8 months ago by limasdf
Modified:
3 years, 7 months ago
Reviewers:
pdr, Devlin, pdr., rune
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Provide a method to remove inserted style sheet InsertStyleSheet() returns sequence id. And RemoveInsertedStyleSheet() removes the inserted style sheet with its id. TEST=webkit_unit_tests --gtest_fiter=StyleEngineTest.AnalyzedInject, WebDocumentTest.InsertAndRemoveStyleSheet BUG=608854 Review-Url: https://codereview.chromium.org/2835183002 Cr-Commit-Position: refs/heads/master@{#474919} Committed: https://chromium.googlesource.com/chromium/src/+/0ffd86f3ca15a4728605fa70435297d334ccc35a

Patch Set 1 : WIP #

Patch Set 2 : initial for review #

Total comments: 11

Patch Set 3 : review feedback #

Total comments: 4

Patch Set 4 : Use WebStyleSheetId #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -21 lines) Patch
M third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngine.h View 1 2 3 4 6 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngine.cpp View 1 2 3 4 2 chunks +19 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngineTest.cpp View 1 2 3 4 1 chunk +39 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebDocument.cpp View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentTest.cpp View 1 2 3 3 chunks +24 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebDocument.h View 1 2 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 44 (26 generated)
limasdf
== NOT FOR REVIEW == Hi Devlin, Can you share your opinion? I made StyleEngine::InjectAuthorSheet() ...
3 years, 8 months ago (2017-04-26 18:32:26 UTC) #13
Devlin
On 2017/04/26 18:32:26, limasdf wrote: > == NOT FOR REVIEW == > > Hi Devlin, ...
3 years, 7 months ago (2017-04-27 14:04:01 UTC) #15
limasdf
@pdr, would you share your opinion on devlin's suggestion?
3 years, 7 months ago (2017-05-05 17:09:07 UTC) #16
pdr.
On 2017/05/05 at 17:09:07, limasdf wrote: > @pdr, would you share your opinion on devlin's ...
3 years, 7 months ago (2017-05-05 17:27:23 UTC) #17
limasdf
Hi Devlin, Pdr. Devlin@, I took the option #1, Have blink return a non-unique identifier(sequential ...
3 years, 7 months ago (2017-05-15 07:44:29 UTC) #22
pdr.
Eddy, could you please review this from the Blink side? https://crbug.com/608854 has an overview of ...
3 years, 7 months ago (2017-05-15 20:33:33 UTC) #25
Devlin
On 2017/05/15 07:44:29, limasdf wrote: > Hi Devlin, Pdr. > > Devlin@, I took the ...
3 years, 7 months ago (2017-05-15 20:39:01 UTC) #26
meade_UTC10
I'm not sure I'm the best reviewer for this area - Rune, could you PTAL? ...
3 years, 7 months ago (2017-05-16 07:15:17 UTC) #28
rune
On 2017/05/16 07:15:17, meade_UTC10 wrote: > I'm not sure I'm the best reviewer for this ...
3 years, 7 months ago (2017-05-16 08:04:15 UTC) #29
rune
I have a concern about extensions being able to remove sheets injected by other extensions. ...
3 years, 7 months ago (2017-05-16 09:00:59 UTC) #30
Devlin
On 2017/05/16 09:00:59, rune wrote: > I have a concern about extensions being able to ...
3 years, 7 months ago (2017-05-16 16:24:57 UTC) #31
limasdf
Sorry for late. As Devlin mentioned above, The extension should remove CSS injected by the ...
3 years, 7 months ago (2017-05-18 12:32:54 UTC) #33
rune
lgtm if fixing comments below. You'll need a separate reviewer for web/ and public/ https://codereview.chromium.org/2835183002/diff/260001/third_party/WebKit/Source/core/dom/StyleEngine.h ...
3 years, 7 months ago (2017-05-18 13:13:22 UTC) #34
limasdf
rune@, Thanks for the review! pdr@, Would you take a look at web/, public/ as ...
3 years, 7 months ago (2017-05-18 14:32:26 UTC) #35
limasdf
Hi Pdr@, Sorry I need a separate reviewer for web/ and public/. Would you please ...
3 years, 7 months ago (2017-05-23 08:49:05 UTC) #37
pdr.
On 2017/05/23 at 08:49:05, limasdf wrote: > Hi Pdr@, > > Sorry I need a ...
3 years, 7 months ago (2017-05-26 03:12:35 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2835183002/300001
3 years, 7 months ago (2017-05-26 03:30:40 UTC) #41
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 05:21:55 UTC) #44
Message was sent while issue was closed.
Committed patchset #5 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/0ffd86f3ca15a4728605fa704352...

Powered by Google App Engine
This is Rietveld 408576698