|
Make stylesheet owner node a reference instead of pointer.
The CSSStyleSheet owner node is always non-null when passed in on
sheet creation. Make it a reference in various APIs.
The real change here that triggered this was the realization that
StyleEngine::createSheet is always called with an owner node which
belongs to the very same Document/StyleEngine. So we can turn:
e->document().styleEngine().addPendingSheet(context);
into:
addPendingSheet(context);
Also made parseSheet non-static as it needed the StyleEngine pointer
anyway.
R=sashab@chromium.org
BUG= 567021
Committed: https://crrev.com/3cf2f58b1be6065c5c8264e60d414ec9531a6449
Cr-Commit-Position: refs/heads/master@{#420018}
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+128 lines, -131 lines) |
Patch |
|
M |
third_party/WebKit/Source/core/css/CSSStyleSheet.h
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
|
View
|
|
3 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
|
View
|
1
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/CSSTestHelper.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/Document.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
|
View
|
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/StyleElement.h
|
View
|
1
2
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/StyleElement.cpp
|
View
|
1
2
|
6 chunks |
+30 lines, -34 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/StyleEngine.h
|
View
|
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
View
|
|
9 chunks |
+27 lines, -27 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/StyleEngineTest.cpp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
|
View
|
|
6 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 17 (6 generated)
|