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

Side by Side Diff: sky/engine/core/dom/Node.h

Issue 867653005: Remove outline painting on inlines. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 case HasEditableAXRole: 315 case HasEditableAXRole:
316 return isEditableToAccessibility(RichlyEditable); 316 return isEditableToAccessibility(RichlyEditable);
317 } 317 }
318 ASSERT_NOT_REACHED(); 318 ASSERT_NOT_REACHED();
319 return false; 319 return false;
320 } 320 }
321 321
322 virtual LayoutRect boundingBox() const; 322 virtual LayoutRect boundingBox() const;
323 IntRect pixelSnappedBoundingBox() const { return pixelSnappedIntRect(boundin gBox()); } 323 IntRect pixelSnappedBoundingBox() const { return pixelSnappedIntRect(boundin gBox()); }
324 324
325 // Returns true if the node has a non-empty bounding box in layout.
326 // This does not 100% guarantee the user can see it, but is pretty close.
327 // Note: This method only works properly after layout has occurred.
328 bool hasNonEmptyBoundingBox() const;
329
330 unsigned nodeIndex() const; 325 unsigned nodeIndex() const;
331 326
332 // Returns the DOM ownerDocument attribute. This method never returns NULL, except in the case 327 // Returns the DOM ownerDocument attribute. This method never returns NULL, except in the case
333 // of a Document node. 328 // of a Document node.
334 Document* ownerDocument() const; 329 Document* ownerDocument() const;
335 330
336 // Returns the document associated with this node. A Document node returns i tself. 331 // Returns the document associated with this node. A Document node returns i tself.
337 Document& document() const 332 Document& document() const
338 { 333 {
339 return treeScope().document(); 334 return treeScope().document();
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 } // namespace blink 678 } // namespace blink
684 679
685 #ifndef NDEBUG 680 #ifndef NDEBUG
686 // Outside the WebCore namespace for ease of invocation from gdb. 681 // Outside the WebCore namespace for ease of invocation from gdb.
687 void showNode(const blink::Node*); 682 void showNode(const blink::Node*);
688 void showTree(const blink::Node*); 683 void showTree(const blink::Node*);
689 void showNodePath(const blink::Node*); 684 void showNodePath(const blink::Node*);
690 #endif 685 #endif
691 686
692 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ 687 #endif // SKY_ENGINE_CORE_DOM_NODE_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Node.cpp » ('j') | sky/engine/core/rendering/RenderLineBoxList.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698