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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.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/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 96512719501aa2963cf95c4c05e01c532d199ec9..ce28ffec8b3a2785d88f47f9bb6115ad7e12e95b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -326,7 +326,7 @@ void LayoutObject::addChild(LayoutObject* newChild, LayoutObject* beforeChild) {
}
if (newChild->isText() &&
- newChild->style()->textTransform() == ETextTransform::Capitalize)
+ newChild->style()->textTransform() == ETextTransform::kCapitalize)
toLayoutText(newChild)->transformText();
// SVG creates layoutObjects for <g display="none">, as SVG requires children
@@ -2659,8 +2659,8 @@ void LayoutObject::insertedIntoTree() {
// If |this| is visible but this object was not, tell the layer it has some
// visible content that needs to be drawn and layer visibility optimization
// can't be used
- if (parent()->style()->visibility() != EVisibility::Visible &&
- style()->visibility() == EVisibility::Visible && !hasLayer()) {
+ if (parent()->style()->visibility() != EVisibility::kVisible &&
+ style()->visibility() == EVisibility::kVisible && !hasLayer()) {
if (!layer)
layer = parent()->enclosingLayer();
if (layer)
@@ -2718,8 +2718,8 @@ void LayoutObject::willBeRemovedFromTree() {
// If we remove a visible child from an invisible parent, we don't know the
// layer visibility any more.
PaintLayer* layer = nullptr;
- if (parent()->style()->visibility() != EVisibility::Visible &&
- style()->visibility() == EVisibility::Visible && !hasLayer()) {
+ if (parent()->style()->visibility() != EVisibility::kVisible &&
+ style()->visibility() == EVisibility::kVisible && !hasLayer()) {
layer = parent()->enclosingLayer();
if (layer)
layer->dirtyVisibleContentStatus();
@@ -3099,7 +3099,7 @@ LayoutObject::getUncachedPseudoStyleFromParentOrShadowHost() const {
void LayoutObject::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions) {
// Convert the style regions to absolute coordinates.
- if (style()->visibility() != EVisibility::Visible || !isBox())
+ if (style()->visibility() != EVisibility::kVisible || !isBox())
return;
if (style()->getDraggableRegionMode() == DraggableRegionNone)
@@ -3118,7 +3118,7 @@ void LayoutObject::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions) {
bool LayoutObject::willRenderImage() {
// Without visibility we won't render (and therefore don't care about
// animation).
- if (style()->visibility() != EVisibility::Visible)
+ if (style()->visibility() != EVisibility::kVisible)
return false;
// We will not render a new image when SuspendableObjects is suspended

Powered by Google App Engine
This is Rietveld 408576698