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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index c55db95b238e21818a63efe71bb5bc54e78b11c0..d41f3916ee503ef45e46243e0b0dac500a589f69 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -698,14 +698,14 @@ void PaintLayer::updateDescendantDependentFlags() {
}
bool previouslyHasVisibleContent = m_hasVisibleContent;
- if (layoutObject()->style()->visibility() == EVisibility::Visible) {
+ if (layoutObject()->style()->visibility() == EVisibility::kVisible) {
m_hasVisibleContent = true;
} else {
// layer may be hidden but still have some visible content, check for this
m_hasVisibleContent = false;
LayoutObject* r = layoutObject()->slowFirstChild();
while (r) {
- if (r->style()->visibility() == EVisibility::Visible &&
+ if (r->style()->visibility() == EVisibility::kVisible &&
(!r->hasLayer() || !r->enclosingLayer()->isSelfPaintingLayer())) {
m_hasVisibleContent = true;
break;
@@ -1275,7 +1275,7 @@ PaintLayer* PaintLayer::removeChild(PaintLayer* oldChild) {
oldChild->stackingNode()->dirtyStackingContextZOrderLists();
}
- if (layoutObject()->style()->visibility() != EVisibility::Visible)
+ if (layoutObject()->style()->visibility() != EVisibility::kVisible)
dirtyVisibleContentStatus();
oldChild->setPreviousSibling(0);
@@ -2709,7 +2709,7 @@ bool PaintLayer::backgroundIsKnownToBeOpaqueInRect(
// We can't use hasVisibleContent(), because that will be true if our
// layoutObject is hidden, but some child is visible and that child doesn't
// cover the entire rect.
- if (layoutObject()->style()->visibility() != EVisibility::Visible)
+ if (layoutObject()->style()->visibility() != EVisibility::kVisible)
return false;
if (paintsWithFilters() &&
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPainter.cpp ('k') | third_party/WebKit/Source/core/paint/ReplacedPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698